Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #330235

    Hi, I already asked this and got a reply that said to add this code:

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

    Which I did and it worked great as you can see here – http://polytowncoil.staging.wpengine.com/ (hosted on WPengine)

    BUT, I just noticed that after upgrading to Enfold 3.0 the flags are showing again as you can see here – http://polytowncoil.staging.wpengine.com/blog/http://screencast.com/t/5dyEAOQKn

    I’m using a plugin that allows me to create custom menus for each page on the site. The plugin is called Zenu Menu logic just so you know if that has anything to do with it (although I don’t think it does).

    #330237

    It seems the flags are only showing on the Blog page. I have other pages using the exact same menu as the blog page but I don’t see the flags on those pages.

    #330434

    Hi!

    Probably the easiest solution is to hide the flags with css in this case – insert the code into the quick css field:

    
    #top #avia-menu .av-language-switch-item{ display: none; } 
    

    Regards,
    Peter

    #330451

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to remove the WPML language flags from the menu?’ is closed to new replies.