How do you add Social links for use in the Knowledgegraph?

#363708
  • Resolved Brian
    Rank Math free

    How do you add Social links for use in the Knowledgegraph?

    I was able to find a little about Twitter and Facebook but nothing about adding others link Indeed or Instagram so that they would show up in the Knowledgegraph.

    Thanks!

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

    Thank you for contacting Rank Math support today and bringing your concern to our attention.

    Search engines can now automatically find the social profiles and add them to the knowledgegraph. So, you do not need to add the links to your social profiles in the schema as this is automatically done by Google.

    If you do require to insert additional social links to the schema, you may refer to this ticket: https://support.rankmath.com/ticket/faq-schema-problem-2/page/2/?view=all#post-177438

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Brian
    Rank Math free

    Thanks for the link, however it’s showing as “PRIVATE – You do not have permission to view this topic.”

    Anas
    Rank Math business

    Hello,

    You are not able to access that ticket as it is private.

    Here is the filter that you can add in your theme’s functions.php or by using a plugin like Code Snippets:

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

    You can follow this guide to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    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 ‘How do you add Social links for use in the Knowledgegraph?’ is closed to new replies.