Jump to content

data-vocabulary.org schema deprecated - warehouse theme [ps 1.6]


Elgiuly

Recommended Posts

Hello,

can anyone help us to modify the breadcrumb.tpl file to avoid the Google "data-vocabulary.org schema deprecated" warning

?

PS 1.6.1.24

 

This is our current breadcrumb.tpl:

{*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

<!-- Breadcrumb -->
{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}
<div class="breadcrumb clearfix {if isset($warehouse_vars.breadcrumb_width) && $warehouse_vars.breadcrumb_width == 0}fullwidth-breadcrumb{/if}">
	{if isset($warehouse_vars.breadcrumb_width) && $warehouse_vars.breadcrumb_width == 0}<div class="container">{/if}
		<a class="home" href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{l s='Return to Home'}"><i class="icon-home"></i></a>
	{if isset($path) AND $path}
		<span class="navigation-pipe"{if isset($category) && isset($category->id_category) && $category->id_category == (int)Configuration::get('PS_ROOT_CATEGORY')} style="display:none;"{/if}>{$navigationPipe|escape:'html':'UTF-8'}</span>
		{if $path|strpos:'span' !== false}
			<span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="title">'|@replace:'</a>': '</span></a></span>'}</span>
		{else}
			{$path}
		{/if}
	{/if}

		{if $page_name == 'product'}
		{hook h='productnavs'}
		{/if}

{if isset($warehouse_vars.breadcrumb_width) && $warehouse_vars.breadcrumb_width == 0}</div>{/if}
</div>

<!-- /Breadcrumb -->

Thank you!

Edited by Elgiuly (see edit history)
Link to comment
Share on other sites

  • Elgiuly changed the title to data-vocabulary.org schema deprecated - warehouse theme [ps 1.6]

Try to something like this:

 

<span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://schema.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="name">'|@replace:'</a>': '</span></a></span>'}</span>

 

Link to comment
Share on other sites

1 minute ago, webprog said:

Try to something like this:

 

<span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://schema.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="name">'|@replace:'</a>': '</span></a></span>'}</span>

 

Thank you for your help!

Unfortunately I am not a coder... where exactly I should add (or replace ) this?

Link to comment
Share on other sites

Ok, change this line:

<span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="title">'|@replace:'</a>': '</span></a></span>'}</span>

by this:

<span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://schema.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="name">'|@replace:'</a>': '</span></a></span>'}</span>

 

  • Like 2
Link to comment
Share on other sites

On 7/19/2022 at 12:03 PM, webprog said:

Ok, change this line:

<span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="title">'|@replace:'</a>': '</span></a></span>'}</span>

by this:

<span class="navigation_page">{$path|@replace:'<a ': '<span itemscope itemtype="http://schema.org/Breadcrumb"><a itemprop="url" '|@replace:'data-gg="">': '><span itemprop="name">'|@replace:'</a>': '</span></a></span>'}</span>

 

Hello,

I made the changes to the breadcrumb.tpl file and it seems that the errors in the Google Console are decreasing.

Thanks so much for your help!

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...