• Resolved Manuel

    (@marowi)


    Hello,

    Is it possible to expand the selection of social networks in the plugin settings?

    I would like to use the sameAs property for another profile page.

    Best regards
    Manuel

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support devnihil

    (@devnihil)

    @marowi To clarify, are wanting to use the same social settings (such as the Facebook title/description/image) for a different social media site?

    By default, most social media sites will default to using Open Graph metadata, which is what is output for Facebook. For example, even Twitter will use it if the custom Twitter metadata isn’t specifically set.

    We also have more information on this here: https://yoast.com/advanced-technical-seo-social-image-ogimage-tags/

    Thread Starter Manuel

    (@marowi)

    Hi @devnihil

    many thanks for your help.

    I mean the “Organization social profiles” area at SEO > Social > Accounts tab. Like Facebook Page URL, Twitter Username, Instagram URL, LinkedIn URL, etc.

    The URLs entered there will be listed in the structured data graph as sameAs URLs. At this point I would like to add another network, which is not predefined.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Thanks for your clarification. You can modify the schema markup generated by the Yoast SEO plugin based on the schema API we offer. You can find more information about the relevant schema API here.

    Thread Starter Manuel

    (@marowi)

    Thanks for the reference to your Schema API.

    Meanwhile, I found out how to add or remove social profiles from the user page by using the “user_contactmethods” filter.

    Also how to add social profiles in the Organization schema object with the “wpseo_schema_organization_social_profiles” filter.

    But not yet how to add corresponding fields to the Organization social profiles settings page. Is that also possible?

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    As much as we hate to say it, your question goes beyond the technical expertise of me and my colleagues on the Yoast support team. This means we can’t give you a solid answer to your question.

    But we don’t want to leave you empty-handed either, that’s why we’ve created our developer portal at developer.yoast.com. This has proven to be useful to many developers in the past, and hopefully will serve you well too.

    Sorry we can’t be of more help here.

    Thread Starter Manuel

    (@marowi)

    No problem, it’s not that important to be able to add the URL via settings page. It also works with the following code in the functions.php

    
    // Add Social Profiles to Data Graph
    function yoast_add_social_profiles( $profiles ) {
        // Networks
        $profiles[] = 'https://www.socialnetwork.com/myprofile';
        $profiles[] = 'https://www.anothernetwork.com/myprofile';
        return $profiles;
    }
    add_filter( 'wpseo_schema_organization_social_profiles', 'yoast_add_social_profiles' );
    

    Thanks for the help and all the best!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom social networks’ is closed to new replies.