WordPress.org

Ready to get started?Download WordPress

Forums

Mantra
[resolved] Adding search to the menu (7 posts)

  1. JoyceD6
    Member
    Posted 3 months ago #

    I tried putting <?php get_search_form(); ?> after <?php cryout_access_hook();?> and before </nav> in the header.php of my child theme, but it messes up the drop down menu function. The search form shows up in the menu and works, though.

    How can I get the search form to show up in the menu without it interfering with the drop down menu item and menu links on the top/main menu?

    My site is here: http://dmuuc.org/

  2. salsaturation
    Member
    Posted 3 months ago #

    Looks like you have removed the search so not able to see the issue

  3. JoyceD6
    Member
    Posted 2 months ago #

    I don't want to leave my site broken. Do you have instructions for adding search to the menu?

  4. salsaturation
    Member
    Posted 2 months ago #

    Putting it before the '</nav>' is the logical place to put but I cant' help you without seeing what the issue is

    put it in and add

    display: none; css so it doesn't show up and someone can have a look

  5. JoyceD6
    Member
    Posted 2 months ago #

    OK, I figured out how to do the css "display: none;". It works now as if the form wasn't there, though when it's visible the menu links don't work and there are no drop-down menus. http://dmuuc.org/

    Thanks!

  6. salsaturation
    Member
    Posted 2 months ago #

    Just add

    #header #searchform {
    float: right;
    margin: -5px 0;
    }
  7. JoyceD6
    Member
    Posted 2 months ago #

    Fantastic! It works great. Thank you so much!

Reply

You must log in to post.

About this Theme

About this Topic