stargazer/library/ext/breadcrumb-trail.php line 193
// Check if the item is linked.
preg_match( '/(<a.*?>)(.*?)(<\/a>)/i', $item, $matches );
// Wrap the item text with appropriate itemprop.
$item = !empty( $matches ) ? sprintf( '%s<span itemprop="name">%s</span>%s', $matches[ 1 ], $matches[ 2 ], $matches[ 3 ] ) : sprintf( '<span itemprop="name">%s</span>', $item );
To this…
// Check if the item is linked.
preg_match( '/<a (.*?)>(.*?)<\/a>/i', $item, $matches );
// Wrap the item text with appropriate itemprop.
$item = !empty( $matches ) ? sprintf( '<a %s itemprop="item"><span itemprop="name">%s</span></a>', $matches[ 1 ], $matches[ 2 ] ) : sprintf( '<span itemprop="name">%s</span>', $item );
]]>First of all, thanks for the great theme.
I’m using Yoast SEO plugin. In Search Console i’m getting multiples errors in structured data microformat: “author” and “updated”.
I’ll make the adjustments manually in the theme but it will be a rework whenever I update him. Here the link to the recommendation of the plugin.
Please, if you can adjust this for a future upgrade, I’ll be grateful.
]]>1. the score (e.g. “9”)
2. max score (e.g. “out of 10”)
3. the review text (e.g. “Great game!”)
4. item name (e.g. Starcraft)
html has microformats for this: https://microformats.org/wiki/hreview What does instant articles have?
]]>The errors are:
Miss: author
Miss: updated
I receive the error in this line for all the testimonial:
<div class=”slide slide3 testimonial_rotator_slide hreview itemreviewed item has-image cf-tr”>
How can i fix this and have zero error? You can find my rotator here:
https://www.tecnicovincente.it/
Thanks so so much
https://www.ads-software.com/plugins/testimonial-rotator/
]]>It’s due to the post_class
feature under WP’s function that adds hEntry
, so it’s not entirely a problem specific to the Esplanade theme, but all other themes that do not have the addition microformat tags in the archive/home/list page types.
I’ve resolved this issue by following this support thread: https://www.ads-software.com/support/topic/google-webmaster-tools-structured-data-microformatmicrodata-hentry-errors
Didn’t manage to make it work via add_filter
in functions.php
, but I did make it work by editing content.php
and adding the following lines after <!-- .entry-summary -->
:
<?php
$t = get_the_modified_time('F jS, Y');
$author = get_the_author();
$title = get_the_title();
echo '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>';
?>
Putting this info out here, just in case the theme author would like to add this into the theme or if you can figure out a cleaner way of solving this.
]]>I am having trouble to set up Rich Pins for my website “blog.kokidoo.se”
I have read that Pinterest does not support anymore microformat v1 but they rather support microformat v2.
Does this plugin support microformat v1 or v2?
Thanks a lot
Matteo
https://www.ads-software.com/plugins/zip-recipes/
]]>I really think that any theme should support the microformat correctly these days
* Can you update when this will be fixed?