Support » Theme: Pique » search field in the sticky menu

  • I really like this theme. But I lack a search field in the menu bar. It would be perfect to make it work as in your theme called “Gazette”. Is there any way to add it?

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Hi @lustek,

    It is possible to add a search bar alongside Pique’s main navigation, however, the steps involved do require some level of HTML, PHP, and CSS knowledge.

    The first step is for you to set up a child theme.

    In case you’re unsure, the following guides provide a good introduction to child themes, including steps to set one up:

    After you have completed that step, copy the parent’s header.php file to your child theme’s directory and then open it in your favourite text/code editor.

    You’ll find two instances of the following code in that file:

    <nav id="site-navigation" class="main-navigation" role="navigation">

    Both sets of code define the site’s navigation and you’ll want to add your search bar by the ending </nav>.

    To add the search bar, you can make use of a WordPress function called get_search_form():


    You may also like to look at Gazette’s header.php file to see how that theme makes use of the above function:

    Hope that helps to point you in the right direction!

Viewing 1 replies (of 1 total)
  • The topic ‘search field in the sticky menu’ is closed to new replies.