Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #873676

    Hi,

    during the last days I had a question concerning the shopping cart not being visible and I got 2 different codes from you to put in the Quick CSS:

    .header_color .cart_dropdown_first .cart_dropdown_link {
    color: black;
    }
    #top div ul.product_list_widget li a {
    color: #dddddd;
    }

    .header_color .cart_dropdown .dropdown_widget li a,
    #top .header_color .avia_cart_buttons .button,
    #top .header_color .dropdown_widget .buttons .button,
    .header_color .cart_dropdown_first .cart_dropdown_link, #top .header_color p.order-info mark {
    color: #000;
    }

    It worked fine, but today I realised that my language switcher disappeared. As I don’t like the flags, I had received a code from you for the quick CSS, which is still there.

    li.av-language-switch-item {
    display: none;
    }

    I did remove the previous codes, but the language switcher is still invisible.

    Is there an interference with these codes? I need to get the language switcher back as soon as possible.
    Thanks,
    Julia

    #874295

    Hey Yoolia,

    Have you figured it out already? Flags show up on my end :)

    Best regards,
    Yigit

    #874296

    Hi Yigit,

    no I haven’t. I took out the code that I had used previously (which I got from support), so that at least the flags would show.

    li.av-language-switch-item {
    display: none;
    }

    If I put the code back in, there is no language visible (previously I had the name of the language: e.g. English and a drop down menu).
    Could you please take a look?

    Thanks,
    Julia

    #875557

    Hi Julia,

    HAve you played with the settings here
    Image 2017-11-11 at 18.58.31.png

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #876198

    Hi Victoria,

    no, I haven’t changed any of the settings in WPML.

    It still does not work and I have no idea why.

    Can you please help?

    Thanks!

    #877315

    Hi,

    The flags are the default language switcher of the theme. If you want to switch to the default language switcher, please add the following filter in the functions.php file and then configure the language switcher in the W P M L panel.

    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', 9998, 2 );
      remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 9998, 2 );
      remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    }
    

    Related thread: https://kriesi.at/support/topic/wpml-not-showing-language-selector-in-the-right-way/#post-872378

    Best regards,
    Ismael

    #887551

    Hi Ismael,

    I added the code to the functions.php file of my child theme, but I’m getting the following error message.

    Can you please advise,
    thank you,
    Julia

    Selected file content:
    1
    <?php
    2

    3
    add_action('after_setup_theme','avia_remove_main_menu_flags');
    4
    function avia_remove_main_menu_flags(){
    5
    remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 9998, 2 );
    6
    remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 9998, 2 );
    7
    remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    8
    }
    9

    10

    Your PHP code changes were rolled back due to an error on line 4 of file wp-content/themes/enfold-child LE PURE/functions.php. Please fix and try saving again.
    syntax error, unexpected ‘function’ (T_FUNCTION)
    Dismiss

    #887703

    Hi,

    The syntax are invalid. Please copy the code directly from the forum, not from your email.

    Best regards,
    Ismael

    #888047

    Thanks Ismael, now it worked.

    Best,
    Julia

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Language switcher disappeared’ is closed to new replies.