Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #325983

    Hi, I’m trying to figure out how to remove the language selection flags from the menu and can’t seem to find where I can control that.

    http://screencast.com/t/Lu8BvVdzeFH

    Is this something that Enfold controls or the WPML plugin?

    Thanks.

    #326299

    Hey bakbek!

    Thank you for using Enfold.

    Please use this on functions.php:

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

    Regards,
    Ismael

    #326362

    Hi Ismael,

    I was also trying to solve this problem.
    I pasted the code in the functions.php file at the end and got this:
    Fatal error: Call to undefined function add_action() in /home/www/fa6629310bc5f52d9a238f9cc7a5eb7b/web/wp-includes/functions.php on line 4668

    Can you help?

    Thanks.

    #326416

    Thanks, worked great on my end.

    #326455

    Hi!


    @emileg
    Please access functions.php file via FTP and undo the changes. Which version of the theme are you using?

    Regards,
    Yigit

    #326515

    I have already removed changes. Using a child theme with version 2.9.2.

    I have put
    .avia_wpml_language_switch li span.language_code{display: block !important;}
    .avia_current_lang {
    display: none;
    }

    in the quick css to stop from getting the flag. However, this also takes away the menu from the top of the window.

    Thanks for the help.

    #326520

    Hi!

    Can you post the link to your website please?

    Regards,
    Yigit

    #326557

    Hi,
    Here is the link: mungopark.ch

    #326567

    Hi

    Please try using following code in Quick CSS field

    div#header_main .avia_current_lang {
    display: none;
    }

    Cheers!
    Yigit

    #326576

    Hi,
    Thanks Yigit, it seems to be working perfectly now :)
    Regards,
    Emile

    #326582

    Hi!

    You are welcome Emile, glad we could help :)

    Cheers!
    Yigit

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