How to Disable Schema coming from Newspaper theme

Posted in: Newspaper
Post count: 81

How to Disable Schema coming from Newspaper theme

URL: https://www.techuntold.com

Post count: 35449

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.

Post count: 81

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

Post count: 35449

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!

Post count: 81

Ok…we only want schema from Yoast SEO.

so yes I removed the schema and didn’t set any in the code there.

So, should I remove this WebPage schema from here also – wp-content> theme> Newspaper> header.php?

Post count: 81

I have removed the code from the header.php but WebPage schema is till there.

https://www.techuntold.com/force-quit-mac-app-hangs/

Post count: 35449

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!

Post count: 81

That worked!

But now we are getting 3 additional schema – Organization, Person, ImageObject

how to remove them as well.

https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fwww.techuntold.com%2Fchange-twitch-name-color%2F

https://prnt.sc/oxyftc

Post count: 35449

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!

Post count: 81

Removed from this file as well but the schemas are still coming.

Post count: 81

moreover our other schema has also stopped working properly…

Post count: 35449

Hi,

Did you remove the theme from td_module_single_base.php -> http://prntscr.com/oy500v ?

Thank you!

Post count: 81

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..

https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fwww.techuntold.com%2Fhow-to-translate-pdf-files%2F

Post count: 35449

Hi,

If you want to go back to the original version of schema, will be better if you’ll delete the theme and theme plugins and install theme again, in this way you’ll prevent the problems.

Thank you for your understanding!

Post count: 81

Sure.

Actually, we never get a rich snippet in Google Search results when we add a review and other schemas to an article.

Do you have any tips or recommendations to get them?

Post count: 35449

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!

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

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.

Post count: 224
Post count: 35449

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!

Post count: 224

Thanks it worked.

Post count: 224
Post count: 35449

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

Post count: 224

i have sent a mail

Viewing 24 posts - 1 through 24 (of 24 total)
You must be logged in to reply to this topic.