Return to Support

search box in top menu with hook widget too large

Home Forums Franz Josef Support search box in top menu with hook widget too large

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10613
    thymallus
    Member

    Hello Franz Josef Theme,

    after a time i used graphene i now making a new site with franz josef a very nice Theme. I would like to place the search box zu the to menue on the right side beside of the social Icons. I tried it wiht hook set to the top menu which is working but i don’t won’t it on the whole length only in the same line right next to the social Icons? And the menu ist not more vailable.

    Have you a solution for my Problem?

    the adress ist http://www.activeanglers.at

    I tried the custom function, too. But there i had to set the Header menu as a Primary menu in the menu Setting which i can’t find in the theme.

    /* Enter Your Custom Functions Here */

    function fb_add_search_box ( $items, $args ) {

    // only on primary menu

    if( ‘primary’ === $args -> theme_location )

    $items .= ‘<li class=”menu-item menu-item-search”>’ . get_search_form( FALSE ) . ”;

    return $items;

    }

    add_filter( ‘wp_nav_menu_items’, ‘fb_add_search_box’, 10, 2 );

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.