Problème d’affichage des images dans Flex Block 1 (Balise )

Posted in: Newspaper
Post count: 1

Bonjour l’équipe tagDiv,

J’utilise le thème Newspaper avec tagDiv Composer et j’ai un problème d’optimisation LCP (Core Web Vitals) sur mes blocs.

Actuellement, mon Flex Block 1 génère les images sous forme de background-image à l’intérieur d’une balise <span>. Cela m’empêche d’utiliser l’attribut fetchpriority=”high” pour optimiser le chargement des images principales.

Ma question est la suivante :
Est-il possible de configurer le Flex Block 1 directement dans l’éditeur pour qu’il génère une balise réelle (comme c’est le cas à l’intérieur de mes articles) ? Ou dois-je obligatoirement ajouter un code PHP personnalisé pour forcer ce comportement ?

Voici le code actuel généré par mon bloc :

HTML
<span class=”entry-thumb td-thumb-css” style=”background-image: url(‘image.jpg’);”

lien de sit web : JOBMA.MA

merci :

Post count: 35449

Hi,
What you can do is to use the module builder, create the module layout as you want, and after that, replace the flex block 1 with the flex block builder element. Choose the create module, and the images will be set using the img tag rather than as background images, as they are now on flex block 1.
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.