{"id":84576,"date":"2018-04-16T09:52:39","date_gmt":"2018-04-16T13:52:39","guid":{"rendered":"https:\/\/www.templatemonster.com\/help\/?p=84576"},"modified":"2018-04-16T09:52:39","modified_gmt":"2018-04-16T13:52:39","slug":"how-to-add-whatsapp-share-button-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-add-whatsapp-share-button-in-wordpress.html","title":{"rendered":"How to add WhatsApp share button in WordPress"},"content":{"rendered":"<p><strong>Social media<\/strong> is an extremely valuable tool for promoting your website and keep attention of visitors.<\/p>\r\n<p><strong>Social Share links and buttons<\/strong> option is a great opportunity to your website visitors easily share your posts, articles, news etc with their social media connections and networks.<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress1.png\" alt=\"\" width=\"831\" height=\"592\" class=\"alignnone size-full wp-image-84577\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress1.png 831w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress1-150x107.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress1-300x214.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress1-768x547.png 768w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/a>\r\n\r\n<p>That&#8217;s why, it is no wonder why it is necessary to add social buttons to the website, and today we will learn how to deal with that.<\/p>\r\n<p>We will add the <strong>WhatsApp share button<\/strong>, as it is widely known that it is a cross-platform app, and one of the world&#8217;s most prominent social networks.<\/p>\r\n<p>So, lets start to do a few easy steps and enjoy the result.<\/p>\r\n<p>First of all, connect to your FTP or Cpanel, and navigate to the <strong>wp-content\/yourtheme\/inc<\/strong> directory.<\/p>\r\n<p>There, open the <strong>template-meta.php<\/strong> file, and locate the code for <strong>Social Share buttons<\/strong> that looks like the following one:<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress2.png\" alt=\"\" width=\"628\" height=\"802\" class=\"alignnone size-full wp-image-84578\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress2.png 628w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress2-117x150.png 117w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress2-235x300.png 235w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/a>\r\n\r\n<p>Let&#8217;s add the code for WhatsApp below the last social button, in our case it is Pinterest.<\/p>\r\n<p>Just copy and paste the code for one of the links that are added in file, and replace icon and name fields with the name of a new social sharing button.<\/p>\r\n<p>In order to locate a needed social URL, you can use the following <a href=\"https:\/\/faq.whatsapp.com\/en\/android\/26000030\/?category=5245251\">link<\/a>.<\/p>\r\n<p>the code will look like the following one:<\/p>\r\n<pre>\r\n\t\t'whatsapp' => array(\r\n\t\t\t'icon'      => 'fa fa-whatsapp',\r\n\t\t\t'name'      => esc_html__( 'Whatsapp', 'arnatera' ),\r\n\t\t\t'share_url' => 'https:\/\/api.whatsapp.com\/send?phone=15551234567&text=%3$s',\r\n\t\t),\r\n<\/pre>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress3.png\" alt=\"\" width=\"608\" height=\"571\" class=\"alignnone size-full wp-image-84579\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress3.png 608w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress3-150x141.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress3-300x282.png 300w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/a>\r\n\r\n<p>Instead of <strong>15551234567<\/strong>, use your phone number in international format that must have an active account on WhatsApp.<\/p>\r\n<p>Save the changes in file and check the website.<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress4.png\" alt=\"\" width=\"758\" height=\"582\" class=\"alignnone size-full wp-image-84580\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress4.png 758w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress4-150x115.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress4-300x230.png 300w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/a>\r\n\r\n<p>My congratulations! Now, the visitors can share your amazing posts on their WhatsApp messengers.<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress5.png\" alt=\"\" width=\"682\" height=\"335\" class=\"alignnone size-full wp-image-84581\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress5.png 682w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress5-150x74.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/04\/How_to_add-WhatsApp_share-button_in-WordPress5-300x147.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/a>\r\n\r\n<p>We hope this step-by-step guidance was useful for you. Feel free to check our <a href=\"\/blog\/tag\/wordpress\/\" target=\"_blank\">blog<\/a> to learn more tweaks on how to manage your WordPress website as a guru of the web design!<\/p>\r\n<p>You may be looking for more website building options, so view the collection of <a href=\"https:\/\/www.templatemonster.com\/wordpress-themes.php\" title=\"WordPress Themes\" target=\"_blank\">WordPress Themes<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>We will add the <strong>WhatsApp share button<\/strong>, as it is widely known that it is a cross-platform app, and one of the world&#8217;s most prominent social networks.<\/p>\n","protected":false},"author":87,"featured_media":84584,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2017,728],"tags":[1352,1974,2639],"class_list":["post-84576","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monstroid-tutorials","category-wordpress-tutorials","tag-share","tag-sharing","tag-whatsapp"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=84576"}],"version-history":[{"count":5,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84576\/revisions"}],"predecessor-version":[{"id":84605,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84576\/revisions\/84605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/84584"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=84576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=84576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=84576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}