32 Code Snippets To Remove or Modify All Schema Microdata in Genesis

This post contains 32 code snippets which you can use to remove or modify the default schema included in Genesis.

The code enables you to modify or remove the schema from your child themes functions file.

If you want to remove or modify all the schema, you can simply upload the file to your child themes root directory and include it in your functions file with one line of code.

How To Remove The Schema From One Element #

Simply remove the link to the schema from the code:

Before

$attributes['itemtype']  = 'http://schema.org/WebPage';

After

$attributes['itemtype']  = '';

How To Modify The Schema For One Element #

Simply change the link to the schema in the code:

Before

$attributes['itemtype']  = 'http://schema.org/WebPage';

After

$attributes['itemtype']  = 'http://schema.org/some-other-url';

Here’s the entire file containing all code with all the schema removed:

Related Code Snippets

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.