Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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!

    #1275869

    Adding login credentials.

    #1276606

    Hi,
    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 CSS

    Best regards,
    Mike

    #1276611

    Thanks, 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?

    #1276626

    Hi,
    For the second issue, I believe this is because you don’t have any pages in those languages, please try adding these and the text should show.
    2021-01-31_174532.jpg

    Best regards,
    Mike

    #1276702

    Oh, 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.

    #1276801

    Hi,
    Very good, we will leave this open until we hear back from you.

    Best regards,
    Mike

    #1282237

    Update: 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!

    #1282546

    Hi,
    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:
    2021-02-20_153317.jpg
    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.
    2021-02-20_153541.jpg
    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:
    2021-02-20_154654.jpg
    2021-02-20_154757.jpg
    Please clear your browser cache and check.

    Best regards,
    Mike

    #1282603

    Thanks a lot, Mike!
    Understood now, and resolved.

    #1282617

    Hi,
    Glad to hear, unless there is anything else we can help with on this issue, shall we close this then?

    Best regards,
    Mike

    #1282814

    Yes, please. You may close the topic.
    Thx again, Jens

    #1282827

    Hi,
    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

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