{"componentChunkName":"component---src-templates-articles-index-jsx","path":"/articles/create-share-buttons/","result":{"data":{"props":{"adsense":true,"adsenseMobile":false,"byLine":"","canonical":"https://staging.business.com/articles/create-share-buttons/","content":"\n<ul>\n<li>Share buttons are a simple and effective resource for increasing website views. Facebook, Twitter and LinkedIn all provide options to share content.</li>\r\n<li>Share buttons can appear anywhere on a website, including product pages, blogs and checkout pages.</li>\r\n<li>Perform A/B testing as a way to confirm that share buttons are effectively leading to conversions. You may need to alter placement and size until you find the right version.</li>\r\n</ul>\n<p>Interested in sharing your blog content on Facebook, Twitter and LinkedIn? Do multioption social media sharing tools such as <a href=\"http://sharethis.com/\" target=\"_blank\" rel=\"noopener\">ShareThis</a> seem like overkill?</p>\r\n<p>To add custom share buttons automatically to each post in a WordPress blog, add the following code to the single .PHP file, which renders the individual post. (<em>You must be using WordPress.org, the self-hosted version of WordPress, to customize PHP files.</em>). </p>\r\n<h2>What are share buttons?</h2>\r\n<p>A share button is an option used to display content on social media. With a share button, consumers share their purchases with others online and potentially provide you with new prospects. Share buttons also help users save products and services they are interested in. Later, the target returns to their social media pages to access the product link and complete the sale.</p>\r\n<p>Share buttons are also beneficial for any type of online content. Blogs often include a share button at the top and bottom of an article to increase visibility. Although blogs normally have a share button, you can include a share button on any of your website's landing pages.</p>\r\n<p>Share buttons are free to install and available for integration on any type of social media outlet. Twitter, Facebook, Instagram and other sites have share buttons that could be inserted into any of your online content. The share button is usually customizable, too, to help bring brand awareness once content is shared. For instance, hashtags should be added to make the shared content searchable.</p>\r\n<p>To reap the most benefits, businesses must consider ideal timing for share buttons. For instance, you may want a share button upon completion of a purchase, but you don't want to distract the user from finishing the checkout process. Share buttons can be minimized as a way to not take away the user's attention from the product or service.  </p>\r\n<h2>How do you add a share button on a website?</h2>\r\n<p>Every social media site has different options for share buttons. Visit each site and log into your account to all options. Once you customize the share button, grab the HTML code needed. The HTML code is pasted into your website and placed anywhere on the site you prefer.</p>\r\n<p>Along with share buttons, each social media site allows you access to buttons that perform specific actions. For instance, Facebook allows you to not only share content but also a like button. The like button can be used as a link back to your company's Facebook page.</p>\r\n<p>Customization should be considered when creating a share button your website. For instance, Twitter allows you to add a mention or hashtag when any of your content is shared. Facebook provides the option for the user to add their own message when sharing your content on their profile pages.  </p>\r\n<p>A/B testing is recommended as a way to confirm the best placement for share buttons on your website. With A/B testing, you mock up two different sets of websites. You can compare sizes for the share buttons as well as ideal spots on the page. Through testing, you can confirm which version is more likely to lead to conversions. Check links often once they go live to make sure that they are operational. You also want to remove any type of counters that appear with the social media buttons. A low counter may discourage users from finalizing sales.</p>\r\n<h2>Facebook share button code</h2>\r\n<p>Here is the Facebook share code:</p>\r\n<blockquote>\r\n<p>&lt;script&gt;function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&amp;t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}&lt;/script&gt;&lt;a href=\"http://www.facebook.com/share.php?u=&lt;url&gt;\" onclick=\"return fbs_click()\" target=\"_blank\"&gt;&lt;img src=\"ADD_IMAGE_URL_HERE\" alt=\"Share on Facebook\" /&gt;&lt;/a&gt;</p>\r\n</blockquote>\r\n<h2>Twitter share button code</h2>\r\n<p>Here is the Twitter share code:</p>\r\n<blockquote>\r\n<p>&lt;a href=\"http://twitter.com/home?status=Currentlyreading &lt;?php the_permalink(); ?&gt;\" title=\"Click to share this post on Twitter\"\"&gt;&lt;img src=\"ADD_IMAGE_URL_HERE\" alt=\"Share on Twitter\"&gt;&lt;/a&gt;</p>\r\n</blockquote>\r\n<h2>LinkedIn share button code</h2>\r\n<p>Here is the LinkedIn share code:</p>\r\n<blockquote>\r\n<p>&lt;a href=\"http://www.linkedin.com/shareArticle?mini=true&amp;url=&lt;?php the_permalink(); ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;source=ADD_YOUR_BLOG_URL_HERE\"&gt;&lt;img src=\"ADD_IMAGE_URL_HERE\"&gt;&lt;/a&gt;</p>\r\n</blockquote>\r\n<p>Good luck! We'd love to see how you've implemented this on your own blog.</p>\n","docType":"article","guid":"articles_673823760b459aa9288d2a9d32c0fa68","lastModified":"2020-06-03T18:18:00.000Z","published":"2009-05-22T18:31:00.000Z","structuredData":null,"subtitle":"Help consumers share your blog content on leading social media sites by creating custom share buttons. Business.com shows you how.","template":"v1","title":"How to Create Custom Share Buttons for Facebook, Twitter and LinkedIn","type":"article","author":{"avatar":null,"bio":"The purpose of our community is to connect small business owners with experienced industry experts who can address their questions, offer direction, and share best practices.","name":"business.com editorial staff","image":null,"slug":null,"social":{"facebook":"","linkedin":"https://www.linkedin.com/company/business-com-/","twitter":"https://twitter.com/businessdotcom","website":"https://www.business.com/"},"status":"enabled","title":null,"type":"Old BDC Member","user":{"imagePath":"https://staging.business.com/images/uploads/user/profile/b14a2c1fa0158a2f46854597139a2067ee8ef.jpg","profile":{"company":"","jobTitle":"","website":"https://www.business.com/"}}},"breadcrumbs":null,"channels":{"primary":{"name":"Marketing","slug":"marketing"},"sub":{"name":"Social Media","slug":"social-media"}},"meta":{"robots":"index, follow","description":"Help consumers share your content on leading social media sites by creating custom share buttons. Business.com shows you how.","title":"Custom Share Button Code for Facebook, Twitter, LinkedIn & Delicious - business.com"},"parsedContent":{"toc":[{"id":"what-are-share-buttons","title":"What are share buttons?"},{"id":"how-do-you-add-a-share-button-on-a-website","title":"How do you add a share button on a website?"},{"id":"facebook-share-button-code","title":"Facebook share button code"},{"id":"twitter-share-button-code","title":"Twitter share button code"},{"id":"linkedin-share-button-code","title":"LinkedIn share button code"}],"json":[{"component":"ul","children":[{"component":"li","children":["Share buttons are a simple and effective resource for increasing website views. Facebook, Twitter and LinkedIn all provide options to share content."]},{"component":"li","children":["Share buttons can appear anywhere on a website, including product pages, blogs and checkout pages."]},{"component":"li","children":["Perform A/B testing as a way to confirm that share buttons are effectively leading to conversions. You may need to alter placement and size until you find the right version."]}]},{"component":"p","children":["Interested in sharing your blog content on Facebook, Twitter and LinkedIn? Do multioption social media sharing tools such as ",{"component":"a","props":{"href":"http://sharethis.com/","target":"_blank","rel":"noopener nofollow"},"children":["ShareThis"]}," seem like overkill?"]},{"component":"p","children":["To add custom share buttons automatically to each post in a WordPress blog, add the following code to the single .PHP file, which renders the individual post. (",{"component":"em","children":["You must be using WordPress.org, the self-hosted version of WordPress, to customize PHP files."]},"). "]},{"component":"h2","props":{"id":"what-are-share-buttons"},"children":["What are share buttons?"]},{"component":"p","children":["A share button is an option used to display content on social media. With a share button, consumers share their purchases with others online and potentially provide you with new prospects. Share buttons also help users save products and services they are interested in. Later, the target returns to their social media pages to access the product link and complete the sale."]},{"component":"p","children":["Share buttons are also beneficial for any type of online content. Blogs often include a share button at the top and bottom of an article to increase visibility. Although blogs normally have a share button, you can include a share button on any of your website's landing pages."]},{"component":"p","children":["Share buttons are free to install and available for integration on any type of social media outlet. Twitter, Facebook, Instagram and other sites have share buttons that could be inserted into any of your online content. The share button is usually customizable, too, to help bring brand awareness once content is shared. For instance, hashtags should be added to make the shared content searchable."]},{"component":"p","children":["To reap the most benefits, businesses must consider ideal timing for share buttons. For instance, you may want a share button upon completion of a purchase, but you don't want to distract the user from finishing the checkout process. Share buttons can be minimized as a way to not take away the user's attention from the product or service.  "]},{"component":"h2","props":{"id":"how-do-you-add-a-share-button-on-a-website"},"children":["How do you add a share button on a website?"]},{"component":"p","children":["Every social media site has different options for share buttons. Visit each site and log into your account to all options. Once you customize the share button, grab the HTML code needed. The HTML code is pasted into your website and placed anywhere on the site you prefer."]},{"component":"p","children":["Along with share buttons, each social media site allows you access to buttons that perform specific actions. For instance, Facebook allows you to not only share content but also a like button. The like button can be used as a link back to your company's Facebook page."]},{"component":"p","children":["Customization should be considered when creating a share button your website. For instance, Twitter allows you to add a mention or hashtag when any of your content is shared. Facebook provides the option for the user to add their own message when sharing your content on their profile pages.  "]},{"component":"p","children":["A/B testing is recommended as a way to confirm the best placement for share buttons on your website. With A/B testing, you mock up two different sets of websites. You can compare sizes for the share buttons as well as ideal spots on the page. Through testing, you can confirm which version is more likely to lead to conversions. Check links often once they go live to make sure that they are operational. You also want to remove any type of counters that appear with the social media buttons. A low counter may discourage users from finalizing sales."]},{"component":"h2","props":{"id":"facebook-share-button-code"},"children":["Facebook share button code"]},{"component":"p","children":["Here is the Facebook share code:"]},{"component":"blockquote","children":[{"component":"p","children":["<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a href=\"http://www.facebook.com/share.php?u=<url>\" onclick=\"return fbs_click()\" target=\"_blank\"><img src=\"ADD_IMAGE_URL_HERE\" alt=\"Share on Facebook\" /></a>"]}]},{"component":"h2","props":{"id":"twitter-share-button-code"},"children":["Twitter share button code"]},{"component":"p","children":["Here is the Twitter share code:"]},{"component":"blockquote","children":[{"component":"p","children":["<a href=\"http://twitter.com/home?status=Currentlyreading <?php the_permalink(); ?>\" title=\"Click to share this post on Twitter\"\"><img src=\"ADD_IMAGE_URL_HERE\" alt=\"Share on Twitter\"></a>"]}]},{"component":"h2","props":{"id":"linkedin-share-button-code"},"children":["LinkedIn share button code"]},{"component":"p","children":["Here is the LinkedIn share code:"]},{"component":"blockquote","children":[{"component":"p","children":["<a href=\"http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>&source=ADD_YOUR_BLOG_URL_HERE\"><img src=\"ADD_IMAGE_URL_HERE\"></a>"]}]},{"component":"p","children":["Good luck! We'd love to see how you've implemented this on your own blog."]}]},"resource":null,"sponsorship":{"sponsorType":"no-sponsor","name":null,"thumbnail":null,"bio":null,"slug":null,"status":null,"social":{"website":null,"linkedin":null,"twitter":null,"facebook":null}},"thumbnail":{"path":"https://staging.business.com/images/content/5d0/3065d7b43749b638b4571/1500-0-","caption":"welcomia/Shutterstock","isBlurred":false},"bestPicks":null},"related":{"relatedArticles":[{"title":"How to Create Custom Share Buttons for Facebook, Twitter and LinkedIn","canonical":"https://www.business.com/articles/create-share-buttons/","slug":"create-share-buttons","thumbnail":"https://www.business.com/images/content/5d0/3065d7b43749b638b4571/1500-0-","dek":"Help consumers share your blog content on leading social media sites by creating custom share buttons. Business.com shows you how.","lastModified":"2020-06-03T18:18:00Z","published":"2009-05-22T18:31:00Z","sponsored":false},{"title":"Twitter for Business Case Study: @B2BOnlineMktg at 120 Days","canonical":"https://staging.business.com/articles/twitter-for-business-pt4/","slug":"twitter-for-business-pt4","thumbnail":"https://staging.business.com/images/content/553/688422c87b16a218b493b/1500-0-","dek":"Part 4 in the B2B social media case study of Business.com's @B2BOnlineMktg Twitter account.","lastModified":"2009-07-16T00:02:54Z","published":"2009-07-16T00:02:54Z","sponsored":null},{"title":"B2B Social Media - The Business.com Case Study","canonical":"https://staging.business.com/articles/businesscom-b2b-social-media-case-study/","slug":"businesscom-b2b-social-media-case-study","thumbnail":"https://staging.business.com/images/content/553/688602c87b16a218b4968/1500-0-","dek":"A B2B social media case study describing the development of Business.com's social media presence targeting people seeking solutions to...","lastModified":"2009-06-10T01:25:49Z","published":"2009-06-10T01:25:49Z","sponsored":null},{"title":"Twitter for Business Case Study: @B2BOnlineMktg at 60 Days","canonical":"https://staging.business.com/articles/twitter-for-business-pt2/","slug":"twitter-for-business-pt2","thumbnail":"https://staging.business.com/images/content/553/688692c87b16a218b4989/1500-0-","dek":"Case study covering the first 60 days of Business.com's @B2BOnlineMktg Twitter account targeting B2B online marketers.","lastModified":"2009-05-11T21:42:36Z","published":"2009-05-11T21:42:36Z","sponsored":null},{"title":"Twitter for Business Case Study: @B2BOnlineMktg at 90 Days","canonical":"https://staging.business.com/articles/twitter-for-business-pt3/","slug":"twitter-for-business-pt3","thumbnail":"https://staging.business.com/images/content/553/688432c87b16a218b4944/1500-0-","dek":"Part three of the case study of Business.com's @B2BOnlineMktg Twitter account targeting B2B online marketers.","lastModified":"2009-06-11T03:00:48Z","published":"2009-06-11T03:00:48Z","sponsored":null},{"title":"Web 2.0 Expo Wrap-up from a B2B Perspective","canonical":"https://staging.business.com/articles/web-20-wrapup-b2b-perspective/","slug":"web-20-wrapup-b2b-perspective","thumbnail":"https://staging.business.com/images/content/553/6886b2c87b16a218b498f/1500-0-","dek":"This year's Web 2.0 Expo, which was held 3/31-4/4/09  in San Francisco, was buzzing with people from around the world who shared web...","lastModified":"2009-04-07T06:45:11Z","published":"2009-04-07T06:45:11Z","sponsored":null},{"title":"Interview: B2B Social Media Insights from Forrester&#039;s Laura Ramos","canonical":"https://staging.business.com/articles/b2b-social-media-insights-laura-ramos/","slug":"b2b-social-media-insights-laura-ramos","thumbnail":"https://staging.business.com/images/content/553/688682c87b16a218b497d/1500-0-","dek":"In this interview with Business.com, Forrester's B2B Marketing guru Laura Ramos discusses the social media opportunity for B2B.","lastModified":"2009-06-04T17:11:01Z","published":"2009-06-04T17:11:01Z","sponsored":null},{"title":"Your B2B Search Marketing &amp; Social Media Marketing Questions Answered","canonical":"https://staging.business.com/articles/search-and-social-marketing-questions-and-answers/","slug":"search-and-social-marketing-questions-and-answers","thumbnail":"https://staging.business.com/images/content/553/93fdc2f87b122698b4573/1500-0-","dek":"This is part&nbsp;two of a two-part blog post - Recapping the Business.com and BtoB Webinar, 'Finding B2B Marketing Success Integrating...","lastModified":"2010-09-21T00:38:12Z","published":"2010-09-21T00:38:12Z","sponsored":null},{"title":"B2B Online Marketing Tips for the Olympic Season","canonical":"https://staging.business.com/articles/b2b-online-marketing-tips-for-the-olympic-season/","slug":"b2b-online-marketing-tips-for-the-olympic-season","thumbnail":"https://staging.business.com/images/content/553/689802c87b14b328b4686/1500-0-","dek":"The Olympic Games start this Friday, July 27. While the opening ceremony quickly approaches and the eyes of the world fall on the...","lastModified":"2012-07-24T12:00:48Z","published":"2012-07-24T12:00:48Z","sponsored":null},{"title":"The Key to Opening Content's Lock? Content Distribution","canonical":"https://staging.business.com/articles/the-key-to-opening-contents-lock-content-distribution/","slug":"the-key-to-opening-contents-lock-content-distribution","thumbnail":"https://staging.business.com/images/content/553/684352c87b16f1f8b4567/1500-0-","dek":"While content is king, distribution is like parliament-it holds all the power. Here are some of the top platforms for content...","lastModified":"2015-03-12T23:11:56Z","published":"2015-03-12T23:11:56Z","sponsored":null},{"title":"Interview: B2B Online Community Insights from Mark Yolton, SAP Community Network","canonical":"https://staging.business.com/articles/b2b-online-community-sap/","slug":"b2b-online-community-sap","thumbnail":"https://staging.business.com/images/content/553/688412c87b16a218b4935/1500-0-","dek":"In this Business.com interview, Mark Yolton, SVP of the SAP Community Network, describes how to build a large-scale B2B online community.","lastModified":"2017-02-22T23:58:03Z","published":"2009-08-03T22:03:24Z","sponsored":null},{"title":"Interview: B2B Online Community Insights from Mark Yolton, SAP Community Network","canonical":"https://www.business.com/articles/b2b-online-community-sap/","slug":"b2b-online-community-sap","thumbnail":"https://www.business.com/images/channel/business-basics.jpg","dek":"In this Business.com interview, Mark Yolton, SVP of the SAP Community Network, describes how to build a large-scale B2B online community.","lastModified":"2009-08-03T22:03:24Z","published":"2009-08-03T22:03:24Z","sponsored":false}],"relatedReviews":[{"doc_type":"category","thumbnail":"https://staging.business.com/images/rz/5b99633151ee47a8528b4582/Call_center_bbernard.jpg","canonical":"https://staging.business.com/categories/call-center-services/","title":"The Best Call Center Services for 2021","dek":"Our team has compared the best call center services for 2021. See up-to-date reviews for the top-rated answering services.","slug":"call-center-services","lastModified":"2021-02-26T14:22:00Z"},{"doc_type":"category","thumbnail":"https://staging.business.com/images/rz/5df7b1b69c658a61728b4567/Answering_Service_scyther5_Getty.jpg","canonical":"https://staging.business.com/categories/best-answering-services/","title":"The Best Answering Services of 2021","dek":"Our teams have compared the best answering services for 2020. See up-to-date reviews and prices for these top-rated services.","slug":"best-answering-services","lastModified":"2021-02-26T14:18:00Z"},{"doc_type":"category","thumbnail":"https://staging.business.com/images/rz/5d4c65367b43741a258b4572/Laptop_Sfio_Cracho.png","canonical":"https://staging.business.com/categories/crm-software/","title":"The Best CRM Software of 2021","dek":"Looking for the best CRM software? We have easy-to-read, expert unbiased reviews and feature comparisons of the best and cheapest programs.","slug":"crm-software","lastModified":"2021-02-24T14:09:00Z"}],"relatedSponsoredArticles":null}},"pageContext":{"displayModified":"2020-06-03T18:18:00.000Z","template":"v1","title":"How to Create Custom Share Buttons for Facebook, Twitter and LinkedIn","meta":{"robots":"index, follow"},"docType":"articles","slug":"create-share-buttons","canonical":"https://staging.business.com/articles/create-share-buttons/","skipTOC":false}},"staticQueryHashes":[]}