Schema for Social Properties

#72353
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can do that by use of the following filter

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

    Change the URLs to your own social URLs

    Hope that helps. If you have any further question(s), please let us know. Thank you.

    Sorry, but where do I add this filter?

    Alberto
    Rank Math business

    Hello,

    At the end of your functions.php file in your current theme. You can find it at WordPress Dashboard > Appearance > Theme Editor and there select the functions.php file.

    Looking forward to help 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 ‘Schema for Social Properties’ is closed to new replies.