Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
frankwl
tagDiv Member

Excellent. Good to learn.

Final question:
when changing this in the parent-theme files it is not update safe.

Can I overwrite that function in my child-theme functions.php?


if ( ! function_exists( 'get_item_scope' ) ) :
function get_item_scope() {
//show the review meta only on single posts that are reviews, the rest have to be article (in article lists)
// if ($this->is_review && is_single()) {
// return 'itemscope itemtype="' . td_global::$http_or_https . '://schema.org/Review"';
// } else {
// return 'itemscope itemtype="' . td_global::$http_or_https . '://schema.org/Article"';
}

frankwl
tagDiv Member

Hi Bogdan,

this is very useful info. Thank you!

I checked with the author of wprichsnippets and he pointed out:

“I can see schema for Article and BlogPosting, these two could conflict. It’s not harmful though, the thing here is Google will pick one of them, I don’t know which.”

What is your view on that?

Regards,
Frank

frankwl
tagDiv Member

e.g. the author item is part of Blog-posting as type ‘thing’ and within Article as type ‘Person’ and again within hentry as type ‘hcard’. And the Article item (coming from Newspaper-them) should not be there at all, when there is the Blog-Posting (coming from wprichsnippets) item.

Which theme files would have to be modified?

A first grep gives header.php and td_module_single_base.php as the only sources which mention schema.org?!

Tx, Frank

Viewing 3 posts - 1 through 3 (of 3 total)