Soical network

#205045
  • Resolved Beauty Secrets
    Rank Math free

    Hello,

    Why Social Networks not anymore included on local business schema ? and its possible to add it back ! it was showing like this Image but not anymore !

Viewing 7 replies - 1 through 7 (of 7 total)
  • Ankit
    Rank Math business

    Hello,

    Thank you for contacting Rank Math today.

    Multiple Social meta options were removed as they are not required anymore for the Knowledge Graph by Google & Bing

    If you wish include the meta tags for the same, Please use the below filter code and add it your your theme’s function.php file

    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://inkedin.com/example'
            ];
        }
        return $data;
    }, 99, 2 );

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

    ​​​​​​

    Hello,

    Thank you its works but its showing everywhere its possible to show it only for the homepage ?
    another question as you said they are not required anymore for the Knowledge Graph by Google & Sing Ok then why they disappear from google ? and how google will not my business social pages ?

    best regards

    Prabhat
    Rank Math agency

    Hello,

    Thanks for your reply.

    You can extend the filter provided by my colleague, by adding a condition that would allow the code to run only if the current page is the homepage.

    Please replace the previous code with the below one:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if ( isset( $data['publisher'] ) && is_home()) {
            $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 );

    another question as you said they are not required anymore for the Knowledge Graph by Google & Sing Ok then why they disappear from google ? and how google will not my business social pages ?

    I’m not sure whether I fully understand the question. But I’ll do my best and please let me know if I misunderstood.

    Search engines can now automatically find the social profiles and add them to the knowledge graph. So, you do not need to add the links to your social profiles in the schema.

    Hope that clears things further.

    Thank you.

    Hello,

    Now not appearing anywhere after i changed for the new code !

    Best regards

    Prabhat
    Rank Math agency

    Hello,

    Thanks for the reply.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thanks for getting back. Sorry for the delay and any inconvenience that might have been caused due to that.

    I have replaced is_home() with is_front_page() in the code and now it works fine. Please check and confirm.

    Hope this helps. Let us know if you need any further assistance.

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

You must be logged in to reply to this ticket.