If you are using Sassy Social Share Pro plugin for Social Share, follow the steps mentioned below to enable social share in the content of individual page/post.
You would like to read this post to use the shortcode without causing any problems at your site.
Sassy Social Share Pro Shortcode
Shortcode
You can use [Sassy_Social_Share_Pro]
Shortcode in the content of required page/post where you want to display Social Sharing interface.
Example
[Sassy_Social_Share_Pro]
You can use following attributes in the Shortcode
Style
Use style attribute to style the rendered Social Sharing interface
Example
[Sassy_Social_Share_Pro style="background-color:#000;"]
id
Use id attribute to specify the id of the instance of Social Share bar that you want to integrate at your webpage. You can see the ids of instances in Instance for top of the content and Instance for bottom of the content options in Standard Interface section at plugin options page in admin area
Example
[Sassy_Social_Share_Pro id="3"]
Type
Use type attribute to specify the type (“standard” or “floating”) of Social Sharing interface. Defaults (if not specified) to standard
Example
[Sassy_Social_Share_Pro type="floating"]
Title (Works with “standard” type interface only)
Use Title attribute to specify title above Social Sharing interface.
Example
[Sassy_Social_Share_Pro title="Sharing is Caring"]
Text
Use text attribute to specify the custom text to share along with the url. Applies to Twitter, Whatsapp, Linkedin, Reddit, Digg, Float It, Email, Tumblr, Yummly, Buffer and Gab share
Example
[Sassy_Social_Share_Pro text="Check this out"]
email_subject
Use email_subject attribute to specify custom subject for the Email share button.
Example
[Sassy_Social_Share_Pro email_subject="Check out this website"]
email_body
Use email_body attribute to specify custom body for the Email share button.
Example
[Sassy_Social_Share_Pro email_body="Click following link to earn 10% cashback"]
Count
Use count attribute to enable the share counts on Social Sharing interface. 1 is to tell plugin to enable count. It is not the number of shares.
Example
[Sassy_Social_Share_Pro count="1"]
total_shares
Set total_shares attribute value to ON to enable total shares. Defaults (if not specified) to OFF
Example
[Sassy_Social_Share_Pro total_shares="ON"]
Align (Works with “floating” type interface only)
Use align attribute to specify alignment (left or right) of Social Sharing interface. Defaults (if not specified) to left
Example
[Sassy_Social_Share_Pro type="floating"]
(Will align to left, as align is not specified)
[Sassy_Social_Share_Pro type="floating" align="right"]
(Will align to right)
Left (Works with “floating” type interface only)
Use left attribute to specify the left offset (distance form the left side of the screen) of Social Sharing interface. Defaults (if not specified) to 0
Example
[Sassy_Social_Share_Pro type="floating" left="500"]
Right (Works with “floating” type interface only, “align” attribute must be set to “right”)
Use right attribute to specify the right offset (distance form the right side of the screen) of Social Sharing interface. Defaults (if not specified) to 0
Example
[Sassy_Social_Share_Pro type="floating" align="right" right="500"]
Top (Works with “floating” type interface only)
Use top attribute to specify the top offset (distance form the top of the screen) of Social Sharing interface. Defaults (if not specified) to 100
Example
[Sassy_Social_Share_Pro type="floating" top="200"]
Url
Use Url attribute to specify the url to be shared. Defaults (if not specified) to the webpage where shortcode is placed
Example
[Sassy_Social_Share_Pro type="floating" url="http://mywebsite.com/example.php"]
You can use shortcode in PHP file as following
<?php echo do_shortcode(‘SHORTCODE’) ?>
Replace SHORTCODE in above code with the required shortcode like [Sassy_Social_Share_Pro style=”background-color:#000;”], so the final code looks like following
<?php echo do_shortcode('[Sassy_Social_Share_Pro style="background-color:#000;"]') ?>
Widget
You can navigate to the Appearance > Widgets section in the left sidebar and enable Sassy Social Share Pro – Standard Widget and Sassy Social Share Pro – Floating Widget widgets in the required area