Site logo

Archived topic

Remove WPHeader and Sitenavigationelement Schema ?

5 replies · Started by Samuel on July 12, 2019

Viewing posts 1–6 of 6

Schema

Basically i put in the Organization Schema which is correct, but i would like to remove the WPheader and Sitenavigation element schema code.

How and where can i do it ?

I'm using latest version of generatepress premium , and elementor.

Thanks

Hi there,

You can disable schema output by GP entirely like this:

add_filter( 'generate_schema_type', '__return_false' );

If you only want to disable the header and navigation schema only, you can do this:

add_filter( 'generate_header_microdata', '__return_false' );
add_filter( 'generate_navigation_microdata', '__return_false' );

Hi there,

yes that is the correct way to add the PHP.

Hello, there is an new schema from the theme, can you also give me the code? It's called WebPage schema

Are you wanting to completely remove schema?

If so, try this:

add_filter( 'generate_schema_type', '__return_false' );

This archived topic is closed to new replies.