metabolism / wordpress-bundle

Use Wordpress and Symfony together using a Symfony bundle
MIT License
62 stars 17 forks source link

Logo, title, slogan: escaped chain that must not be #21

Closed celtic34fr closed 3 years ago

celtic34fr commented 3 years ago

When I try to add a logo to the identity of Website, I have that :

<div class="site-logo">
    &lt;span class="custom-logo-link"&gt;&lt;img width="175" height="175" src="/uploads/2021/08/cropped-picto-rse.png" class="custom-logo" alt="" /&gt;&lt;/span&gt;
</div>

And when my slogan is : "c'est un test", the page return"c&#039;est un test" All the string were escaped, when a raw string where needed.

to remove this bug you must add to the restitution of fields or function '| raw' in the source file templates / template-parts / header / site-branding.html.twig on lines 12, 17, 19, 25, 33 and 44 (logo, tiltle of site, slogan of site, mai_menu items et social_menu items).

Celtic34fr Béziers - France

jerome-barbato commented 3 years ago

Thank you you are right. I have updated the demo.