Title: Removing Schema codes
Last modified: December 18, 2023

---

# Removing Schema codes

 *  [alinedaei](https://wordpress.org/support/users/alinedaei/)
 * (@alinedaei)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/removing-schema-codes/)
 * Hello everyone
 * I have a problem with my website. It generates Schema codes for products pages
   automatically. I disabled schema in yoast and removed schema pro plugin 6 or 
   7 months ago, but unfortunately it seems somehow which I don’t know schema codes
   in woocommerce pages generate automatically.
 * Please help me to remove them (they are making trouble for me in search console
   with errors and warnings).
 * the pages which I have problem with is this:
 * [https://econclinic.com/%D8%AF%D9%88%D8%B1%D9%87-%D9%87%D8%A7%DB%8C-%D8%A2%D9%85%D9%88%D8%B2%D8%B4%DB%8C/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d9%81%d8%a7%d8%b1%da%a9%d8%b3](https://econclinic.com/%D8%AF%D9%88%D8%B1%D9%87-%D9%87%D8%A7%DB%8C-%D8%A2%D9%85%D9%88%D8%B2%D8%B4%DB%8C/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d9%81%d8%a7%d8%b1%da%a9%d8%b3)
 * Best Regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremoving-schema-codes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/removing-schema-codes/#post-17286965)
 * Yoast continues to generate a schema. If you have switched it off, have you also
   cleared the cache from WP Rocket?
 * There are also 2 other schemas, one of which probably comes from an OpenGraph
   plugin. The last one could come from the theme or individual customisations via
   snippet plugin or functions.php.
 * To find these, it would be worth deactivating all plugins – especially WP Rocket
   so that you can see the changes immediately. Then reactivate them one by one 
   until you see the codes again.
 *  [Ashutosh Sharma](https://wordpress.org/support/users/ashutosharma97/)
 * (@ashutosharma97)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/removing-schema-codes/#post-17287921)
 * WooCommerce generates its own schema. Have you disabled that? If not, [here is an existing thread](https://wordpress.org/support/topic/can-product-schema-be-turned-off/)
   which contains the PHP code to do so.
 *  Thread Starter [alinedaei](https://wordpress.org/support/users/alinedaei/)
 * (@alinedaei)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/removing-schema-codes/#post-17288111)
 * [@ashutosharma97](https://wordpress.org/support/users/ashutosharma97/)
 * Thank you. I checked the topic you mentioned.
 * I added the code you wrote in my functions.php and deleted cache with WP Rocket
   and checked some of my products with this tool:
 * [https://search.google.com/test/rich-results](https://search.google.com/test/rich-results)
 * It seems the problem gone away. I requested revalidation in search console, so
   in next few days I will update this topic.
 * Best Regards

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

The topic ‘Removing Schema codes’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [alinedaei](https://wordpress.org/support/users/alinedaei/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/removing-schema-codes/#post-17288111)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
