Shortcodes are used to show share buttons in the content of the post (e.g. in the beginning or end of the post) or in a widget area (sidebar, footer, etc.). A shortcode consists of a chosen theme (read more about themes), chosen button set (read more about button sets) and alignment (how the buttons are rendered). That means you first need to create a theme (or use the default one) and a button set (or use the default one) to create a shortcode.
Let’s create a new shortcode and show it in the beginning and end of each post.
Go to the Shortcodes menu item under the Frizzly menu item.
Add new shortcode
Configure the shortcode
The title of the shortcode will help you identify it later, so make sure the name is descriptive, especially if you plan to use multiple shortcodes. After setting the title you need to configure the shortcode. In the Shortcode Settings panel you need to choose which theme and button set you want to use for the shortcode. Dropdown lists show buttons and themes you added plus the default theme and button set if you don’t need to change anything. If a button set or theme doesn’t come up in its dropdown list that’s most likely because it’s not published. Then you need to set how the buttons are aligned.
The shortcode configuration process is over. Now you need to hit the Publish button, just like you do with blog posts. At this point we’re almost done. Next – you need to choose how you want to use the created shortcode.
Use the created shortcode – widget
You need to find Frizzly Shortcode on the list of available widgets and add it to the widget area of your choice. Now you need to choose which shortcode should be used and specify the title of the widget (not required). Click Save and that’s it – the chosen shortcode will be rendered in the widget area you selected.
Use the created shortcode – before and/or after posts
If you want to automatically add the icons before or after every post go to Frizzly settings and switch to the Shortcode tab. Here you configure whether or not to show a certain shortcode before or after each post and which shortcode should be used. You can choose to render a shortcode before post content, after post content or both, depending on your needs. Click Save Changes to finish the process.
Use the created shortcode – manual use
If you only need to add the share icons in a very few posts and you don’t want to use two mentioned options, manually adding a shortcode to a post is the way to go. First, go to the Shortcodes menu item under the Frizzly menu item. Here’s the list of shortcodes you created. In the Shortcode column you can find the shortcode for each entry you created. It looks like this [[frizzly_shortcode id=’265′]]. Copy the shortcode. Now go to the post in which you want the buttons to appear. In the text editor where you want the share buttons to appear you need to paste the copied shortcode and update the post. That’s it – share buttons will appear there as expected.