Answer the question
In order to leave comments, you need to log in
In Schema, the url field is not a valid link value - how to fix it?
Schema org markup Product listing (list of products from one category)
Goes to Google, Yandex grumbles at
WARNING: the value "" in the url field is not a valid link value
<div style="display:none" itemscope itemtype="http://schema.org/ItemList">
<span itemprop="name">Название категории</span>
<span itemprop="description">Купить бла-бла-бла</span>
<meta itemprop="numberOfItems" content="1" />
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<meta itemprop="position" content="1" />
<span itemtype="http://schema.org/Thing" itemprop="url">https://test.com/cat/mat/bat/</span>
<span itemprop="name">Sony N-123</span>
<img itemprop="image" src="ttps://test.com/upload/f81d2.jpg" />
</li>
</div>
Answer the question
In order to leave comments, you need to log in
If you have a site on wordpress and the
Remove Redundant Links plugin is installed, then this will happen in Yandex. Google skips.
If not on wordpress, then you need to write the url of the page in the micro-markup. For example like this:
<?php if(is_front_page() || is_page('kontakty')): ?>
<div style="display:none;" itemscope itemtype="http://schema.org/Organization">
<span itemprop="name">Демонтаж </span>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">ул. 12-й Котляковский переулок</span>,
<span itemprop="addressLocality">Москва, Россия</span>,
<span itemprop="postalCode"></span>.
</div>
<img itemprop="logo" src="<?php echo get_template_directory_uri(); ?>/assets/img/logo.svg" />
<span itemprop="telephone">+7 (495) 324</span>
<span itemprop="email">[email protected]</span>
//здесь решается ваша проблема
<a itemprop="url" href="<?=is_page('kontakty') ? '/kontakty' : '/'?>">Демонтаж</a>
</div>
<?php endif; ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question