• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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:

Register for full access

Related Code Snippets

  • Add Business Hours With Schema To Your Website
  • Code To Add Local Business Contact Details With Schema

Genesis Markup

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags