Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #334865

    Hi,

    I recently updated my site. It is now running WordPress 4.0, Enfold 3.0.1 and WPML 3.1.7.2.
    The language switcher disappeared from the Main Menu. I couldn’t find how to reinstall it.
    What should I do?

    Looking forward to your support
    Best
    Julia

    #334973

    Hi StMo!

    Please create us an admin account and we’ll look into it.

    Best regards,
    Peter

    #335454
    This reply has been marked as private.
    #335886

    Hey!

    Please add this on functions.php:

    function ava_icl_language_selector(){
    do_action ('icl_language_selector');
    }
    add_action('ava_after_main_menu', 'ava_icl_language_selector', 10);

    Use this to adjust the position of the language switcher:

    #lang_sel {
    position: absolute;
    right: 0;
    top: 50px;
    }

    Best regards,
    Ismael

    #336043

    Hey Ismael,

    Thank you for the patches! However, as I have no experience with altering php-files, I’ve further questions:

    First patch:
    At which line of the document should I insert the code? Simply at the end of the document?

    Second patch:
    Should I enter this part to Quick CSS?

    Best regards,
    Julia

    #336466

    Hey!

    1- Yes you can add the code to bottom of Functions.php file
    2- Yes, please add the code to Quick CSS field

    Regards,
    Yigit

    #337231

    Hey,
    thanks to you, the language switcher is back!

    Unfortunately, I liked it much better, when it was part of the menu, as in the older versions of enfold/wpml – especially on small screens.
    Is there a way, to got this layout back?

    Best
    Julia

    #337257

    Hey!

    Please try adding following code to Functions.php file in Appearence > Editor

    function add_custom_wpml(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('div#lang_sel').appendTo('nav.main_menu');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_wpml');

    Regards,
    Yigit

    #337304

    Hey Yigit,

    thank you for the prompt answer!

    I’m afraid that didn’t do the trick. Do you’ve got an other suggestion?
    Best
    Julia

    #337316

    Hey Julia!

    I tried to login to your website but credentials did not work. Can you please go to WPML options and choose to display language switcher in menu?

    Cheers!
    Yigit

    #337353
    This reply has been marked as private.
    #337674

    Hi!

    Please try to clear the browser cache. Maybe the browser cached the website when you used your admin account and when you logged in as “Kriesi” the browser loaded the “new” website data without using the cache.

    Regards,
    Peter

    #338185
    This reply has been marked as private.
    #342075

    Hi!

    Just had a look at your site and the language switcher is appearing on the menu.

    Should we consider this issue as resolved?

    Best regards,
    Arvish

    #342630
    This reply has been marked as private.
    #342636

    Hi!

    Could you please verify the login credentials and post theme again. I have just tried logging in to no avail.

    Cheers!
    Arvish

    #342722
    This reply has been marked as private.
    #342763

    Hey!

    1) I removed the flag icons with this code (I inserted it at the bottom of the functions.php file):

    
    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);
    }
    

    2) I commented out your custom css code in the quick css field (English website) and I could fix the language switcher position.

    Best regards,
    Peter

    #343359

    Hey Peter,

    Thank you very much. The switcher is now in the position I’d like it to be. :)
    Two things I would like to improve:

    1) How can I include the switcher for the mobile version?
    2) The switcher appears “folded out”. Would it be possible to show it “foldet up”?

    Best Julia

    #344482

    Hey!

    I’m sorry but the thread is getting a bit too long. If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thank you for understanding.

    Cheers!
    Ismael

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