Hello! Thank you for paying attention to my message.
I am developing a site for myself and decided to test the free Polylang plugin with the aim of purchasing it further, if everything suits me. Before that I used qTranslate-X. Polylang is very convenient and perfectly translates website pages and much more, including custom strings (which the plugin found automatically).
Problem: I cannot translate the link that was created in the Basel theme header builder. The theme developers are referring to you to solve this problem.
The link has the following code: <ul class = "inline-list inline-list-with-border main-nav-style"> <li> <a class="color-primary" href="#"> PACKAGE TRACKING </ a > </li> </ul>
What I was trying to do:
1. Written in the theme’s functions.php: pll_register_string ('find', '<ul class = "inline-list inline-list-with-border main-nav-style"> <li> <a class = "color-primary" href = "#"> PACKAGE TRACKING </a> </li> </ul> ');
Next, I translated this custom string into the languages I need in the plugin’s admin panel. Next, I wrote the theme header builder into the editor: <?php pll_e ('<ul class = "inline-list inline-list-with-border main-nav-style"> <li> <a class="color-primary" href="#"> PACKAGE TRACKING </a> </li> </ul> '); ?>
Nothing succeeded.
2. I continued looking for a solution. I could not find a theme template that would be responsible for the header builder and displaying it on the site pages. But I found entries about the link I created in phpMyAdmin in the vp_postmeta table. I supplemented the line entry with the pll_e expression. This also did not lead to success.
3. I was trying to create a string in the wp_icl_strings table by analogy with the auto-found custom strings in the plugin. It didn’t help either.
Perhaps I am doing something wrong. Please help me figure it out. What qTranslate-X was VERY CONVENIENT was that it was possible to use multilingual fields, for example: [: en] English Text [: xx] Other language Text [:]. Unfortunately, there is no such thing in Polylang.
My link consists of divs, here is the complete structure:
<div class = "whb-column whb-col-right whb-visible-lg">
<div class = "whb-text-element reset-mb-10"> <ul class = "inline-list inline-list-with-border main-nav-style">
<li> <a class="color-primary" href="#"> PACKAGE TRACKING </a> </li> </div>
</div>