• Resolved antoffensive

    (@antoffensive)


    How can I remove all the schema from the html on the homepage in the all in one seo plugin? I’m also wondering how to remove all site-wide schemas as well.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Prabhat

    (@prabhatrai)

    Hi @antoffensive,

    Thanks for reaching out!

    You can remove the schema from your Homepage or site-wide by modifying and using our aioseo_schema_disable filter Here’s the documentation for this filter –

    https://aioseo.com/docs/aioseo_schema_disable/

    To remove the schema site-wide, you can add this code to your site –

    	
    add_filter( 'aioseo_schema_disable', 'aioseo_disable_schema' );
    function aioseo_disable_schema( $disabled ) {
    return true;
    }

    To remove it only from your Homepage, you can use this code –

    add_filter( 'aioseo_schema_disable', 'aioseo_disable_schema' );
    function aioseo_disable_schema( $disabled ) {
    if ( is_front_page() ) {
    return true;
    }
    return $disabled;
    }

    We recommend taking a backup of your website before adding any custom code to your website.

    Additionally, we recommend using the WPCode (https://wpcode.com/) plugin to add the code to your site as it performs multiple sanitization tests before activating the snippet, enhancing the stability of your website.

    Please let me know if you have any questions or encounter any issues.

    I’m really looking forward to helping you.

    Thanks!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.