Tagged: ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #999511

    Good morning
    I have problems with the settings in Enfold with the WPML plugin
    As soon as I install the plugin it automatically puts the language flags in the secondary menu and I can not remove them. I have not set any menu selector, he automatically puts it.

    What can I do?!

    #999521

    Hi Marco!

    Add this code to the child theme functions.php file to remove the flags:

    
    function ava_remove_lang_flags() {
    		remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    		remove_action( 'ava_main_header_sidebar', 'avia_wpml_language_switch', 10);
    }
    add_action('init', 'ava_remove_lang_flags');
    

    Best regards,
    Peter

    #999531

    Thank you!

    Where do I find the child theme? From Themeforest I can not find it in the file I download…

    #999545

    Excuse me, I added the code, but I wanted to remove the language flags from all the menus I did not want to remove it from the secondary and put it in the primary.
    I want to be able to decide where to put the menus and how to put them

    #1000031

    Hi,

    There is no option for that – but you can use a menu item with the language links and move those around.
    Would that work for you?

    Best regards,
    Basilis

    #1000183

    Good morning
    I’ve already created a custom menu but now I see both my menu and the language flags that it sets by default … I want to remove the flags because I want to leave them my menu

    How can I do?

    Thank you

    #1000191

    isn’t there on WPML Settings page itself a “Add Menu Language Switcher”
    click to enlarge:

    so you can handle that to put it in every custom menu you like – and style it a bit on that page.
    To give you the right code – i need a link for that page to give any advice

    #1000362

    The link to the site is this: https://academy.christiandemelas.it

    I do not know how to send you the screenshot of my settings

    #1001750

    Hi,

    Please add this code to the child theme style.css or quick css field (Enfold > Theme Options > Styling) to hide the flags:

    
    #top .av-main-nav li.av-language-switch-item {
    display: none;
    }
    

    Best regards,
    Dude

    #1001754

    Thanks so much
    Now it’s OK

    Best regards,
    Marco

    #1001771

    Hi,

    Great, glad we could help you :)

    Best regards,
    Dude

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘WPML problem’ is closed to new replies.