How To Create A Monarch Shortcode
Advantages Of Using Monarch
There are a plethora of free WordPress plugins available out there, but Monarch is one of those that has something in it that makes it stand out.
Here are some fantastic features of the plugin:
✓ Clean code.
The simple code of the social media sharing plugin means that the speed and overall performance of your page will not be affected. You will also not have any SEO problems with your WordPress site.
✓ Clean and customizable designs.
No need to worry about the plugin elements fitting your brand or the aesthetics of your website. Monarch offers full design options for seamless design integration.
The sharing icons of the plugin are fully responsive and will look amazing on all types of device, no matter how big or small.
It comes with a wide array of modes for displaying not only social sharing icons but also following widgets over various sections on a page. You can place the icons at the top or below your post, in a sidebar widget, on images and videos, automatic popup, and automatic flyin.
✓ Popup and flyin triggers.
You can trigger your popups and flyins which you can base on unique user interactions. With this feature, you can capture the attention of your visitors when they are most engaged or when they are about to leave your page.
✓ Social following.
You will be able to build and display your social following by allowing your users to see the profiles of your social media channels, follow counts, and follow you easily.
Creating A Shortcode For Monarch Icons
Well, as they say, nobody’s perfect! The Monarch plugin may be a well-rounded tool, but it seems to forget to incorporate one essential feature…a shortcode which users can use to add social media icons manually within a particular page.
Don’t worry though we have come up with a solution for that.
We just need to do some simple and quick tweaking to the functions.php of your child theme. You can use the shortcode to add inline social sharing icons manually to a specific post, page, etc.
/*Social Share shortcode*/
$monarch = $GLOBALS['et_monarch'];
$monarch_options = $monarch->monarch_options;
// YourShortCodeName : Add your shortcode name
// YourShortCodeFunction : Add your function name
Step 4: Select the inline custom option on Monarch Plugin settings.
Step 5: You can use [YourShortCodeName] shortcode on Text/Code Module.
If you are looking to boost your social sharing and following, Monarch is a good option that can help you with that. It is an excellent plugin that combines the power of social sharing and social follow. I hope you find this post useful! Let us know what you think of Monarch and this tutorial in the comment section below!
Divi expert, diligent and zealous for work with strong abilities to meet new challenges and exploring new opportunities. Learning new technologies in IT industry is his passion.
Use coupon code SLIDER15 at checkout!