Jump to content

how to fix this error, Missing field "itemListElement"


barati_a

Recommended Posts

hi 

first I had "Either "name" or "item.name" should be specified"error in my google webmaster tools 

then I have to changed  my breadcrumb.tpl like this

<nav data-depth="{$breadcrumb.count}" class="breadcrumb hidden-sm-down">
  <ol itemscope itemtype="http://schema.org/BreadcrumbList">
    {block name='breadcrumb'}
      {foreach from=$breadcrumb.links item=path name=breadcrumb}
        {block name='breadcrumb_item'}
          {if not $smarty.foreach.breadcrumb.last}
            <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
              <a itemprop="item" href="{$path.url}"><span itemprop="name">{$path.title}</span></a>
              <meta itemprop="position" content="{$smarty.foreach.breadcrumb.iteration}">
            </li>
                   {elseif isset($path.title)}
            <li>
              <span>{$path.title}</span>
            </li>
          {/if}
        {/block}
      {/foreach}
    {/block}
  </ol>
</nav>

now that error is passed but I have a new error "Missing field "itemListElement""!

how can I fix this error in my prestashop 1.7?

tnx

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...