• I like to add a search field to the navigation bar, so it will be shown in the mobile menu.

    Is there a solution for this? I have the latest wordpress version , a child theme and I use the block editor.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @willem-2 ! If you’re familiar with editing theme templates, you should be able to add a search bar in the header.php file in your child theme. You should be able to use a template tag for search forms in there.

    An easier option would be to look for plugins which provide a mobile menu. Many such plugins would include a way to add a search bar to the menu.

    Thread Starter Willem 2

    (@willem-2)

    Hi properlypurple,

    Thank you! I can’t edit a template, so I looked for a plugin. I found a plugin: SearchWP Modal Search Form.

    It is not the best because it isn’t updated the last three monthes and I want an icon instead of a title.

    But it does what I want. It add’s a search function to the navigation bar which is shown in the mobile menu of the site.

    I hope that you or somebody else knows a better solution.

    Moderator Felipe Santos

    (@foosantos)

    Hi @willem-2,

    If you use one of the new WordPress default themes (like Twenty Twenty-Three), you would be able to edit this directly from the Site Editor without using any code.

    Maybe it would be a good option for you, and it doesn’t even requires a plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search in navigation bar’ is closed to new replies.