[Support request] Dropdown Menu of Country Switcher in Header

Home Forums Support [Support request] Dropdown Menu of Country Switcher in Header

Home Forums Support Dropdown Menu of Country Switcher in Header

Viewing 13 posts - 31 through 43 (of 43 total)
  • Author
    Posts
  • #1874891
    Ying
    Staff
    Customer Support

    Try this CSS:

    nav#secondary-navigation {
        order: -1;
    }
    ul#menu-country-switch-1 li {
        padding-right: 10px;
    }

    to change the background color of the earth icon, go for Customizing > Colors > Secondary Navigation > Background.

    Let me know πŸ™‚

    #1875231
    Ree

    thanks the css works. but this setting didn’t:
    Customizing > Colors > Secondary Navigation > Background.

    https://prnt.sc/1h3dmxg
    https://prnt.sc/1hfjspd

    #1875314
    Elvin
    Staff
    Customer Support

    Hi Ree,

    Can you try adding this?

    nav#secondary-navigation li.menu-item.menu-item-has-children { 
    background-color: #f7f8f9;
    }
    #1875507
    Ree

    not working by targeting the style in <li>. I inspected the elements the background is in the <a>.
    How to set in <a> ?

    https://prnt.sc/1hk7wag

    #1876011
    David
    Staff
    Customer Support

    This line:

    nav#secondary-navigation li.menu-item.menu-item-has-children {

    becomes:

    nav#secondary-navigation li.menu-item.menu-item-has-children a {

    #1899819
    Ree

    I used the above css it is working on desktop, but on mobile it is still not blending in the background.

    You can have a look here

    #1900065
    David
    Staff
    Customer Support

    Set your background color to transparent ie.

    background-color: transparent;

    #1902018
    Ree

    Thank you it works.
    However In mobile I couldn’t click the links
    3 top icons on the right side including the country switcher.

    #1902072
    Elvin
    Staff
    Customer Support

    Can you specify which devices did you test it on?

    I’ve tried tapping on the 3 icons on mobile (Android – Chrome) and they seem to be working on my end.

    But here’s the thing. Perhaps you’re tapping the icons before the whole site completely loads.

    That can cause an issue because the country switcher is tapped before its script loads, it won’t work properly.

    That said, this is a completely separate matter. One which involves site performance optimization. πŸ™‚

    #1904538
    Ree

    I tested on iphone – safari, iphone – chrome, android, no luck.
    Something seemed to be covering the menu (only on the homepage) and the hamburger menu on the left doesn’t work as well.

    It’s not a performance matter because other pages are working well.

    you can see there’s a blue block hovering while tapping on the dropdown
    https://prnt.sc/1qemkm9

    #1904647
    Ying
    Staff
    Customer Support

    Hi Ree,

    Try to add this CSS:

    #mobile-header {
        z-index: 999 !important;
        position: relative;
    }

    Let me know πŸ™‚

    #1918878
    Ree

    do you know why in android the menu went to second line? if the cart items is [1] it is also the same. I don’t have this issue on iphone though.

    #1919304
    David
    Staff
    Customer Support

    theres simply not enough room on the header for all the elements to remain inline on the smallest screens.
    Use this CSS to reduce the logo on small devices:

    @media (max-width: 360px) {
        .mobile-header-navigation .site-logo.mobile-header-logo img {
            height: 40px;
        }
    }
Viewing 13 posts - 31 through 43 (of 43 total)
  • You must be logged in to reply to this topic.