• Resolved Mike Smith

    (@daledubilowski)


    Hello – is there an easy way to customize the facebook / twitter share text to include the SiteName along with the Page Title? Currently it is only showing Page Title for me.

    I am using Yoast’s WordPress SEO plugin and have filled in the social fields to provide custom text but it doesn’t seem to be affecting the share text?

    Thx!

    https://wordpress.org/plugins/juiz-social-post-sharer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Geoffrey

    (@creativejuiz)

    Hi Mike,

    Actually, I give a hook to customize URL shared for each social network with something like that :

    $url = apply_filters('juiz_sps_the_shared_permalink_for_'.$k, $url);
    $facebook_url = https://www.facebook.com/sharer/sharer.php?u='.$url;

    Where $k is the key for the network.

    You could hack the Facebook URL shared with something like this (put it in your functions.php theme file):

    function edit_juiz_facebook_shared_link($url) {
        return $url . '&SiteName=<YOURNAME>';
    }
    add_filter('juiz_sps_the_shared_permalink_for_facebook', 'edit_juiz_facebook_shared_link');

    But are you sure the Facebook API allows other parameters?
    Thank you.

    Plugin Author Geoffrey

    (@creativejuiz)

    Tell me if you need something else.
    I put that topic as resolved.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Include the SiteName with PageTitle in Facebook / Twitter share’ is closed to new replies.