Home › Forums › Support › Big search bar in center in header This topic has 16 replies, 5 voices, and was last updated 8 years, 3 months ago by Leo. Viewing 15 posts - 1 through 15 (of 17 total) 1 2 → Author Posts August 6, 2015 at 9:32 pm #127240 Dhruv Hi Sir How can I create header like this. http://i.imgur.com/xLmAIH3.jpg I want to create big search bar between Logo (in left) and cart (in right). Pls help Regards August 6, 2015 at 11:23 pm #127251 TomLead Developer Lead Developer You could use GP Hooks to add the HTML/PHP in, and then you would have to use CSS to style it. Your hook content would look something like this: <div class="grid-20"> Logo in here </div> <div class="grid-60"> <?php get_search_form(); ?> </div> <div class="grid-20"> Other stuff in here </div> August 7, 2015 at 5:59 am #127322 Dhruv Thanks Tom. You are Genius 🙂 But how can I increase width of search form ? August 7, 2015 at 6:11 am #127323 Dhruv Is this code okay ? input[type=”search”] { box-sizing: content-box; width: 500px; } August 7, 2015 at 9:17 am #127377 TomLead Developer Lead Developer This might be better: .site-header input[type="search"] { box-sizing: content-box; width: 500px; } August 7, 2015 at 11:22 am #127421 Dhruv Thanks Sir August 7, 2015 at 11:23 am #127422 TomLead Developer Lead Developer No Problem 🙂 February 15, 2016 at 2:01 pm #172955 Chris Is there a way to size and float the Search Box (aligned to the right) over the header image so it’s near the upper-right area of the header? February 15, 2016 at 6:17 pm #173000 TomLead Developer Lead Developer Any examples of what you’re trying to do? February 16, 2016 at 11:04 am #173165 TomLead Developer Lead Developer Try this: 1. Add the search widget into the “Header” widget area in “Appearance > Widgets”. 2. Add this CSS: .inside-header { position: relative; } .header-widget { position: absolute; top: 10px; right: 10px; } Adding CSS: https://generatepress.com/knowledgebase/adding-css/ You might need to adjust the positioning a bit. February 16, 2016 at 5:02 pm #173228 Chris Worked perfectly! Thanks! February 16, 2016 at 10:44 pm #173262 TomLead Developer Lead Developer You’re welcome! As for your email, you can style the search field like this: .header-widget .search-field { font-size: 15px; padding: 10px; } Add as much CSS in there as you like 🙂 February 18, 2016 at 8:53 am #173628 Chris Worked nicely. Thank you! February 18, 2016 at 10:17 am #173648 TomLead Developer Lead Developer You’re welcome 🙂 December 8, 2017 at 2:19 pm #445182 Steve Hi Tom, Where abouts would I put this code? Which hook do I use to replace the default header on every page? Thanks Author Posts Viewing 15 posts - 1 through 15 (of 17 total) 1 2 → You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In