Jump to content

PS 1.7 Bloc Reassurance ajouter balises ALT images


Recommended Posts

Bonjour,

Je cherche un moyen d'ajouter des balises ALT pour mes images dans mon bloc Reassurance.

J'ai repéré ce code dans le fichier displayBlock.tpl :

 <div class="block-icon">
                    {if $block['icon'] != 'undefined'}
                        {if $block['icon']}
                            <img class="svg invisible" src="{$block['icon']}">
                        {elseif $block['custom_icon']}
                            <img src="{$block['custom_icon']}">
                        {/if}
                    {/if}
                </div>
                <div class="block-title" style="color:{$textColor}">{$block['title']}</div>
                <p style="color:{$textColor};">{$block['description'] nofilter}</p>
            </div>

J'imagine qu'il faut ajouter l’attribut ALT ici, mais je ne saurais aller plus loin sans aide.

Voici l'extrait du code source de mon site :

<div class="blockreassurance col-sm-12">
                <div class="row">
                                                                    <div class="col-md-3 offset-md-0 col-sm-6 offset-sm-0 col-xs-12"
            >
            <div class="block-icon">
                                                            <img src="/modules/blockreassurance/views/img/img_perso/imprimé france.png">
                                                </div>
            <div class="block-title" style="color:#000000">Imprimé en France</div>
            <p style="color:#000000;"></p>
        </div>
                                                                          <div class="col-md-3 offset-md-0 col-sm-6 offset-sm-0 col-xs-12"
            >
            <div class="block-icon">
                                                            <img src="/modules/blockreassurance/views/img/img_perso/livraison.png">
                                                </div>
            <div class="block-title" style="color:#000000">Livraison rapide</div>
            <p style="color:#000000;"></p>
        </div>
                                                                          <div class="col-md-3 offset-md-0 col-sm-6 offset-sm-0 col-xs-12"
            >
            <div class="block-icon">
                                                            <img src="/modules/blockreassurance/views/img/img_perso/contact.png">
                                                </div>
            <div class="block-title" style="color:#000000">Contact</div>
            <p style="color:#000000;"></p>
        </div>
                                                                          <div class="col-md-3 offset-md-0 col-sm-6 offset-sm-0 col-xs-12"
            >
            <div class="block-icon">
                                                            <img src="/modules/blockreassurance/views/img/img_perso/paiement.png">
                                                </div>
            <div class="block-title" style="color:#000000">Paiement sécurisé</div>
            <p style="color:#000000;"></p>
        </div>
      </div><div class="row">        </div>
</div>

Merci pour une aide éventuelle !

Share this post


Link to post
Share on other sites

essayez ceci :

<div class="block-icon">
   {if $block['icon'] != 'undefined'}
     {if $block['icon']}
     	<img class="svg invisible" src="{$block['icon']}" alt="{$block['title']}">
     {elseif $block['custom_icon']}
     	<img src="{$block['custom_icon']}" alt="{$block['title']}">
     {/if}
   {/if}
</div>
<div class="block-title" style="color:{$textColor}">{$block['title']}</div>
<p style="color:{$textColor};">{$block['description'] nofilter}</p>
</div>

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More