Tagged: language switcher, wpml
-
AuthorPosts
-
January 27, 2021 at 3:51 pm #1275815
We have duplicate WPML language switchers: One side-by-side in the upper left corner, and another drop-down one in the menu. Would like to keep the menu / drop-down switcher and remove the other one in the top left.
Also, we have “Custom language switchers” activated in WPML and “Native language name” checked. The native language name does not appear, however.
Thank you!
January 27, 2021 at 8:49 pm #1275869Adding login credentials.
January 31, 2021 at 7:30 pm #1276606Hi,
Sorry for the very late reply and thanks for the login, but I don’t see the WordPress > Appearance > Editor so I can’t test this code found on the wpml support forum.
Try adding this code to the end of your child theme functions.php file:add_action('after_setup_theme','avia_remove_main_menu_flags'); function avia_remove_main_menu_flags(){ remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10); add_action('avia_after_footer_columns', 'avia_wpml_language_switch', 10); }
Another option is to use this css:
.avia_wpml_language_switch_extra {display: none !important;}
in your Quick CSSBest regards,
MikeJanuary 31, 2021 at 9:09 pm #1276611Thanks, Mike!
Added the CSS and the duplicate language switcher issue is resolved. Great!
Still puzzled about the second issue with the drop-down menu, no language displayed next to the flags
Also, we have “Custom language switchers” activated in WPML and “Native language name” checked. The native language name does not appear, however.
Any idea?
February 1, 2021 at 12:48 am #1276626February 1, 2021 at 7:35 am #1276702Oh, I see. This could be it.. Will check again once we are advancing with the translations over the next couple of days.
Thanks, Mike, so far.February 1, 2021 at 1:28 pm #1276801Hi,
Very good, we will leave this open until we hear back from you.Best regards,
MikeFebruary 19, 2021 at 2:50 pm #1282237Update: After publishing (bit place holder-ish) translations of our frontpage, the issue of “only flags but no text in the language selector” remains. Please advice.
Also: On the EN and CN translated front page, we have title and breadcrumbs showing (not in primary DE) even though we have selected “Hide both” in “Title bar settings”. Do we have to check this option separately per language? If yes, how?
Thank you!
February 20, 2021 at 10:58 pm #1282546Hi,
Thank you for the feedback, for your issue about your title and breadcrumbs showing on some transactions, the short answer is yes, you do need to make these changes for each of the translations in the theme options. When looking at your theme settings, while you are using the WPML plugin, you will notice a language selector at the top left in the theme options panel:
when this is on a specific language then the settings are for only that language, but in the admin toolbar there is the option to select all languages, when you use this you can edit all of the languages at once.
Please note that your current title & breadcrumb settings, for the translated pages, seem to be set to “Enfold options”, which means that you can set this in your theme options and it will affect all of your pages, doing this will also set this for future pages so you won’t have to make this change again in the future.As for your WPML language selector text, I found the correct setting in the WPML plugin and enabled it for you:
Please clear your browser cache and check.Best regards,
MikeFebruary 21, 2021 at 2:40 pm #1282603Thanks a lot, Mike!
Understood now, and resolved.February 21, 2021 at 5:53 pm #1282617Hi,
Glad to hear, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeFebruary 22, 2021 at 2:52 pm #1282814Yes, please. You may close the topic.
Thx again, JensFebruary 22, 2021 at 3:30 pm #1282827Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Duplicate WPML Language Switcher /’ is closed to new replies.