Viewing 15 replies - 1 through 15 (of 18 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you show us a page with the problem?

    Thread Starter thatfray

    (@thatfray)

    justpsycho.com

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you clear your browser’s cache? I don’t see the issue in chrome

    Thread Starter thatfray

    (@thatfray)

    Still the same…what i mean is they are all centered in the middle, home-login-cart.

    Arent they supposed to be in opposite corners?

    I’m also on chrome.

    https://i68.tinypic.com/2h708rc.jpg

    Thread Starter thatfray

    (@thatfray)

    Thread Starter thatfray

    (@thatfray)

    hmm is that how its supposed to be?

    looks sorta weird

    how can i at least move the login and cart to the right?

    You’ve got a good amount of CSS effecting your topbar to get it displaying as it is. The default virtue topbar looks like this:
    https://themes.kadencethemes.com/virtue/

    If you want it to be more like that, then you’ll have to go through your CSS and remove some. I can specify which if you need me to.

    Or do you want it centered as it is? There is CSS that is hiding the top bar search, is that the space you want back? If you remove that CSS you can get the space again. Or if you want it to disappear yet keep the space, you can use visibility: hidden; instead of display: none.

    Sorry that I’m not understanding so well. If you can get what you want done cleared up a bit for me, then I’ll gladly help you find the best solution.

    Thread Starter thatfray

    (@thatfray)

    I placed a search into the secondary menu but for some reason it also added a search to the topbar…2 search bars! ??

    So someone gave me the code to hide that one. I wish I could just add a search bar to the secondary menu ONLY.

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

    If you can tell me what to do with the above so it only manifests on the secondary menu, that would be great. Then i can remove the css that hides the search at topbar.

    Thread Starter thatfray

    (@thatfray)

    Thread Starter thatfray

    (@thatfray)

    btw visibility: hidden did not work, it was back

    Try this CSS:

    .topbarmenu .form-search {
        visibility: hidden;
    }

    As for that filter for the search only to display in the secondary menu, I unfortunately can’t say for sure how best to implement that. The theme dev will know for sure when he sees it though, which should be before the end of today.

    Thread Starter thatfray

    (@thatfray)

    That worked for desktop, but tuned into 4 lines on tablet..like a really fat topbar.

    Hey,

    Adding the search to the menu isn’t a free theme option. But it is there in premium.

    But I can offer a little help. based on the function you posted in the other topic you are not checking which menu to add the search to so all menus will get it. You need to change your function to something like this:

    add_filter( 'wp_nav_menu_items','add_search_box', 10, 2 );
    function add_search_box( $items, $args ) {
    if( !($args->theme_location == 'secondary_navigation') {
     return $items;
    }
        $items .= '<li>' . get_search_form( false ) . '</li>';
        return $items;
    }

    Kadence Themes

    Thread Starter thatfray

    (@thatfray)

    Hi, thank you for this but the code didn’t work. I replaced with my previous and the site would crash with a http 500. Once removed it was fine again.

    Thread Starter thatfray

    (@thatfray)

    i think maybe it has to do with the extra ( ! after if. I counted all the opening and closing brackets..there’s less one closing. Or maybe thats intentional but i can’t code lol..sorry

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Links on topbar squished together’ is closed to new replies.