Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1067499

    I successfully removed the flags with CSS I found on the forum and it works great on the English version but the flags still appear on the French side. What do I need to do to fix this?

    Here is the CSS I have so far:

    /*WPML Flag removal from top bar*/
    .avia_wpml_language_switch li .language_flag {
    display: none;
    }

    #1067522

    Hey beverlystone,

    Add the following to the functions.php file:

    function avia_remove_main_menu_flags(){
    remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 9998, 2 );
    remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 9998, 2 );
    remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    }
    add_action('after_setup_theme','avia_remove_main_menu_flags');

    Best regards,
    Jordan Shannon

    #1067536

    Is there any way to do this with CSS so I don’t have to create a child theme? Otherwise, I will lose this code each time the theme is updated.

    #1067554

    Hi,

    You can add a functions.php to child theme.

    Best regards,
    Jordan Shannon

    #1067555

    But I’m asking if I can do it with CSS. I’d prefer to not do a child theme unless I have no other choice.

    #1067989

    Hi beverlystone,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .avia_wpml_language_switch.avia_wpml_language_switch_extra {
      display: none;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1068046

    That works great! Thank you so much. :-)

    • This reply was modified 5 years, 10 months ago by beverlystone.
    #1068394

    Hi beverlystone,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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