• Resolved Mostafa

    (@mostafasayyedi)


    Hello.
    is Yoast SEO conflict with YASR?
    i read article about schema that Yoast Conflict with some Plugin.
    Can i disable Yoast Schema?
    function disable_yoast_schema_data($data){
    $data = array();
    return $data;
    }
    add_filter(‘wpseo_json_ld_output’, ‘disable_yoast_schema_data’, 10, 1);
    Thanks.

    • This topic was modified 4 years, 11 months ago by Mostafa.
Viewing 1 replies (of 1 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello!

    I don’t think that you will have some problem keeping both schema info, however, if you want to disable yoast, that code works, but I suggest to use this:

       function disable_yoast_schema_data(){
            return false;
        }
        add_filter('wpseo_json_ld_output', 'disable_yoast_schema_data', 10, 1);

    Just insert this code in your child theme, and you’re set!

    Best,
    Dario

Viewing 1 replies (of 1 total)
  • The topic ‘Disable Schema Yoast SEO?’ is closed to new replies.