-
AuthorPosts
-
April 23, 2015 at 11:39 am #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!
April 23, 2015 at 10:01 pm #433793Hello, any help to my issue?
April 24, 2015 at 8:53 am #433954Hey!
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,
IsmaelApril 24, 2015 at 11:52 am #434035Sorry 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!
April 26, 2015 at 2:28 pm #434868Hey!
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,
AndyApril 27, 2015 at 11:56 am #435161This reply has been marked as private.April 29, 2015 at 11:03 am #436577Hey!
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!
IsmaelApril 29, 2015 at 11:57 am #436604Thanks 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?
-
AuthorPosts
- The topic ‘How to change position of WPML langs on the right of my secondary menu’ is closed to new replies.