Adding LinkedIn & Twitter to schema

#500136
  • Resolved Matthew Heath
    Rank Math free

    Good afternoon,

    I can’t figure out how to add our company LinkedIn profile to our schema (and google my business page), there is no option to configure this in the social meta section. Also, I have added our Twitter name to the designated section but that also doesn’t seem to be working. Can you please advise?

    Many thanks,
    Matthew

Viewing 2 replies - 1 through 2 (of 2 total)
  • B / LINK B-QUOTE DEL IMG UL OL LI

    CODE. CLOSE TAGS

    Hello,

    Thanks for contacting us and sorry for the inconvenience caused.

    Please note that Google has changed a lot, and they get more intelligent every passing minute with AI and countless algorithms they have in place. They pick the Social profiles from across the web and they do not need you to have the “sameAs” tag to show the social profiles in your Knowledge Panel.

    However, you can add the sameAs property to the Schema by customizing this filter:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if ( isset( $data['publisher'] ) ) {
            $data['publisher']['sameAs'] = [
                'https://www.instagram.com/example',
                'https://www.facebook.com/example',
                'https://www.facebook.com/groups/example',
                'https://www.youtube.com/channel/example',
                'https://linkedin.com/example'
            ];
        }
        return $data;
    }, 99, 2 );;

    And here’s a link to how to apply this to your site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    I hope that helps.

    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 2 replies - 1 through 2 (of 2 total)

The ticket ‘Adding LinkedIn & Twitter to schema’ is closed to new replies.