• Resolved frankytank

    (@frankytank)


    Hi!

    Is there a way to remove the markup implementation that yoast seo plugin puts on the homepage?

    I want to put my own schema markup that is different from the one from yoast (that I cannot customize enough).

    Now I have double entry, one from yoast and one from my own, confusing for mister google.

    Many thanks

    Didn’t find any info in the knowledge base about this

    https://www.ads-software.com/plugins/wordpress-seo/

Viewing 2 replies - 1 through 2 (of 2 total)
  • YES! I’ve found the solution! You have to edit a file within the Yoast SEO plugin. Go to Plugins > scroll down to the Yoast SEO plugin and click the Edit link.

    You’ll see a list of all the files for the plugin. Look for the folder called Frontend, and/or find the file named: class-json-ld.php

    On code lines 37 & 38, you’ll see two lines of code before a closing curly bracket:

    add_action( ‘wpseo_json_ld’, array( $this, ‘website’ ), 10 );
    add_action( ‘wpseo_json_ld’, array( $this, ‘organization_or_person’ ), 20 );

    I recommend to simply comment it out, in case you need it later. See my example below.

    /**
    * add_action( ‘wpseo_json_ld’, array( $this, ‘website’ ), 10 );
    * add_action( ‘wpseo_json_ld’, array( $this, ‘organization_or_person’ ), 20 );
    */

    After I saved the file, and checked the source code of the home page, the JSON-LD Schema mark up was gone!

    Hope this helps!

    Thread Starter frankytank

    (@frankytank)

    Hi,

    That’s great, many thanks for this soluton.

    I’ll try it in a couple of weeks, I’m so busy ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove shema markup implementation from yoast seo’ is closed to new replies.