Tagged: , , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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.

    #732248

    Hey 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,
    Andy

    #733093

    Hello 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,
    Nadea

    #733489

    Hi Nadea,

    Thanks for the feedback and for sharing your progress, we’ll keep the thread open for you in case you should need any further help on the topic.

    Best regards,
    Rikard

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