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

    Hello,

    I have set a secondary menu on the Header and set it on the left.

    The WPML flags appear on that menu at the end (right side). I want to set flags more right position just above of the main menu.

    Please Help!

    #433793

    Hello, any help to my issue?

    #433954

    Hey!

    Thank you for using Enfold.

    Add this in the Quick CSS field:

    ul.avia_wpml_language_switch {
      position: absolute;
      right: -750px;
      left: auto;
      float: none !important;
    }

    Use css media queries to adjust the right position of the flags on smaller screens.

    Regards,
    Ismael

    #434035

    Sorry for misunderstanding in my previous question.

    I had found your mention solution.

    Is there any way to attach ul.avia_wpml_language_switch class under container class and not under sub_menu class that is now?

    I have and an other issue Masonry Gallery make Expert description the same to all items. Why this is happening?

    Thanks a lot Ismael Keep on Great Work!

    #434868

    Hey!

    hm not really sure what you mean. Can you show us what’s going on using screenshots? you can use imgur.com or public dropbox. Please show us what you want to achieve, so we can provide you some precise CSS code.

    Regards,
    Andy

    #435161
    This reply has been marked as private.
    #436577

    Hey!

    You can contact the Avada support. :)

    Kidding aside, if you want to remove the Enfold theme’s default flag configuration, add this in the functions.php file:

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

    You can then use the wpml language flag code to render the language switcher anywhere you want. For example, you can edit includes > helper-main-menu.php, use this code:

    do_action('icl_language_selector');
    

    Or add something like this in the functions.php file to insert the language switcher inside the top bar of the header:

    add_action('avia_meta_header', 'add_custom_content_to_header');
    function add_custom_content_to_header() {
    	do_action('icl_language_selector');
    }

    Cheers!
    Ismael

    #436604

    Thanks Ismael,

    your suggested solution works like a charm!

    Can you please take a notice to my other issue of duplicate content on Masonry items when press Load More button?

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to change position of WPML langs on the right of my secondary menu’ is closed to new replies.