Jump to content

Prestashop 1.6 structure pour champ Author


Recommended Posts

Bonjour

Prestashop 1.6.25  mysql 8.0 et php 7.1   hebergé chez OVH

Je rencontre un probleme pour que google m'affiche correctement author dans les données structurées.

Ce code est dans productcomments apres quelques recherches j'arrive a cette structure. Es ce correct ?

    </div>
                    <div class="comment_author_infos">
                        <div itemprop="author" itemtype="http://schema.org/Person" itemscope>
                        <meta itemprop="name">{$comment.customer_name|escape:'html':'UTF-8'}</>
                        </div>
                        <em>{dateFormat date=$comment.date_add|escape:'html':'UTF-8' full=0}</em>
                    </div>

Denis

 

Link to comment
Share on other sites

  • 2 weeks later...

Bonjour

Finalement j'ai redigé ainsi :

<div class="comment_author_infos" itemprop="author" itemscope itemtype="http://schema.org/Person">
                        <strong> itemprop="name">{$comment.customer_name|escape:'html':'UTF-8'}</strong><br/>
                        <em>{dateFormat date=$comment.date_add|escape:'html':'UTF-8' full=0}</em>
                    </div>

Mais google ne veut pas reindexer mes pages .... 

Link to comment
Share on other sites

Merci pour votre reponse 

Mais je ne comprends pas pourquoi il ne me prends pas

<div class="comment_author_infos" itemprop="author" itemscope itemtype="http://schema.org/Person">
                        <strong> itemprop="name">{$comment.customer_name|escape:'html':'UTF-8'}</strong><br/>
                        <em>{dateFormat date=$comment.date_add|escape:'html':'UTF-8' full=0}</em>
                    </div>

Tout y est !

Link to comment
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
×
×
  • Create New...