• Hey,

    how can I include links and the woocommerce cart with amount (all with icons) in the topbar in the same line?
    Using a menu and activating cart total in the theme settings results in two lines. Please see here: http://bild-im-rahmen.com/.

    Another question: Is it possible to place a search field next to the title?

    Regards
    mic

Viewing 2 replies - 1 through 2 (of 2 total)
  • For 1 you can add this css:

    .kad-topbar-left, .kad-topbar-right {
        width: 100%;
    }

    2. by next I see that you have the search to the left of your title? are you wanting it different? You can’t really add it as part of the title it would need to be in a sidebar or widget area.

    Kadence Themes

    Thread Starter micwp123

    (@micwp123)

    For 1 it works – thank you.

    For 2 I used this code:

    add_filter('wp_nav_menu_items', 'add_search_form_to_menu', 10, 2);
    function add_search_form_to_menu($items, $args) {
    
        // If this isn't the main navbar menu, do nothing
        if( !($args->theme_location == 'primary_navigation') )
            return $items;
    
        // On main menu: put styling around search and append it to the menu items
        return $items . '<li class="my-nav-menu-search">' . get_search_form(false) . '</li>';
    
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘topbar and woocommerce cart’ is closed to new replies.