Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #451170

    Hi,

    Enfold 3.1.5

    I’m using this CSS to remove flags and insert text (on the switcher).

    Quick CSS I’ve found and I’m using:
    .language_flag img {
    display: none !important;
    }
    .native_name {
    display: block !important;
    }

    I want to use the “language tag” (not the language code) – http://prntscr.com/7abvd9

    How should I change the CSS?

    Thanks in advance! Afonso

    #451301

    Hi atainha!

    Can you please post a screenshot of changes you would like to make and a link to your website?

    Cheers!
    Yigit

    #451342

    Hi Yigit.

    You can see here: http://prntscr.com/7aewjl

    Site is local – not on internet yet. :-/

    Thanks! Afonso

    #451922

    Hey!

    There is not default option to show the language tag but you can adjust it using css. For example, to change the dutch and english language flags, use this in the Quick CSS field:

    .language_de .language_flag:before {
      content: 'de-DE';
    }
    
    .language_en .language_flag:before {
      content: 'en-US';
    }
    
    .avia_wpml_language_switch li .language_flag img {
      display: none;
    }

    The last code will hide the flags.

    Cheers!
    Ismael

    #452554
    This reply has been marked as private.
    #452556
    This reply has been marked as private.
    #453007

    Hey!

    Please follow the suggestions above carefully:

    .language_pt-pt .language_flag:before {
      content: 'pt';
    }
    
    span.language_code {
      display: none !important;
    }

    Cheers!
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.