How To Create A Monarch Shortcode

The Monarch by Elegant Themes is a great social media sharing plugin for WordPress. It gives you the ability to display social media sharing icons either at the start or at the end of your content, as well as in pop-ups, floating bars, widget areas, or flyins.

 

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.

✓  Responsiveness. 
The sharing icons of the plugin are fully responsive and will look amazing on all types of device, no matter how big or small.

✓  Modes
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.

Here are the steps:

Step 1:  Install the Monarch Plugin

Step 2:  Create the Divi Child Theme

Step 3:  Add the code below to your child theme functions.php file

 

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!

Nilesh Mokani

Nilesh Mokani

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.

To celebrate the launch of Divi Testimonial Slider 1.4, we're giving away 10% off. Get advantage of this special offer before it's too late!
Use coupon code SLIDER10 at checkout!

2 Comments

  1. Nosunelanube

    Great tutorial! Very useful to add Monarch. Thanks for the post Nilesh!

    Reply
  2. Elisandro Borges

    Thank you, Nilesh! Awesome tutorial! Do you know how we could display the share icons on the blog module?

    Reply

Submit a Comment

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

Pin It on Pinterest