New Landing How can we help? Atelier Language Switcher on header

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Atelier
  • #220202
    Kevict
    Member
    Post count: 1

    Hi. I’d like to change the look of the language switcher to horizontal simple text (English | Chinese) rather than the drop down with flags. I have made the changes within the WPML plugin, but the theme CSS seems to override this option.

    Our clients are both Chinese and Taiwanese-based and there is a sensitivity to which flag they choose for their respective countries. We’d rather just have text, no flags to make everyone happy!

    Thanks,
    Alyssa

    Attachments:
    You must be logged in to view attached files.
    #220408
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    To hide the submenu language flags, please add this:

    nav.std-menu ul.sub-menu > li:first-child { display: none; }

    Thanks,
    David.

    #220623
    Kevict
    Member
    Post count: 1

    Hi David. All that did was remove the first menu item on all my dropdowns throughout the site 🙂

    Your help is appreciated!

    #220680
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Great thanks to David.
    Mohammad

    #229308
    leggero
    Member
    Post count: 107

    Hi there

    Looking for the same solution.

    “All that did was remove the first menu item on all my dropdowns throughout the site.”

    Davids solution didn’t work, so any propositions?

    Thanks and best regards

    Caspar

    #229588
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @leggero
    – What is your issue exactly? Please provide me specific page url with issue.
    Thanks
    Mohammad

    #229606
    leggero
    Member
    Post count: 107

    Hi Mohammed

    no issue, just would like to have DE/EN on the site instead of the flags:

    http://www.pepshot.ch

    Thanks and best regards

    Caspar

    #229609
    David Martin – Support
    Moderator
    Post count: 20834

    Hey,

    To remove the flags within the dropdown, please use this:

    ul.header-languages.sub-menu li img {
        display: none;
    }

    Thanks,
    David.

    #229647
    leggero
    Member
    Post count: 107

    Thanks David, works.

    But the flags on the first level are still there. As we are a Swiss Company, the german flag doesn’t fit. Is there any chance to change it into DE / EN?

    Thanks

    Caspar

    #229652
    David Martin – Support
    Moderator
    Post count: 20834

    Yes, with a little CSS trick:

    .aux-item.aux-language ul.menu>li.aux-languages>a>span {
        display: block!important;
        font-size: 0;
    }
    
    .aux-item.aux-language ul.menu>li.aux-languages>a>span:before {
        content: "DE/EN";
        font-size: 16px;
    }

    Thanks,
    David.

    #265447
    leggero
    Member
    Post count: 107

    Hi David

    Sorry for the long waiting. It’s not working though (s. Screenshot). The flag is still there, and the DE/EN underneath:

    http://www.apmphiro.com

    I switch it off on the site.

    Any thoughts?

    Best regards

    Caspar

    Attachments:
    You must be logged in to view attached files.
    #265511
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide correct website url to check.
    Thanks
    Mohammad

    #265550
    leggero
    Member
    Post count: 107

    Hi Mohammed

    I added it at my testsite:

    dev.appenzeller-gurt.com

    Same here.

    Thanks and best regards
    CAspar

    #265565
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    #header .aux-languages img, #top-bar .aux-languages img {
        display: none !important;
    }
    

    Thanks
    Mohammad

    #280373
    leggero
    Member
    Post count: 107

    Works perfectly now!

    Thanks

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register