-
AuthorPosts
-
November 7, 2017 at 1:48 pm #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,
JuliaNovember 8, 2017 at 7:31 pm #874295Hey Yoolia,
Have you figured it out already? Flags show up on my end :)
Best regards,
YigitNovember 8, 2017 at 7:49 pm #874296Hi 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,
JuliaNovember 11, 2017 at 6:59 pm #875557November 13, 2017 at 6:43 pm #876198Hi 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!
November 16, 2017 at 3:13 am #877315Hi,
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,
IsmaelDecember 11, 2017 at 7:51 pm #887551Hi 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,
JuliaSelected 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)
DismissDecember 12, 2017 at 5:21 am #887703Hi,
The syntax are invalid. Please copy the code directly from the forum, not from your email.
Best regards,
IsmaelDecember 12, 2017 at 7:26 pm #888047Thanks Ismael, now it worked.
Best,
Julia -
AuthorPosts
- The topic ‘Language switcher disappeared’ is closed to new replies.