• Resolved hugodebe

    (@hugodebe)


    Hi, I can only translate 6 out of 10 “Home Icon Menu” combinations of title/description. I have created them into the theme options > Home Layout tab.

    I’m using Polylang. The 6 first icons are being translated normally in front. But for my 4 last icons, Polylang is not getting any string from the theme.

    Any idea?

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yeah this isn’t set up to do more then 6. It has to do with how WPML pulls in those arrays for the string translations. (polylang pulls from WPML settings).

    Unfortunately there isn’t much that you can do unless you use a child theme. Or get premium (with premium icon menus can be added anywhere and with shortcodes so you can do it in the page content).

    If your using a child theme you can override the WPML config or manually add the strings to be available through the string translation.

    Ben
    Kadence Themes

    Thread Starter hugodebe

    (@hugodebe)

    Yes, I use a child theme. Could you explain me a bit how to:

    override the WPML config or manually add the strings to be available through the string translation.

    I’m not familiar yet with WPML config, neither adding the strings manually, but I tried, adding something like this in function.php:

    // Virtue Home Icon Menu translation
    pll_register_string('title',$virtue['icon_menu'],'virtue');
    pll_register_string('description',$virtue['icon_menu'],'virtue');

    I can see 2 new strings in the Polylang table, but they are empty of text. What am I missing? Do I need to add something (like pll_) into icon-menu.php into my child theme?

    Thanks in advance

    Here is an option… Copy wpml-config.xml into your child theme.

    On line copy line 97-101 and paste that right after changing key name=”5″ to 6.

    Then repeat.

    Kadence Themes

    Thread Starter hugodebe

    (@hugodebe)

    I get it! Thanks a lot

    Into Polylang, the strings appear now under the group virtue_child.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Home Icon Menu translation strings missing’ is closed to new replies.