Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #450650

    Hey, I’m having problems with enfold/wpml integration. To be honest, I think it’s a bit of a mess; not sure if it’s wpml or you guys’ responsibility, but the plugin just doesn’t work well with Enfold. My purpose is not to blame you guys (I love Enfold!), but I say this mostly so you can improve this integration because I feel it’s not up to par with the rest of your wonderful theme.

    So here’s my issue: Even though my WPML settings are set correctly, I have two language switchers active. I’ve been looking at the WPML forums and the Kriesi forums, and there are plenty of topics opened with various solutions offered, but so far, the ones I’ve tried haven’t worked. WPML seems to say that Enfold automatically activates a language switcher? So what I get is that there is the “WPML switcher” AND the “Enfold switcher”… Wouldn’t it be easier if there was only one…? Or at least an option to remove Enfold’s default switcher?

    Anyhow, can you help me? Thanks in advance.

    http://www.imarklab.dreamhosters.com

    #450926

    Hi!

    Place the following code in your child theme functions.php to disable the theme flags and use the WPML ones instead:

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

    Regards,
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.