How to create a responsive header (logo, menu, search bar) in Block themes
-
Hi,
I am new to WP and trying to design a simple website and stuck with creating a Header. All I want is a simple Site Logo on the left, a menu (navigation) and Search Bar towards the right side of the header when viewed on Desktop. And I am able to design it as I want on desktop. (used multiple methods using 2 rows where first row has site logo and navigation and second row has the search bar or using 2 columns with first column having a row within which has site logo and menu and second column which contains the search bar or 1 row with all 3 items).
However, when I change views to Tablet/Mobile mode, this breaks. For Tablet, I want the site logo on the left and menu in a hamburger icon to the Right and the Search bar below this spanning the entire width (I have checked the “Allow to wrap to multiple lines”). The layout just doesn’t work. On Tablet Mode Site Logo and Menu are on the top with the search bar below but doesnt span the entire width and on Mobile view, the site logo isnt resizing.
How do I implement this? I am on 2024 theme with Twentig plugin.
Thanks.
- You must be logged in to reply to this topic.