-
AuthorPosts
-
September 27, 2014 at 6:15 pm #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.
September 29, 2014 at 5:45 am #326299Hey 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,
IsmaelSeptember 29, 2014 at 8:38 am #326362Hi 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 4668Can you help?
Thanks.
September 29, 2014 at 10:19 am #326416Thanks, worked great on my end.
September 29, 2014 at 12:40 pm #326455Hi!
@emileg Please access functions.php file via FTP and undo the changes. Which version of the theme are you using?Regards,
YigitSeptember 29, 2014 at 1:41 pm #326515I 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.
September 29, 2014 at 1:44 pm #326520September 29, 2014 at 2:25 pm #326557Hi,
Here is the link: mungopark.chSeptember 29, 2014 at 2:35 pm #326567Hi
Please try using following code in Quick CSS field
div#header_main .avia_current_lang { display: none; }Cheers!
YigitSeptember 29, 2014 at 2:54 pm #326576Hi,
Thanks Yigit, it seems to be working perfectly now :)
Regards,
EmileSeptember 29, 2014 at 3:07 pm #326582 -
AuthorPosts
- The topic ‘How to remove the WPML language flags from the menu?’ is closed to new replies.
