User / Level Icon
Intermediate
Gear Time Icon
Webflow
Time Icon
4
 Minutes

Webflow Social Share Buttons: Finsweet Attributes Tutorial

Learn how to add custom social share buttons to your Webflow CMS pages using Finsweet Attributes. Step-by-step guide with no-code social sharing for X, Facebook, and LinkedIn.

<script defer src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-socialshare@1/socialshare.js"></script>

Copy Code

Boost Your Blog’s Reach with Custom Social Share Buttons

Adding social share buttons to your Webflow project is one of the easiest ways to increase engagement and drive traffic to your CMS content. While there are many third-party widgets available, they often come with bulky code that slows down your site.

By using Finsweet Attributes, you can create fully custom share buttons that match your brand perfectly—without writing a single line of custom JavaScript.

Step 1: Add the Finsweet Attributes Script

The first step is to connect your Webflow project to the Finsweet Social Share library.

  1. Go to your Project Settings or the Page Settings of your CMS Template.
  2. Locate the Inside <head> tag section.
  3. Paste the following script:

HTML

<script defer src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-socialshare@1/socialshare.js"></script>

Step 2: Design Your Share Buttons in Webflow

Inside the Webflow Designer, go to your blog post template page. You can design your buttons using:

  • Link Blocks
  • Div Blocks
  • Text Links
  • Image Elements (for icons)

Place these inside a wrapper near your blog content. This is the beauty of this solution: you have 100% control over the CSS and layout.

Step 3: Assign the Attributes

Now, you need to tell the script which button corresponds to which social platform. Select your button element and open the Settings Panel (D) to add Custom Attributes.

For Every Platform:

  • Name: fs-socialshare-element
  • Value: [platform-name] (e.g., twitter, facebook, linkedin, pinterest, or whatsapp)

Optional: Define the URL to ShareBy default, the script shares the URL of the current page. However, if you want to be specific (useful for sharing a different CMS field), add an element (like a hidden text block) with:

  • Name: fs-socialshare-element
  • Value: url
  • Content: Bind this text to your "Source URL" CMS field.

Step 4: Platform-Specific Content (Optional)

Some platforms allow you to pre-populate text. For example, on X (formerly Twitter), you can add a text element with the attribute fs-socialshare-element="content" to define the default tweet text.

Step 5: Publish and Test

Attributes only work on the live site. Publish your project to your .webflow.io staging domain and click your buttons to ensure they trigger the correct social popups with the right metadata.

Frequently Asked Questions

Does this Finsweet solution slow down my Webflow site?

No. Finsweet Attributes are designed to be lightweight. By using a single script and native Webflow elements, you avoid the heavy "bloat" associated with traditional social sharing widgets.

Can I use these share buttons inside a CMS Collection List?

Yes! You can place the buttons inside a Collection List on your homepage or blog archive. To make each button share its specific item, use the fs-socialshare-instance attribute to separate each list item's share functionality.

Which social platforms are supported?

The Finsweet Social Share attribute supports X (Twitter), Facebook, LinkedIn, Pinterest, Telegram, Reddit, and WhatsApp.

Do I need a paid Finsweet account to use this?

No, Finsweet Attributes are free and open-source. You can use them on any Webflow project without a subscription.

How do I change the size of the share popup window?

You can customize the popup dimensions by adding fs-socialshare-width="600" and fs-socialshare-height="400" to your trigger element.
Have Any Further Questions?
I'm Always Down To Help.
Contact Me

You Might Also Like...

View All Tutorials