Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1417937

    Dear Support Team,

    on the https://elianafe.de/ page we have integrated 2 flags in the top right-hand corner for language selection. This all works wonderfully on the desktop PC. Only the mobile version has problems:

    – On the HOME page of the mobile version: https://elianafe.de/ the flags are not displayed at all: see screenshot: https://elianafe.de/support/flags-home.png The HOME page has a transparent header as a setting.

    – On the subpages that do not have a transparent header, such as “Press” https://elianafe.de/pressestimmen/, the flags are displayed on the mobile version, but they are placed in the middle. However, it is desired that the flags appear right-justified above the burger menu.

    How can I change this so that it also works in the mobile version with the language selection?

    Kind regards, Diana

    Translated with http://www.DeepL.com/Translator (free version)

    #1417938

    Here is a link to the screenshot of the mobile view of the Press subpage: https://elianafe.de/support/flags-press.png

    #1417965

    you got on your quick css some rules
    because of an enfold rule is more specific than your setting – be more selective too on your settings !

    Replace your settings with:

    .responsive #top #header_meta .sub_menu li.flag-deutsch {
        background: url('//www.elianafe.com/wp-content/uploads/2023/08/deutschland-sized.png') center center no-repeat;
        height: 50px;
        width: 50px;
        text-indent: -9999em;
        background-size: contain;
    }
    
    .responsive #top #header_meta  .sub_menu .flag-english {
        background: url('//www.elianafe.com/wp-content/uploads/2023/08/vereinigtes-konigreich-sized.png') center center no-repeat;
        height: 50px;
        width: 50px;
        text-indent: -9999em;
        background-size: contain;
    }
    
    #top .flag-deutsch a, #top .flag-english a {
      display: block;
      height: 100%;
      background: none !important;   /*** because of that layout.css rule your setting on li will otherwise be inherited to that a element ***/
    }
    

    you see that selector got two id’s and that overwrites your background setting with only one id in the selector
    it is more selective!

    #1418147

    Perfect. Thanks a lot.
    Best regards, Diana

    #1418164

    Hi DianaLoola73,

    We’re happy to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Language selection header Mobile version’ is closed to new replies.