-
AuthorPosts
-
January 9, 2017 at 11:10 am #731051
Hello,
I am experiencing a problem with flag icons that are in my main header ( to the right) hat I don’t manage to remove.
I first contacted WPML support, but it seems that it’s not on their end, they sent me the link to an older Enfold support thread and I followed the steps it described to remove the flag icons. It worked for a bit, but then the website went offline (error 500) and I used filezilla to restore my functions.php and remove the code snippet.January 11, 2017 at 7:25 pm #732248Hey NNE,
Please update the theme to the latest version. That should fix any issues you are currently experiencing :)
To update to the latest version follow the simple instructions here. (Or if you want the super detailed explanation you can read this blog post)
If that does not help, feel free to reply here and we will take a closer look at the issue. In that case please also add your WordPress login credentials (in the “private data” field) so we can take a look at your admin area
Best regards,
AndyJanuary 13, 2017 at 12:51 pm #733093Hello Andy,
I updated the theme to the latest version (apparently it wasn’t set to automatic update). Just updating didn’t remove the flag icons. So I tried adding this snippet to 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 ); remove_filter( ‘avf_fallback_menu_items’, ‘avia_append_lang_flags’, 20, 2 ); remove_action( ‘avia_meta_header’, ‘avia_wpml_language_switch’, 10); }
But it still didn’t work.
I found another solution, just adding a new rule to quick.css
.av-language-switch-item { display: none; }
I’ll keep it this way for now.
Thank you,
NadeaJanuary 14, 2017 at 7:50 am #733489 -
AuthorPosts
- You must be logged in to reply to this topic.