If you are using Sassy Social Share Premium 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 Premium Shortcode
Shortcode
You can use [Sassy_Social_Share_Premium]
Shortcode in the content of required page/post where you want to display Social Sharing interface.
Example
[Sassy_Social_Share_Premium]
You can use following attributes in the Shortcode
Style
Use style attribute to style the rendered Social Sharing interface
Example
[Sassy_Social_Share_Premium 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_Premium 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_Premium type="floating"]
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_Premium text="Check this out"]
Title (Works with “standard” type interface only)
Use Title attribute to specify title above Social Sharing interface.
Example
[Sassy_Social_Share_Premium title="Sharing is Caring"]
email_subject
Use email_subject attribute to specify custom subject for the Email share button.
Example
[Sassy_Social_Share_Premium 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_Premium 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_Premium 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_Premium 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_Premium type="floating"]
(Will align to left, as align is not specified)
[Sassy_Social_Share_Premium 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_Premium 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_Premium 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_Premium 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_Premium type="floating" url="http://mywebsite.com/example.php"]
fetch_shares_from_url
Use fetch_shares_from_url attribute if the URL specified in the url attribute does not belong to the website where the shortcode is placed, you want to show share count with the icons and the website of the url also has the Sassy Social Share Premium plugin installed.
Example
[Sassy_Social_Share_Premium fetch_shares_from_url="1" count="1" url="http://anotherwebsite.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_Premium style=”background-color:#000;”], so the final code looks like following
<?php echo do_shortcode('[Sassy_Social_Share_Premium style="background-color:#000;"]') ?>
Widget
You can navigate to the Appearance > Widgets section in the left sidebar and enable Sassy Social Share Premium – Standard Widget and Sassy Social Share Premium – Floating Widget widgets in the required area