Tagged: , ,

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

    Hi,

    I can’t disable the flags from the header. They appear at the top, left by the phone. I don’t want to show them because I have the languages in the main menu.

    I put in function.php, but they still shows
    <?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);
    add_action(‘avia_after_footer_columns’, ‘avia_wpml_language_switch’, 10);
    }
    */

    #342233

    Hi itziarsolla!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    #header_meta ul.avia_wpml_language_switch {
    display: none;
    }

    Best regards,
    Yigit

    #342258

    Hi,

    I added it in style.css, but nothing changes

    Best regards!

    #343201

    Hi!

    I have added the code to Quick CSS field and flags are removed. I saw that you have added the code to style.css file of your child theme but it is currently commented out.

    Cheers!
    Yigit

    #343309

    Hi

    They still appear when you slect the catalan language.
    And I am sorry, but I am from Spain and I don’t understand “it is currently commented out”, what do you mean?

    Thanks!

    Itziar

    #343385

    Hi!

    Please review your website.
    I mean the code i posted was inside

    /* comment */ 

    so it was not working.

    Regards,
    Yigit

    #343413

    Thank you for solving it
    Sorry but I’m new in wordpress and I don’t usually talk in english.
    Next time I use this theme I will do the same if I don’t want to show the flags.

    Regards,

    Itziar

    #343609

    Hey!

    You are welcome Itziar. Glad we could help :) Let us know if you have any other questions or issues

    Regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Disable flag from WPML in header’ is closed to new replies.