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

    Not sure this isn’t all WPML problem, but thought someone over here might be able to help…
    http://amequipment.com Site is running Enfold theme. Theme is current.
    WP 3.9.
    All WPML plugins are current.
    Language switcher flags appear in the menu bar despite all switcher options being off (cleared).
    I’ve been using WPML (with footer language switch only) for several months and this problem only showed up with the conversion to WP 3.9.
    Any thoughts?

    #257656

    Hi Jamie!

    Please make sure that you are using the latest version of WPML which is 3.1.5 – http://wpml.org/2014/04/wpml-3-1-5-released/

    Regards,
    Yigit

    #257674

    I do have the latest WPML plugin ( 3.1.5) . Installed it minutes before I posted in the forum. Any other ides about what might be going wrong. Already tried disabling all other plugins (only use two), cache flushing. I’m at a loss.

    #257888

    I was able to replicate the problem on a scratch site (http://conservio.com)
    Situation

    • WP 3.9
    • WPML3.5.1
    • Enfold 2.7

    Problem
    1. WPML language switcher flags appear either in main Menu or Top Menu regardless of how plugin is configured
    2. selecting a secondary language results in 404 error or display of the wrong translated page
    3. Problem does not occur if I switch to 2014 theme — only with Enfold theme (in more than one place)

    I think this might be a problem with the theme.
    Look forward to your reply.

    #259236

    Hi!

    1) Yes, the language switcher will be added automatically. If you want to deactivate it insert this code into your child theme 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) Please create us an admin account and post the login credentials as private reply.

    Regards,
    Peter

    #259446
    This reply has been marked as private.
    #259448
    This reply has been marked as private.
    #260129

    Hey!

    1) You can add the code I posted here into the enfold/functions.php file (insert it at the very bottom). The only disadvantage is that you must modify the file every time you update the theme. Thus I recommend to switch to a child theme – it’s very easy see: http://kriesi.at/documentation/enfold/using-a-child-theme/

    2) I checked your website and only 5 pages are translated to Spanish: http://www.amequipment.com/wp-admin/edit.php?post_type=page&lang=es

    I visited all pages and the language switcher seems to link to the right, translated page: http://www.screenr.com/DAgN

    I noticed you use different settings for each language – I recommend to go to Enfold > Theme settings and to check the settings for each language. You can use the language switcher at the top to change the language. Enfold creates a different option set for each language and you must configure the options for each language separately.

    Cheers!
    Peter

    #265289

    Hi
    Is your problem solved? Had the same problems. I put this into the optional css field of the WPML “language switcher”:
    /* ausschalten Sprachauswahl in Top-menu */
    .avia_wpml_language_switch {
    display: none;
    }

    Is this also an adequate solution? Or should I use better the codes you mentioned above?

    Thanks

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Problem with WPML switcher showinf in menu’ is closed to new replies.