Site logo

Archived topic

How do I add a search button in the header

3 replies · Started by User on December 29, 2022

Viewing posts 1–4 of 4

Hi George,

Approach 1:

You can enable the Navigation Search through Appearance > Customize > Layout > Primary Navigation > Navigation Search. Reference: https://docs.generatepress.com/article/primary-navigation-layout-overview/

Approach 2:

You can create a Block Element - Hook. Hook it to menu_bar_items.

Then, in your Block Element, add a WordPress Search Bar.

Set the display rule location to Entire Site.

Thanks

You're welcome, George!

This archived topic is closed to new replies.