[Breadcrumb] schéma data-vocabulary obsolète

Benjidvls -  
bg62 Messages postés 23732 Date d'inscription   Statut Modérateur Dernière intervention   -
Bonjour,

Certaines de mes pages ne sont plus indexées par google. Mon site est sous wordpress.

J'ai reçu cet avertissement sur la google search console :

Le schéma data-vocabulary.org est obsolète et n'est plus pris en charge par Google. Veuillez maintenant utiliser les types schema.org.

Comment changer cela ? Dans quel fichier svp ?

Merci d'avance

Je crois que cela vient de ce code dans mon header.php :
<div id="fil_ariane">
<strong>Vous êtes ici : </strong>
<span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""><a itemprop="url" title="Coin des animateurs" href="http://www.coin-des-animateurs.com/"><span itemprop="title">Coin des animateurs</span></a></span> >
<?php
if (is_page())
{
$myAncestors = get_post_ancestors($post);
if ($myAncestors)
{
$myAncestors = array_reverse($myAncestors);
foreach ($myAncestors as $crumb)
{
echo '<span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""><a itemprop="url" href="'.get_permalink($crumb).'"><span itemprop="title">'.get_the_title($crumb).'</span></a></span> > ';
}
}
}
if (is_category())
{
$myCategory = get_the_category();
$myParentId = get_category($myCategory[0])->parent;
$myParent = get_category( $myParentId );
if (single_term_title('', false) != $myParent->name)
{
echo '<span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""><a href="' . esc_url( get_category_link( $myParentId ) ) . '" itemprop="url"><span itemprop="title">'.$myParent->name.'</span></a></span> > ';
}
echo '<span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""><span itemprop="title">'.single_term_title('', false).'</span></span>';
}
if (is_single())
{
$myCategory = get_the_category();
echo get_category_parents($myCategory[0], true, ' > ');
}
if (is_page() || is_single())
{
echo '<span itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""><span itemprop="title">'.the_title('', '', false).'</span></span>';
}
?>
</div>

3 réponses

Anis_web Messages postés 61 Date d'inscription   Statut Membre Dernière intervention   5
 
Avant de faire quoi que ce soit, fait d'abord une sauvegarde de ton site.
Ensuite utilise ce plugin :
https://fr.wordpress.org/plugins/schema/
Il suffit de lire la doc du plugin et il va faire le travail.
Ensuite téléchérge seoquake for chrome utilise le pour voir si ton site utilise bien le schema.
Lien Seoquake :
https://chrome.google.com/webstore/detail/seoquake/akdgnmcogleenhbclghghlkkdndkjdjc?hl=fr
Aussi il y a un outil de Google qui vérifie les erreurs du schema que tu peux utilisé :
https://search.google.com/structured-data/testing-tool/?hl=fr
En dernier lieu n'oublie pas de renvoyer à nouveau ton sitemap.xml depuis google webmasterTools après avoir mentionner la correction de l'erreur schema sur ton Cpannel webmastertools et attendre environ 5 jours ouvré pour voir si l'erreur a disparu de webmastertools et ainsi vérifier l'etat d'indexation de tes pages à nouveau.
Bon courage,
0
Benjidvls
 
Merci beaucoup pour ta réponse complète. Je m'en charge !
0
bg62 Messages postés 23732 Date d'inscription   Statut Modérateur Dernière intervention   2 409
 
question redirigée vers "wordpress" .
0