Messaging apps like
WhatsApp are getting a brand new way to share things with friends.
Recently one of our users asked us how they will add a WhatsApp share
button in their posts.
First thing you
would like to try to is install and activate the WhatsApp Share
Button plugin. Upon activation, you would like to go to Settings »
WhatsApp Share Button to assemble the plugin.
There are two ways
to add WhatsApp
1> Automatically
2> Manually
Automatically Show WhatsApp Share Button in WordPress
The plugin permits you to feature WhatsApp share button each
manually and automatically.
If you would like to automatically show the button, then you would
like to see the choices wherever you would like it to be displayed.
Note: the plugin uses CSS code to observe a user’s screen
size and can only show the WhatsApp button to users whose screen size
is a smaller amount than 1024px. If you're testing the plugin on your
computer, then you would like to size your browser screen till you
see the button.
You can favor to show it on your posts, pages, and homepage.
you'll be able to conjointly opt for the location of the button to be
before or after the post content.
The last choice on the settings page adds a utm parameter to the
shared link. This can be significantly helpful for useful links in
Google Analytics.
Once you're glad with the choices, click on the save button to
store your settings.
Manually Add WhatsApp Share Button using Shortcode
WhatsApp Share Button plugin comes with a shortcode, that you
simply will add anyplace on your WordPress website to show the
WhatsApp Share button.
Once you are satisfied with the all options, click on the save
button to store your settings.
Simply add [whatsapp] to your posts and pages wherever you would like to show the button.
You can conjointly use the shortcode within a Text widget. By default, WordPress doesn't enable execution of shortcodes within text widgets but you'll be able to change this by adding slightly code piece into your theme’s functions.php file or a site-specific plugin.
add_filter('widget_text', 'do_shortcode');
Using The Shortcode To Share Any URL in WhatsApp
By default, the shortcode [whatsapp] automatically uses the URL of the presently displayed post or page. However, you'll be able to override this and add any URL that you simply wish your users to share by employing a shortcode like this:
[whatsapp title=”DhvitiBeginner”
url=”http://www.dhvitiinfotech.com”]
That’s all. we tend to hope this text helped you learn the way to add a feature a WhatsApp share button in WordPress. you will conjointly wish to examine our list of twenty one best social media observation tools for WordPress users.
If you have further query for wordpress then you can contact us by:
This comment has been removed by the author.
ReplyDelete