toggle search

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16608
    mbmorris31
    mbmorris31
    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 Marcinko
    Ernest 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!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.