Simple Social Buttons Shortcode

Below, you’ll find a detailed guide on how to add the Simple Social Buttons Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Simple Social Buttons Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Simple Social Buttons Plugin and the shortcodes it provides:

Plugin Icon
Simple Social Media Share Buttons – Social Sharing for Everyone

"Simple Social Media Share Buttons is a user-friendly plugin for everyone. Enhance your website's reach with its easy social sharing options. Just a click, and your content is shared across various platforms!"

★★★★☆ (174) Active Installs: 30000+ Tested with: 6.3.2 PHP Version: false
Included Shortcodes:
  • [SSB]

Simple Social Buttons [SSB] Shortcode

The Simple Social Buttons shortcode is a tool used to customize the appearance and functionality of social sharing buttons on a WordPress site. It allows users to specify the theme, alignment, button size, and order of the social buttons. The shortcode also provides options to show or hide the total count and individual share counts. It supports various social platforms including Facebook, Twitter, LinkedIn, Reddit, WhatsApp, and Email. The shortcode is highly flexible, making it easy to integrate social sharing buttons that fit the style and requirements of any website.

Shortcode: [SSB]

Parameters

Here is a list of all possible SSB shortcode parameters and attributes:

  • counter – shows or hides the share count, accepts true or false
  • show_total – displays or hides the total share count, accepts true or false
  • align – sets the alignment of the buttons, accepts left, right, or centered
  • order – sets the display order of the social media buttons
  • like_button_size – sets the size of the like button, accepts small or large
  • theme – sets the style of the buttons, accepts theme1, theme2, theme3, theme4, Flat, Circle, or Official

Examples and Usage

Basic example – Displaying social buttons with the default settings.

[SSB /]

Advanced examples

Using the shortcode to display social buttons with a specific theme, order of buttons, alignment, and button size.

[SSB theme='Flat' order='twitter,linkedin,fbshare' align='center' like_button_size='large' /]

Using the shortcode to display social buttons with counter and total count enabled.

[SSB counter='true' show_total_count='true' /]

Using the shortcode to display social buttons with a specific theme and alignment, and counter enabled.

[SSB theme='Circle' align='right' counter='true' /]

PHP Function Code

In case you have difficulties debugging what causing issues with [SSB] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'SSB', array( $this, 'short_code_content' ) );

Shortcode PHP function:

Code file location:

simple-social-buttons/simple-social-buttons/simple-social-buttons.php

Conclusion

Now that you’ve learned how to embed the Simple Social Buttons Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *