Remove Schema for Articles

Posted in: Newspaper
Post count: 224

Hi,

We want to remove the schema code from the theme and by the way it will be better if we can TURN IT OFF without this STRESS and work, we don’t want where our request will fall under not provided support.

following this screenshot https://prnt.sc/nx0d2i i don’t know if removing the following code will solve it.

/**
* returns the item scope for single pages. If we have an article or a review
* @return string
*/
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"';
}
}

function show_item_scope() {
echo printf( '%1$s', $this->get_item_scope());
}

Thanks

Post count: 18283

Hello !

Please follow this topic regarding the same issue: https://forum.tagdiv.com/topic/how-to-disable-schema-coming-from-newspaper-theme/

Thank you !

Post count: 224

is that the line i am supposed to remove you are sending me to another link with no information on which code to remove

Post count: 224

Are we to remove the whole of this block?

/**
* returns the item scope for single pages. If we have an article or a review
* @return string
*/
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"';
}
}
function show_item_scope() {
echo printf( '%1$s', $this->get_item_scope());
}

Or just


'://schema.org/Review"';
'://schema.org/Article"';
Post count: 35449
Post count: 224

ok
let me see

Post count: 224
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.