[Support request] Remove WPHeader and Sitenavigationelement Schema ?

Home Forums Support [Support request] Remove WPHeader and Sitenavigationelement Schema ?

Home Forums Support Remove WPHeader and Sitenavigationelement Schema ?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #955605
    Samuel

    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

    #956064
    Tom
    Lead Developer
    Lead Developer

    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' );
    #956578
    Samuel

    Thank you. I suppose i need to add them into the php using the steps mentioned here : https://docs.generatepress.com/article/adding-php/

    #956631
    David
    Staff
    Customer Support

    Hi there,

    yes that is the correct way to add the PHP.

    #1055007
    Samuel

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

    #1055109
    Tom
    Lead Developer
    Lead Developer

    Are you wanting to completely remove schema?

    If so, try this:

    add_filter( 'generate_schema_type', '__return_false' );

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.