Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23581

    I 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?

    #23586
    JohnPaul B
    Member

    Hello 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

    #23585
    Arnel C
    Member

    Thanks!

    #23584

    I 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.

    #23583

    This 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:

    1. Create the page template
    2. Delete the WordPress loop
    3. Add the WordPress search form function
    4. Add any other HTML content needed
    5. 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.

    #23582

    That 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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How can I have a page with a search widget, but not in the header?’ is closed to new replies.