Polylang for WordPress: pll_e function breaks HTML
P粉158473780
P粉158473780 2023-08-30 21:58:48
0
1
389
<p>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. </p> <p>Added custom string translation should look like this; no need for pll_e to work properly</p> <p>But after I added pll_e to that section in index.html;</p> <p> <pre class="brush:html;toolbar:false;"><?php get_header(); ?> <div class="content"> <?php if ( get_theme_mod('heading-enable','on') == 'on' ) : ?> <?php echo get_template_part(pll_e ('inc/page-title') ); ?> <?php endif; ?></pre> </p> <p>It breaks the html but the translation works. It looks like this; it looks like this</p> <p>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. </p> <p>By the way, there is a difference between having pll_e and not having pll_e. </p> <p>No pll_e with pll_e</p>
P粉158473780
P粉158473780

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!