• Resolved dan87manc

    (@dan87manc)


    Hi there

    I am trying to add social sharing buttons onto the profile page, which allow users to share their profile on social media channels i.e. Facebook.

    I have tried to use a social share plugin, however it only shares the generic URL, not the individual users’ profile.

    For example, instead of sharing sitename/users/username it only shares sitename/users/. Which doesn’t allow users to share their profile.

    Could someone please help me with this? Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @dan87manc

    Please try adding following codes to your theme’s functions.php file or use “Code Snippets” plugin to add them to your site:

    add_action( 'um_profile_footer',function( $args ){
    	$profile_url = um_user_profile_url();
    	echo '<p><a href="https://www.facebook.com/sharer/sharer.php?u='.$profile_url.'">Share on facebook</a></p>';
    } );

    The above code will add a share link to the users’ profiles.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Social Sharing Profile Page’ is closed to new replies.