Organisation Schema – Additional Details

#59007
  • Resolved Anonymous
    Rank Math free

    Hi,

    Hope someone can help.

    I was sent this https://pastebin.com/q1TChJMs to allow me to add addtional data to the organisation schema.

    How do I populate it and where do I put the code when finshed?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You could populate it like this:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if ( isset( $data['Organization'] ) ) {
            $data['Organization']['sameAs'] = ['https://twitter.com/RankMath', 'https://facebook.com/....'];
        }
        return $data;
    }, 99, 2 );

    As you can see here: https://moz.com/blog/json-ld-for-beginners

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Anonymous
    Rank Math free

    Where do I add this code?

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math today.

    You should add the code to your theme functions.php file. Let us know how it goes.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Organisation Schema – Additional Details’ is closed to new replies.