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

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems