Search Box in Nav Menu drifted up after 1.4.2 tempera update

  • Author
    Posts
  • #37385
    Theophil

    Hi Zed,

    I’ve just updated Tempera to 1.4.2 and the search box set in Nav Menu (primary) is no more located in the Nav bar but above it. This search box was installed using this code provided on your forum and added in the function.php file :

    add_filter(‘wp_nav_menu_items’,’add_search_box_to_nav_menu’, 10, 2);
    function add_search_box_to_nav_menu( $items, $args ) {
    if( $args->theme_location == ‘primary’ )
    return $items.get_search_form();
    return $items;
    }

    Could you please tell me how to get it back to its right place, i.e. at the right side of the Menu/Nav bar ?

    Thanks !
    Regards,
    Theophil

    #37421
    Zed
    Cryout Creations mastermind

    We’ve changed the searchform styling and it appears to affect the menu search box as well. Use this custom styling to reposition the search box:

    #access .searchform {
        display: inline-block;
        float: right;
    }

    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Search Box in Nav Menu drifted up after 1.4.2 tempera update’ is closed to new replies.