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

    Hi,

    I had to deactivate all plugins, since WooCommerce Multilingual is not compatible with the new WPML version and locked me out of the site.

    After activating the plugins again, there are 2 problems:

    – I have the flags again in the menu (I don’t want them either in the menu nor next to the respective language).
    – The mega menus are cut (see: Products, Methodology, My Skin, Rituals)

    Can you please advise how to fix this.

    Thank you,
    Julia

    #698981

    Hey Yoolia!

    Thank you for using Enfold.

    I tried to login but the password for the username is incorrect. Please check it. Or add this in the functions.php file to disable the theme’s language selector.

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

    Regards,
    Ismael

    #699008

    Hey Ismael,

    thank you for your message. This code is already in the functions.php file of the child theme. Does it have to go into the main theme file?
    I have updated the password, it works now.
    Any ideas about the cut menus?

    Thank you,
    Julia

    #699880

    Hi Ismael,

    I have tried to put the code in the Child theme functions.php file, in the Enfold functions.php and in the normal functions.php, but it does not work.

    And the menus are still cut. Can you please take a look?

    Thanks,
    Julia

    #700872

    Hi,

    so which plugin exactly is causing this issue? are we allowed to deactivate all your plugins for testing purposes?

    I noticed that you are using a caching plugin. Would you mind opening your plugin’s settings page and temporarily deactivate the caching of your site? Then please try to clear your browser cache and hard refresh the site (Hold CTRL + SHIFT + RELOAD) to see if that solves the issue.

    Best regards,
    Andy

    #701183

    Hi Andy,

    there was a popup form that was causing the issues with the cut menus. The only issue remaining are the appearing flags in the header.

    The caching plugin is deactivated at the moment.

    Thank you,

    Julia

    #702329

    Hi,

    use this code inside Quick CSS field:

    li.av-language-switch-item {
    display: none;
    }

    Best regards,
    Andy

    #702434

    Hi Andy,
    thanks a lot, it worked!!

    Have a nice weekend,
    Julia

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Cut mega menus & flags in the language switcher’ is closed to new replies.