{"id":47,"date":"2019-11-19T22:32:00","date_gmt":"2019-11-19T20:32:00","guid":{"rendered":"https:\/\/html-online.com\/articles\/?p=47"},"modified":"2020-01-14T10:05:42","modified_gmt":"2020-01-14T08:05:42","slug":"dynamic-social-media-share-widget-addthis-alternative","status":"publish","type":"post","link":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/","title":{"rendered":"Social Media Share Buttons &#8211; Dynamic JS Widget"},"content":{"rendered":"<p>We are presenting a simple jQuery solution to implement social media share buttons for the current page, with svg icons. Our example includes the most popular sites: Facebook, Twitter, LinkedIn, Digg, Blogger, Reddit, Delicious and &#8220;email to friend&#8221;. You can add new sites tweaking the code a little. Sharablility is a crucial <a href=\"https:\/\/htmlcheatsheet.com\/seo\/\">SEO factor<\/a> so make sure to add this simple widget to your pages.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-48\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg\" alt=\"social media share buttons jquery\" width=\"340\" height=\"34\" srcset=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg 340w, https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery-300x30.jpg 300w\" sizes=\"auto, (max-width: 340px) 85vw, 340px\" \/><\/p>\n<h3 style=\"text-align: center;\"><a href=\"https:\/\/html-online.com\/demo\/social-share-buttons\/\" target=\"_blank\" rel=\"noopener noreferrer\">Live Demo<\/a><\/h3>\n<p><!--more--><\/p>\n<h2>HTML<\/h2>\n<p>The HTML consists of a link list containing svg images. The link ahref parameters pass the [ARTICLELINK] to the social media platforms. This parateter is adjusted later with jQuery.<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">ul<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"socialShareLinks\"<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">a<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"facebook\"<\/span> <span style=\"font-style: italic;\">href<\/span>=<span style=\"color: #d80800;\">\"https:\/\/www.facebook.com\/sharer.php?u=[ARTICLELINK]\"<\/span> <span style=\"font-style: italic;\">target<\/span>=<span style=\"color: #d80800;\">\"_blank\"<\/span> <span style=\"font-style: italic;\">rel<\/span>=<span style=\"color: #d80800;\">\"nofollow\"<\/span>&gt;<\/span>\n            <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">img<\/span> <span style=\"font-style: italic;\">src<\/span>=<span style=\"color: #d80800;\">\"social\/fb.svg\"<\/span> <span style=\"font-style: italic;\">alt<\/span>=<span style=\"color: #d80800;\">\"Facebook\"<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">a<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">a<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"twitter\"<\/span> <span style=\"font-style: italic;\">href<\/span>=<span style=\"color: #d80800;\">\"https:\/\/twitter.com\/intent\/tweet?url=[ARTICLELINK]&amp;text=Check%20this%20out:\"<\/span> <span style=\"font-style: italic;\">target<\/span>=<span style=\"color: #d80800;\">\"_blank\"<\/span> <span style=\"font-style: italic;\">rel<\/span>=<span style=\"color: #d80800;\">\"nofollow\"<\/span>&gt;<\/span>\n            <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">img<\/span> <span style=\"font-style: italic;\">src<\/span>=<span style=\"color: #d80800;\">\"social\/twitter.svg\"<\/span> <span style=\"font-style: italic;\">alt<\/span>=<span style=\"color: #d80800;\">\"Twitter\"<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">a<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">a<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"linkedin\"<\/span> <span style=\"font-style: italic;\">href<\/span>=<span style=\"color: #d80800;\">\"https:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=[ARTICLELINK]&amp;title=Check%20this%20out&amp;summary=An amazing article!&amp;source=\"<\/span> <span style=\"font-style: italic;\">target<\/span>=<span style=\"color: #d80800;\">\"_blank\"<\/span> <span style=\"font-style: italic;\">rel<\/span>=<span style=\"color: #d80800;\">\"nofollow\"<\/span>&gt;<\/span>\n            <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">img<\/span> <span style=\"font-style: italic;\">src<\/span>=<span style=\"color: #d80800;\">\"social\/linkedin.svg\"<\/span> <span style=\"font-style: italic;\">alt<\/span>=<span style=\"color: #d80800;\">\"Linkedin\"<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">a<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">a<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"digg\"<\/span> <span style=\"font-style: italic;\">href<\/span>=<span style=\"color: #d80800;\">\"http:\/\/digg.com\/submit?url=[ARTICLELINK]\"<\/span> <span style=\"font-style: italic;\">target<\/span>=<span style=\"color: #d80800;\">\"_blank\"<\/span> <span style=\"font-style: italic;\">rel<\/span>=<span style=\"color: #d80800;\">\"nofollow\"<\/span>&gt;<\/span>\n            <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">img<\/span> <span style=\"font-style: italic;\">src<\/span>=<span style=\"color: #d80800;\">\"social\/digg.svg\"<\/span> <span style=\"font-style: italic;\">alt<\/span>=<span style=\"color: #d80800;\">\"Digg\"<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">a<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">a<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"blogger\"<\/span> <span style=\"font-style: italic;\">href<\/span>=<span style=\"color: #d80800;\">\"https:\/\/www.blogger.com\/blog-this.g?n=[ARTICLELINK]\"<\/span> <span style=\"font-style: italic;\">target<\/span>=<span style=\"color: #d80800;\">\"_blank\"<\/span> <span style=\"font-style: italic;\">rel<\/span>=<span style=\"color: #d80800;\">\"nofollow\"<\/span>&gt;<\/span>\n            <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">img<\/span> <span style=\"font-style: italic;\">src<\/span>=<span style=\"color: #d80800;\">\"social\/blogger.svg\"<\/span> <span style=\"font-style: italic;\">alt<\/span>=<span style=\"color: #d80800;\">\"Blogger\"<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">a<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">a<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"reddit\"<\/span> <span style=\"font-style: italic;\">href<\/span>=<span style=\"color: #d80800;\">\"http:\/\/reddit.com\/submit?url=[ARTICLELINK]&amp;title=Check%20this%20out\"<\/span> <span style=\"font-style: italic;\">target<\/span>=<span style=\"color: #d80800;\">\"_blank\"<\/span> <span style=\"font-style: italic;\">rel<\/span>=<span style=\"color: #d80800;\">\"nofollow\"<\/span>&gt;<\/span>\n            <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">img<\/span> <span style=\"font-style: italic;\">src<\/span>=<span style=\"color: #d80800;\">\"social\/reddit.svg\"<\/span> <span style=\"font-style: italic;\">alt<\/span>=<span style=\"color: #d80800;\">\"Reddit\"<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">a<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">a<\/span> <span style=\"font-style: italic;\">class<\/span>=<span style=\"color: #d80800;\">\"mail\"<\/span> <span style=\"font-style: italic;\">href<\/span>=<span style=\"color: #d80800;\">\"mailto:?subject=Check out this website&amp;body=Thought you might like this: [ARTICLELINK]\"<\/span> <span style=\"font-style: italic;\">target<\/span>=<span style=\"color: #d80800;\">\"_blank\"<\/span>&gt;<\/span>\n            <span style=\"color: #1c02ff;\">&lt;<span style=\"font-weight: bold;\">img<\/span> <span style=\"font-style: italic;\">src<\/span>=<span style=\"color: #d80800;\">\"social\/mail.svg\"<\/span> <span style=\"font-style: italic;\">alt<\/span>=<span style=\"color: #d80800;\">\"Email to a friend\"<\/span>&gt;<\/span>\n        <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">a<\/span>&gt;<\/span>\n    <span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">li<\/span>&gt;<\/span>\n<span style=\"color: #1c02ff;\">&lt;\/<span style=\"font-weight: bold;\">ul<\/span>&gt;<\/span>\n<\/pre>\n<h2>CSS<\/h2>\n<p>Use the CSS below to style the unordered list, showing the icons next to each other.<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"font-style: italic;\">.socialShareLinks<\/span> <span style=\"font-weight: bold;\">li<\/span> {\n    <span style=\"color: #6d79de; font-weight: bold;\">float<\/span>: <span style=\"color: #06960e; font-weight: bold;\">left<\/span>;\n    <span style=\"color: #6d79de; font-weight: bold;\">margin<\/span>: <span style=\"color: #cd0000; font-style: italic;\">2<span style=\"color: #0100b6; font-weight: bold;\">px<\/span><\/span>;\n}\n<span style=\"font-style: italic;\">.socialShareLinks<\/span> {\n    <span style=\"color: #6d79de; font-weight: bold;\">list-style<\/span>: <span style=\"color: #06960e; font-weight: bold;\">none<\/span>;\n}\n<span style=\"font-style: italic;\">.socialShareLinks<\/span> <span style=\"font-weight: bold;\">li<\/span> <span style=\"font-weight: bold;\">a<\/span> {\n    <span style=\"color: #6d79de; font-weight: bold;\">display<\/span>: <span style=\"color: #06960e; font-weight: bold;\">block<\/span>;\n    <span style=\"color: #6d79de; font-weight: bold;\">height<\/span>: <span style=\"color: #cd0000; font-style: italic;\">30<span style=\"color: #0100b6; font-weight: bold;\">px<\/span><\/span>;\n    <span style=\"color: #6d79de; font-weight: bold;\">overflow<\/span>: <span style=\"color: #06960e; font-weight: bold;\">hidden<\/span>;\n    <span style=\"color: #6d79de; font-weight: bold;\">width<\/span>: <span style=\"color: #cd0000; font-style: italic;\">30<span style=\"color: #0100b6; font-weight: bold;\">px<\/span><\/span>;\n    <span style=\"color: #6d79de; font-weight: bold;\">background-color<\/span>: <span style=\"color: #c5060b; font-style: italic;\">#eee<\/span>;\n    <span style=\"color: #6d79de; font-weight: bold;\">border-radius<\/span>: <span style=\"color: #cd0000; font-style: italic;\">10<span style=\"color: #0100b6; font-weight: bold;\">px<\/span><\/span>;\n}\n<span style=\"font-style: italic;\">.socialShareLinks<\/span> <span style=\"font-weight: bold;\">li<\/span> <span style=\"font-weight: bold;\">a<\/span><span style=\"font-style: italic;\">:hover<\/span> {\n    <span style=\"color: #6d79de; font-weight: bold;\">background-color<\/span>: <span style=\"color: #c5060b; font-style: italic;\">#fff<\/span>;\n}\n<span style=\"font-style: italic;\">.socialShareLinks<\/span> <span style=\"font-weight: bold;\">li<\/span> <span style=\"font-weight: bold;\">a<\/span> <span style=\"font-weight: bold;\">img<\/span>{\n    <span style=\"color: #6d79de; font-weight: bold;\">width<\/span>: <span style=\"color: #cd0000; font-style: italic;\">100<span style=\"color: #0100b6; font-weight: bold;\">%<\/span><\/span>;    \n}\n<\/pre>\n<h2>JavaScript<\/h2>\n<p>Include the short JavaScript below to rewrite every instance of [ARTICLELINK] to the current URL. We used jQuery to perform this.<\/p>\n<pre style=\"background: #fff; color: #000;\"><span style=\"color: #687687;\">$<\/span>( <span style=\"color: #6d79de; font-weight: bold;\">document<\/span> ).ready(function() {\n    <span style=\"color: #687687;\">$<\/span>(<span style=\"color: #d80800;\">'.socialShareLinks a'<\/span>).each(function() {\n      var value <span style=\"color: #687687;\">=<\/span> <span style=\"color: #687687;\">$<\/span>(<span style=\"color: #0206ff; font-style: italic;\">this<\/span>).attr(<span style=\"color: #d80800;\">'href'<\/span>);\n      <span style=\"font-style: italic;\">console<\/span><span style=\"color: #3c4c72; font-weight: bold;\">.log<\/span>(value);\n      <span style=\"color: #687687;\">$<\/span>(<span style=\"color: #0206ff; font-style: italic;\">this<\/span>).attr(<span style=\"color: #d80800;\">'href'<\/span>, value.<span style=\"color: #3c4c72; font-weight: bold;\">replace<\/span>(<span style=\"color: #d80800;\">'[ARTICLELINK]'<\/span>,<span style=\"color: #687687;\">$<\/span>(location).attr(<span style=\"color: #d80800;\">'href'<\/span>)));\n    });\n});\n<\/pre>\n<p>Download the vector icons in a zip file:&nbsp;<a href=\"\/downloads\/social-icon-svg.zip\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-52\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/zip.png\" alt=\"zip\" width=\"40\" height=\"38\"><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are presenting a simple jQuery solution to implement social media share buttons for the current page, with svg icons. Our example includes the most popular sites: Facebook, Twitter, LinkedIn, Digg, Blogger, Reddit, Delicious and &#8220;email to friend&#8221;. You can add new sites tweaking the code a little. Sharablility is a crucial SEO factor so &hellip; <a href=\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Social Media Share Buttons &#8211; Dynamic JS Widget&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3,4,5,6],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-articles","category-freebies","category-html","category-javascript","category-jquery"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Social Media Share Buttons - Dynamic Widget - JS AddThis<\/title>\n<meta name=\"description\" content=\"a simple jQuery solution to implement social media share buttons for the current page, with svg icons. Our example includes the most popular sites: Facebook\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Social Media Share Buttons - Dynamic Widget - JS AddThis\" \/>\n<meta property=\"og:description\" content=\"a simple jQuery solution to implement social media share buttons for the current page, with svg icons. Our example includes the most popular sites: Facebook\" \/>\n<meta property=\"og:url\" content=\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Online\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/htmlcoding\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-19T20:32:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-14T08:05:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg\" \/>\n<meta name=\"author\" content=\"HTML Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HTML Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/\"},\"author\":{\"name\":\"HTML Editor\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\"},\"headline\":\"Social Media Share Buttons &#8211; Dynamic JS Widget\",\"datePublished\":\"2019-11-19T20:32:00+00:00\",\"dateModified\":\"2020-01-14T08:05:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/\"},\"wordCount\":153,\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg\",\"articleSection\":[\"Articles\",\"Freebies\",\"HTML\",\"JavaScript\",\"jQuery\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/\",\"url\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/\",\"name\":\"Social Media Share Buttons - Dynamic Widget - JS AddThis\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg\",\"datePublished\":\"2019-11-19T20:32:00+00:00\",\"dateModified\":\"2020-01-14T08:05:42+00:00\",\"description\":\"a simple jQuery solution to implement social media share buttons for the current page, with svg icons. Our example includes the most popular sites: Facebook\",\"breadcrumb\":{\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#primaryimage\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg\",\"width\":340,\"height\":34,\"caption\":\"social media share buttons jquery\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/html-online.com\/articles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Social Media Share Buttons &#8211; Dynamic JS Widget\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/html-online.com\/articles\/#website\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"name\":\"HTML Online Articles\",\"description\":\"Tips, tricks, tutorials\u2026\",\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/html-online.com\/articles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/html-online.com\/articles\/#organization\",\"name\":\"HTML Online\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"width\":350,\"height\":350,\"caption\":\"HTML Online\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/htmlcoding\/\",\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\",\"name\":\"HTML Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"caption\":\"HTML Editor\"},\"description\":\"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/@htmlg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Social Media Share Buttons - Dynamic Widget - JS AddThis","description":"a simple jQuery solution to implement social media share buttons for the current page, with svg icons. Our example includes the most popular sites: Facebook","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/","og_locale":"en_GB","og_type":"article","og_title":"Social Media Share Buttons - Dynamic Widget - JS AddThis","og_description":"a simple jQuery solution to implement social media share buttons for the current page, with svg icons. Our example includes the most popular sites: Facebook","og_url":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/","og_site_name":"HTML Online","article_publisher":"https:\/\/www.facebook.com\/htmlcoding\/","article_published_time":"2019-11-19T20:32:00+00:00","article_modified_time":"2020-01-14T08:05:42+00:00","og_image":[{"url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg","type":"","width":"","height":""}],"author":"HTML Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HTML Editor","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#article","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/"},"author":{"name":"HTML Editor","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d"},"headline":"Social Media Share Buttons &#8211; Dynamic JS Widget","datePublished":"2019-11-19T20:32:00+00:00","dateModified":"2020-01-14T08:05:42+00:00","mainEntityOfPage":{"@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/"},"wordCount":153,"publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"image":{"@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg","articleSection":["Articles","Freebies","HTML","JavaScript","jQuery"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/","url":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/","name":"Social Media Share Buttons - Dynamic Widget - JS AddThis","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#primaryimage"},"image":{"@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg","datePublished":"2019-11-19T20:32:00+00:00","dateModified":"2020-01-14T08:05:42+00:00","description":"a simple jQuery solution to implement social media share buttons for the current page, with svg icons. Our example includes the most popular sites: Facebook","breadcrumb":{"@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#primaryimage","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2016\/11\/social-media-share-buttons-jquery.jpg","width":340,"height":34,"caption":"social media share buttons jquery"},{"@type":"BreadcrumbList","@id":"https:\/\/html-online.com\/articles\/dynamic-social-media-share-widget-addthis-alternative\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/html-online.com\/articles\/"},{"@type":"ListItem","position":2,"name":"Social Media Share Buttons &#8211; Dynamic JS Widget"}]},{"@type":"WebSite","@id":"https:\/\/html-online.com\/articles\/#website","url":"https:\/\/html-online.com\/articles\/","name":"HTML Online Articles","description":"Tips, tricks, tutorials\u2026","publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/html-online.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/html-online.com\/articles\/#organization","name":"HTML Online","url":"https:\/\/html-online.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","width":350,"height":350,"caption":"HTML Online"},"image":{"@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/htmlcoding\/","https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww"]},{"@type":"Person","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d","name":"HTML Editor","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","caption":"HTML Editor"},"description":"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.","sameAs":["https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/@htmlg"]}]}},"_links":{"self":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":9,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":1131,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/47\/revisions\/1131"}],"wp:attachment":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}