Okay, here is the next problem.
I want to change lang display of languages in primary menu from flags to lang name, but changing display type in WPML settings doesnt work, also, if I remove WPML from menu using function and after that set in the WPML settings for display in the primary menu – but langs going before search icon, when I need them after search icon
Like always, wants to make it using functions =)
Hey mdxclr,
Please refer to this post – https://wpml.org/forums/topic/instead-of-name-flags-are-shown/#post-1107538
Best regards,
Yigit
Can I do this in Child theme without editing parent?
Hi,
I’m sorry but you can’t override the W P M L configuration in the child theme. Please restore the parent theme files.
Best regards,
Andy
I make it in another way, just using functions.php in child theme.
Disable search in Theme settings, also remove default WPML flags using filters.
After that in WPML settings choose “Display in menu” and display type->lang name, and manually add search but with another priority (5, that is lower of WPML) using ‘avf_fallback_menu_items’ and ‘wp_nav_menu_items’ filters.
Done, we have change position of search button before languages.