{"id":15175,"date":"2017-04-05T09:29:01","date_gmt":"2017-04-05T16:29:01","guid":{"rendered":"http:\/\/sharethis.com\/?page_id=15175"},"modified":"2025-11-27T09:55:14","modified_gmt":"2025-11-27T17:55:14","slug":"customize-sticky-share-button-urls","status":"publish","type":"page","link":"http:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/","title":{"rendered":"How to Customize Sticky Share Buttons (Image, URL, and more)"},"content":{"rendered":"<p>In this guide, you\u2019ll learn how to <strong>customize sticky share button URLs<\/strong> and other share properties using data attributes (If you want to learn how to customize your Inline Share Buttons, go <a href=\"https:\/\/sharethis.com\/support\/customization\/customize-share-urls\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>).<\/p>\n\n\n\n<p>Oftentimes, the\u00a0<a href=\"https:\/\/sharethis.com\/support\/customization\/using-open-graph-tags\/\" target=\"_blank\" rel=\"noreferrer noopener\">Open Graph Protocol<\/a>\u00a0tags will populate this information with content from your page but you can tailor it to make it more relevant if it\u2019s not extracting the information you want it to. For example, if a user shares your homepage, you may want to add an image of your product or provide a more compelling description.\u00a0<\/p>\n\n\n\n<p>Due to the way Sticky Share Buttons are designed (i.e. they don\u2019t need a placement code) you will need to manually add the following code inside the &lt;body&gt;  of your site, preferably before the closing of the &lt;\/body&gt; tag (our script will deal with moving the div where it needs to go):<\/p>\n\n\n\n<p><code>&lt;div class='sharethis-sticky-share-buttons' &gt;&lt;\/div&gt;<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-properties-in-lt-div-gt-tags\"><strong>Properties in &lt;div&gt; tags<\/strong><\/h3>\n\n\n\n<p>Depending on whether you want to simply set a universal URL or shortened URL, add the following tags in the tool placement code <strong>&lt;div class=\u201dsharethis-sticky-share-buttons\u201d&gt;&lt;\/div&gt;<\/strong>.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>data-network<\/td><td>Specifies to which social platform the content will be shared<\/td><\/tr><tr><td>data-url<\/td><td>Specifies URL (can be shortened URL) that you would like shared<\/td><\/tr><tr><td>data-short-url<\/td><td>Specifies a shortened URL that can be used in conjunction with the data-url<\/td><\/tr><tr><td>data-title<\/td><td>Specifies title that you would like shared (email\u2019s subject in some email channels)<\/td><\/tr><tr><td>data-image<\/td><td>Specifies link to image you would like displayed in the shared content<\/td><\/tr><tr><td>data-description<\/td><td>Specifies summary text\/description you wish to share<\/td><\/tr><tr><td>data-username<\/td><td>Specifies your Twitter username<\/td><\/tr><tr><td>data-message<\/td><td>Specifies the body copy of e-mail shares<\/td><\/tr><tr><td>data-email-subject<\/td><td>Specifies the email\u2019s subject<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Example:<\/strong> This button is set to share the ShareThis home page with the title \u201cSharing is great!\u201d <code>&lt;div class='sharethis-sticky-share-buttons' data-url=\"https:\/\/sharethis.com\" data-title=\"Sharing is great!\"&gt;&lt;\/div&gt;\u00a0<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"notes\"><strong>Notes<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list is-style-styled\">\n<li>This customization is not available for all social channels. For example, Facebook may always use og: meta tags for the URL instead of these values.<\/li>\n\n\n\n<li>The data-url attribute will help you set a specific URL (despite which page users are sharing) or add a tracked link.<\/li>\n\n\n\n<li>Share count may not be recorded since the URL shared is different than the URL the buttons are in.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"order-of-precedence\"><strong>Order of Precedence<\/strong><\/h3>\n\n\n\n<p>It is important to remember the order of precedence by which the ShareThis code processes share properties. Generally, we recommend using one approach by which sharing properties are specified on your pages to prevent errors.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Any dynamically specified JavaScript properties (i.e. highest precedence)<\/li>\n\n\n\n<li>Properties specified in tags (i.e. second precedence)<\/li>\n\n\n\n<li>Open Graph Protocol tags (i.e. lowest precedence)<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, you\u2019ll learn how to customize sticky share button URLs and other share properties using data attributes (If you want to learn how to customize your Inline Share Buttons, go here). Oftentimes, the\u00a0Open Graph Protocol\u00a0tags will populate this information with content from your page but you can tailor it to make it more [&hellip;]<\/p>\n","protected":false},"author":93,"featured_media":0,"parent":14952,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/page_single_support.php","meta":{"ghostkit_customizer_options":"","ghostkit_custom_css":"","ghostkit_custom_js_head":"","ghostkit_custom_js_foot":"","ghostkit_typography":"","footnotes":""},"class_list":["post-15175","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Customize Sticky Share Button (Image, URL, and more)<\/title>\n<meta name=\"description\" content=\"Learn how to customize Sticky Share Button URLs, titles, images, and descriptions using ShareThis data attributes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Customize Sticky Share Buttons (Image, URL, and more)\" \/>\n<meta property=\"og:description\" content=\"Learn how to customize Sticky Share Button URLs, titles, images, and descriptions using ShareThis data attributes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/\" \/>\n<meta property=\"og:site_name\" content=\"ShareThis\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-27T17:55:14+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/\",\"url\":\"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/\",\"name\":\"How to Customize Sticky Share Button (Image, URL, and more)\",\"isPartOf\":{\"@id\":\"https:\/\/sharethis.com\/#website\"},\"datePublished\":\"2017-04-05T16:29:01+00:00\",\"dateModified\":\"2025-11-27T17:55:14+00:00\",\"description\":\"Learn how to customize Sticky Share Button URLs, titles, images, and descriptions using ShareThis data attributes.\",\"breadcrumb\":{\"@id\":\"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sharethis.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Support\",\"item\":\"https:\/\/sharethis.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Customization\",\"item\":\"https:\/\/sharethis.com\/support\/customization\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Customize Sticky Share Buttons (Image, URL, and more)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sharethis.com\/#website\",\"url\":\"https:\/\/sharethis.com\/\",\"name\":\"ShareThis\",\"description\":\"Grow your audience with easy-to-use sharing tools.\",\"publisher\":{\"@id\":\"https:\/\/sharethis.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sharethis.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/sharethis.com\/#organization\",\"name\":\"ShareThis\",\"url\":\"https:\/\/sharethis.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sharethis.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/sharethis.com\/wp-content\/uploads\/2019\/06\/ShareThisLogo2x-1.png\",\"contentUrl\":\"http:\/\/sharethis.com\/wp-content\/uploads\/2019\/06\/ShareThisLogo2x-1.png\",\"width\":414,\"height\":86,\"caption\":\"ShareThis\"},\"image\":{\"@id\":\"https:\/\/sharethis.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"SoftwareApplication\",\"applicationCategory\":\"SocialNetworkingApplication\",\"offers\":{\"@type\":\"Offer\",\"price\":\"0.00\",\"priceCurrency\":\"USD\",\"category\":\"free\"},\"operatingSystem\":\"Web\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Customize Sticky Share Button (Image, URL, and more)","description":"Learn how to customize Sticky Share Button URLs, titles, images, and descriptions using ShareThis data attributes.","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:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/","og_locale":"en_US","og_type":"article","og_title":"How to Customize Sticky Share Buttons (Image, URL, and more)","og_description":"Learn how to customize Sticky Share Button URLs, titles, images, and descriptions using ShareThis data attributes.","og_url":"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/","og_site_name":"ShareThis","article_modified_time":"2025-11-27T17:55:14+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/","url":"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/","name":"How to Customize Sticky Share Button (Image, URL, and more)","isPartOf":{"@id":"https:\/\/sharethis.com\/#website"},"datePublished":"2017-04-05T16:29:01+00:00","dateModified":"2025-11-27T17:55:14+00:00","description":"Learn how to customize Sticky Share Button URLs, titles, images, and descriptions using ShareThis data attributes.","breadcrumb":{"@id":"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sharethis.com\/support\/customization\/customize-sticky-share-button-urls\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sharethis.com\/"},{"@type":"ListItem","position":2,"name":"Support","item":"https:\/\/sharethis.com\/support\/"},{"@type":"ListItem","position":3,"name":"Customization","item":"https:\/\/sharethis.com\/support\/customization\/"},{"@type":"ListItem","position":4,"name":"How to Customize Sticky Share Buttons (Image, URL, and more)"}]},{"@type":"WebSite","@id":"https:\/\/sharethis.com\/#website","url":"https:\/\/sharethis.com\/","name":"ShareThis","description":"Grow your audience with easy-to-use sharing tools.","publisher":{"@id":"https:\/\/sharethis.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sharethis.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/sharethis.com\/#organization","name":"ShareThis","url":"https:\/\/sharethis.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sharethis.com\/#\/schema\/logo\/image\/","url":"http:\/\/sharethis.com\/wp-content\/uploads\/2019\/06\/ShareThisLogo2x-1.png","contentUrl":"http:\/\/sharethis.com\/wp-content\/uploads\/2019\/06\/ShareThisLogo2x-1.png","width":414,"height":86,"caption":"ShareThis"},"image":{"@id":"https:\/\/sharethis.com\/#\/schema\/logo\/image\/"}},{"@type":"SoftwareApplication","applicationCategory":"SocialNetworkingApplication","offers":{"@type":"Offer","price":"0.00","priceCurrency":"USD","category":"free"},"operatingSystem":"Web"}]}},"_links":{"self":[{"href":"http:\/\/sharethis.com\/wp-json\/wp\/v2\/pages\/15175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sharethis.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/sharethis.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/sharethis.com\/wp-json\/wp\/v2\/users\/93"}],"replies":[{"embeddable":true,"href":"http:\/\/sharethis.com\/wp-json\/wp\/v2\/comments?post=15175"}],"version-history":[{"count":1,"href":"http:\/\/sharethis.com\/wp-json\/wp\/v2\/pages\/15175\/revisions"}],"predecessor-version":[{"id":210343,"href":"http:\/\/sharethis.com\/wp-json\/wp\/v2\/pages\/15175\/revisions\/210343"}],"up":[{"embeddable":true,"href":"http:\/\/sharethis.com\/wp-json\/wp\/v2\/pages\/14952"}],"wp:attachment":[{"href":"http:\/\/sharethis.com\/wp-json\/wp\/v2\/media?parent=15175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}