Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #715616

    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 =)

    • This topic was modified 7 years, 11 months ago by mdxclr.
    #716488

    Hey mdxclr,

    Please refer to this post – https://wpml.org/forums/topic/instead-of-name-flags-are-shown/#post-1107538

    Best regards,
    Yigit

    #716632

    Can I do this in Child theme without editing parent?

    #717850

    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

    #718002

    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.

    • This reply was modified 7 years, 11 months ago by mdxclr.
    #718009

    Hey!

    Glad you figured it out and thank you for sharing your solution :)
    Let us know if you have any other questions!

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Replace flags to lang name WPML’ is closed to new replies.