Polylang for WordPress: pll_e function breaks HTML
P粉158473780
P粉158473780 2023-08-30 21:58:48
0
1
487

I am using Polylang and loco Translation to translate my blog site. I'm adding the string translations manually and this works fine with the get_theme_mod part, but there is one place where I also want to add a custom string translation and after I add it manually it breaks the html and the css won't work.

Added custom string translation should look like this; no need for pll_e to work properly

But after I added pll_e to that section in index.html;

 

It breaks the html but the translation works. It looks like this; it looks like this

Does anyone know a solution? I think it has something to do with get_template_part and get_theme_mod since the same thing I did with the get_theme_mod part worked fine.

By the way, there is a difference between having pll_e and not having pll_e.

No pll_e with pll_e

P粉158473780
P粉158473780

reply all (1)
P粉418214279

i solved the problem by editing index.html like this ;

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!