This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

toggle search

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16608
    mbmorris31mbmorris31
    Participant

    I would like the search box to be in my submenu (which is hard coded in the header.php file) and just show the magnifying glass and toggle search bar when clicked (just like on the top of your home page). How do I accomplish this?

    I also want the search results to show up in a page.

    #16614
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    If the menu with the items is hard coded, you will likely have to use the php shortcode to place it to the desired position. It is possible to use the search shortcode as a menu element as well.
    You can enable the compact box layout for the pop-out search bar under the Layout Options -> Compact box layout panel, that is probably what you are looking for.

    The live search results can be moved on the current page using the results shortcode. The regular search results layout is controlled by the theme, within the search.php file in the theme directory. It cannot be moved, as WordPress core automatically resolves to that page.

    I hope this helps!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.