• Resolved glitterball3

    (@glitterball3)


    The option to Enable Schema Markup (Search Appearance page) is missing on one of my sites where this option was previously enabled.

    On sites that never had this option enabled, there is still an option to enable/disable this.

    How do I get rid of the schema markup?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @glitterball3,

    We no longer have an option to disable it. You can still disable it via a filter though. Here’s the documentation on it – https://aioseo.com/docs/aioseo_schema_disable/

    Let me know if you have any further questions.

    – Arnaud

    Thread Starter glitterball3

    (@glitterball3)

    Thanks for the reply – the code in the example if for products.
    If it helps anyone, adding the following code to a theme’s functions.php will get rid of the schema markup:

    add_filter( ‘aioseo_schema_disable’, ‘aioseo_disable_schema’ );

    function aioseo_disable_schema( $disabled ) {
    return true;
    }

    @glitterball3 Thank you so much. I’ve been looking for this for a long time.

    When copying the code, the quotation marks are incorrect. I think it will not be a problem when shared as Cod.

    // A?OSEO SCHEMA D?SABLE
    
    add_filter( 'aioseo_schema_disable', 'aioseo_disable_schema' );
    
    function aioseo_disable_schema( $disabled ) {
    return true;
    }
    • This reply was modified 3 years, 9 months ago by mkwm.
    • This reply was modified 3 years, 9 months ago by mkwm.
    • This reply was modified 3 years, 9 months ago by mkwm.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing Option to Enable Schema Markup’ is closed to new replies.