Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1194574

    Hi Team!

    I am trying to get rid of the default language switcher in Enfold and replace it with a dropdown integrated in WPML.

    I use the child theme and tried all suggestions on here such as:
    Adding below to custom.css of child and quick css in General Styling

    .avia_wpml_language_switch_extra {
      display: none;
    }

    Adding something else into quick css:

    #top .sub_menu>ul, #top .sub_menu>ul>li {
    display: none;}

    Adding below to the functions.php of the child:

    add_action('after_setup_theme','avia_remove_main_menu_flags');
    function avia_remove_main_menu_flags(){
            remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 20, 2 );
            remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 );
            remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    }

    I also disabled the merging of css and javascript, just to be sure and deleted old css.

    Nothing seems to make the menu go away?

    Thank you!
    Matt

    #1194875

    Hey sftsengineering,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1194913

    Sure!

    No problem at all. Details in the box :)

    thank you and have a nice weekend
    Matt

    #1195668

    Hi Matt,

    I have added this CSS code in your Quick CSS (both in English and German):

    #top #header #header_main .av-language-switch-item {
        display: none;
    }

    Let us know if you need further assistance.

    Best regards,
    Nikko

    #1195981

    Thank you NIkko,

    that works like a charm.

    I moved it to the style.css however.

    Best regards
    Matt

    #1196369

    Hi Matt,

    Sure, that won’t have any issues if moved there :)
    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘WPML Language Switcher Replacement’ is closed to new replies.