How to Disable Schema coming from Newspaper theme
Hi,
You can remove the schema article from td_module_single_base.php -> https://www.screencast.com/t/5rqeyAv0r -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php
Hope this will help you!
Thanks.
Yes, the article schema coming from Newspaper theme is gone now. But now another Schema “WebPage” is being generated.
https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fwww.techuntold.com%2Fdelete-all-alarms-at-once-iphone-android%2F
Hi,
Did you set your schema? or you just remove the schema from theme ?
This schema is in wp-content> theme> Newspaper> header.php file-> http://prntscr.com/oxn19o
Thank you!
I have removed the code from the header.php but WebPage schema is till there.
Hi,
Please go in wp-content/plugins/td-composer/legacy/Newspaper/header.php , in wp-content/plugins/td-composer/legacy/Newspaper/header-empty1.php , in wp-content/plugins/td-composer/mobile/header.php and wp-content/plugins/td-composer/mobile/header-amp.php and remove the schema from those files too.
After that clear all cache and try again.
Thank you!
That worked!
But now we are getting 3 additional schema – Organization, Person, ImageObject
how to remove them as well.
Hello,
Those schema are from cloud library, you need to go in wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php -> http://prntscr.com/oy07rg
Thank you!
Hi,
Did you remove the theme from td_module_single_base.php -> http://prntscr.com/oy500v ?
Thank you!
Yes, I did. Now I have reverted everything back to usual. It was getting quite messy.
Now, I am getting the following warning when testing for Structured data.
“The mainEntityOfPage field is recommended. Please provide a value if available.”
Can you please help me what I am missing..
Hello,
If you want to have rich snippets in Google, then will be recommended to use the SEO Yoast, you can check more in this documentation -> https://yoast.com/what-are-rich-snippets/
Thank you!
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"';
Hello @iamkingsleyf,
So for example if you want to remove the article and review meta this function should be deleted/commented – http://prntscr.com/ocxpcn -> http://prntscr.com/ocxnaw
-> http://prntscr.com/ocxphq
Thanks.
@calin i have done that but its showing https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fhealthtian.com%2Fsyndrome%2F
HI,
Just make sure that you remove the schema from these two files wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php -> http://prntscr.com/phfq3f wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php -> http://prntscr.com/phfqi9 after that make sure that you clear all cache, after that the schema should be removed from theme.
Thank you!
Hi,
If there is still a problem, you can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.
Thanks
