Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #853142

    Hi I have a problem with the switcher of WPML and the theme.
    I found in your topics here this code:

    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’);

    I have tried it but does not work properly, I mean, it removes everything not only the flag.
    I have the switcher in my secondary menu area, on the right side and not in my main menu, so problably because of that this code need some adjustments? any help?

    • This topic was modified 7 years, 2 months ago by grafica6106.
    #853173

    Sorry guys.
    It works perfectly, the problem was just that I didn’t had any translated page yet.
    I can’t cancel the topic so…I guess I can only say sorry to disturb you for a mistake I made.

    #853220

    Hi,

    No problem!

    We are glad that you solved the problem!

    Best regards,
    John Torvik

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