- AuthorPosts
- October 12, 2017 at 5:48 pm #23581
Anonymous User
MemberI see that I can add a search widget to the header, but then it pushes all of my content down and doesn’t look good. I would like to have a dedicated search page using the search widget. How can I do that? Once I do that, I would like to have a menu option with a spyclass icon that leads to that page. Is there a way to make the menu option be a graphic instead of text?
October 12, 2017 at 6:44 pm #23586JohnPaul B
MemberHello Jeff,
Thank you for contacting us about using a page with a search widget. You should create a page first. Then, add a search widget to the page by going to: Customize->Widgets->Select the area->Click Add a Widget->Search
You can Add the Page to the Menu, but there is no “built-in” way to replace the link with a graphic. This means you would have to custom-code/develop a solution.
Thank you,
John-Paul
October 12, 2017 at 8:17 pm #23585Arnel C
MemberThanks!
October 12, 2017 at 8:27 pm #23584Anonymous User
MemberI created an empty page called search. Then I went to Customize->Widgets. It looks like I can select header or footer. I want the widget to be in the middle of the search page and I don’t want the search box on all of the pages, only the search page.
October 13, 2017 at 10:04 am #23583Christopher M
MemberThis issue falls under the category of general WordPress development. It’s possible that BoldGrid may address this issue directly in the future, but at the moment there is no built-in procedure for this particular use case, but it can be accomplished easily by adding a template file to the theme.
There are likely plugins that allow the user to generate the search form via a shortcode on any page they prefer, but, in general, in order to complete the task of creating a search form page, it is necessary to create a page template for the active theme. The steps would look something like this:
- Create the page template
- Delete the WordPress loop
- Add the WordPress search form function
- Add any other HTML content needed
- Assign this template to the “Search” page created in WordPress
All of these steps, in greater detail, and the needed functions, are provided in the WordPress Codex page regarding creating a search page. This would create a page with a search form, and the search form would only be present on this page.
October 21, 2017 at 1:00 pm #23582Anonymous User
MemberThat would be nice. Thanks for taking the time to explain a solution. I am a web developer so its possible, but its not a high priority for me. As a workaround, I added the search to the footer as real estate down there is cheap.
- AuthorPosts
- The topic ‘How can I have a page with a search widget, but not in the header?’ is closed to new replies.