Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    This code snippet does it:

    add_filter( 'wp_nav_menu_items','add_search_box', 10 );
    function add_search_box( $items ) {
        $items .= '<li>' . get_search_form( false ) . '</li>';
        return $items;
    }

    It’ll probably look a bit ugly, but you can style it with CSS to make it look nicer.

    Thread Starter steve92

    (@steve92)

    Where I put this code?

    Thread Starter steve92

    (@steve92)

    SOLVED!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘put the search code in the menu’ is closed to new replies.