Corner Ribbon
A clickable promotional ribbon keeps an offer in a corner of your Webflow site's pages.

A Webflow site has no native element for a persistent corner ribbon that links to an offer. You can build one with fixed positioning and z-index, but each new campaign means restyling and republishing. Modal popups block content, so they suit a different job. Corner Ribbon, from Smartarget, places a small promotional ribbon in a page corner.
Corner Ribbon adds the ribbon through a JavaScript snippet generated in your Smartarget account. You set the text, link, colors, and corner in the Smartarget dashboard. Then you install the app or paste the snippet into your site's head or body code. The ribbon sits in a corner without blocking page content.
Ecommerce store owners can use the ribbon to promote flash sales or holiday specials, or to display a free shipping threshold. SaaS marketing teams use it to announce features and link to docs or demo booking. Event organizers point visitors to webinar or conference registration. Freelancers and agencies can add a promotion to a client site without development time.
How to integrate Corner Ribbon with Webflow
Corner Ribbon is a JavaScript promotional widget from Smartarget that places a clickable ribbon in one of four page corners. It’s designed to promote offers and announcements, such as highlighting a sale or sending visitors to a specific landing page. You can adjust the ribbon’s position, colors, and size to match your site. Setup takes a few minutes with no coding. You configure the ribbon, copy the JavaScript snippet from the Integrations section, and paste it into your site.

Reach for Corner Ribbon when an offer needs to stay visible on every page without interrupting reading or checkout. Common triggers are a time-limited sale, a product launch, or an event with a registration deadline. When the offer changes, you edit the message in the Smartarget dashboard instead of your Webflow layout.
You can add the ribbon in three ways. The Corner Ribbon app installs the Smartarget script from the Apps Marketplace without writing code. Custom code and Code Embed elements let you paste the snippet site-wide, on one page, or inside a layout. The Webflow Data API lets an OAuth Webflow App register the snippet on each site and apply it site-wide or to specific pages, which takes custom server-side development that Smartarget does not document.
Most sites need only one method. Agencies managing many client sites may pair the app or Code Embed with the API.
Install the Corner Ribbon app
The Corner Ribbon app adds the ribbon to your site through the Apps Marketplace with automatic code setup. The app is approved by Webflow. Use this method if you want the ribbon on every page and prefer not to handle code. You need a Smartarget account before you start.
The exact in-app screens may differ, but the setup follows this order:
- Create a free Smartarget account on the Smartarget signup page.
- Open the Corner Ribbon app listing and click Log in to install, or Add to site if you are already signed in.
- Approve the app's two permissions: "Read and write custom code" and "Read site data and publishing."
- Set the ribbon text, link, colors, and corner position in the Smartarget dashboard.
- Publish your site, then check the ribbon on the live URL.
The Smartarget dashboard preview for Webflow exposes these ribbon settings:
- Text and link: You set the ribbon text and, optionally, a URL that makes the ribbon clickable.
- Colors: Text color and ribbon color are set separately.
- Position: The ribbon sits top left, top right, bottom left, or bottom right.
- Size: Width takes a value from 100 to 500 px, and font size is Small, Normal, Large, or Huge.
- Font: The ribbon uses either your site font or a Smartarget font.
The listing states the ribbon shows "on all pages, both on desktop and mobile." The Smartarget preview for Webflow shows no scheduling, device targeting, or page rules for Corner Ribbon.
Add the Corner Ribbon script with custom code and Code Embed elements
Pasting the Smartarget snippet yourself gives you control over where the ribbon loads. Use Footer code for a site-wide ribbon or Page settings for one page. A Code Embed element places it inside a layout. All three need a Core, Growth, Agency, or Freelancer Workspace, or an active Site plan. Each code field and each Code Embed accepts up to 50,000 characters of HTML, CSS, or JavaScript.
Copy the Corner Ribbon script from Smartarget
Smartarget generates an account-specific snippet, so there is no fixed code to copy from documentation. Smartarget's Webflow guide ends its four-step setup instructions with pasting the code into your site.
To get the snippet:
- Sign up for Smartarget and open your dashboard.
- Configure the Corner Ribbon position, colors, size, text, and link.
- Go to Integrations and copy the JavaScript code.
Before pasting, remove any <html>, <head>, or <body> wrapper tags from the snippet.
Add the ribbon site-wide with Footer code
Footer code places the script before the closing body tag on every page. Scripts placed there run after the page content loads, which Webflow says helps page load speed.
To add the ribbon to every page:
- Open Site settings > Custom code.
- Paste the Smartarget snippet into the Footer code field.
- Click Save changes.
- Publish your site and load the live URL.
Site-wide code should also reach Collection pages, since it applies to your entire site.
Add the ribbon to one page with Page settings
Page-level custom code applies only to that page and runs after site-wide code. Use it for a campaign landing page or a single launch page.
To add the ribbon to one page:
- Open Page settings for the page where the ribbon should appear.
- Find the Custom code section and paste the snippet into Before
</body>tag. - Save your changes and publish your site.
After publishing, load a few other pages to confirm where the ribbon appears.
Place the ribbon with a Code Embed element
A Code Embed element adds the snippet inside a specific layout or component. You can also add it inside a rich text element through the insert menu's custom code button.
To add a Code Embed:
- Open the Add panel and find the Code Embed element.
- Drag the Code Embed element onto the page.
- Paste the Smartarget snippet and click Save and close.
- Publish your site.
Custom code added to a Collection page template applies to every page in that Collection, and its effects go live only when you publish.
Build with the Webflow Data API
Smartarget doesn't document a public API, webhooks, or JavaScript events for Corner Ribbon. Programmatic control runs through the Data API custom code endpoints. A Webflow App registers the Smartarget script on a site, then applies it to the whole site or to specific pages. Only Webflow Apps with OAuth tokens can call these endpoints; site and Workspace tokens can't. This path suits agencies and app developers who manage the ribbon across many sites. It requires server-side development.
The Webflow Data API v2 covers each step of that flow:
- Register inline script (
POST /v2/sites/{site_id}/registered_scripts/inline) stores the snippet source on a site. - Register hosted script (
POST /v2/sites/{site_id}/registered_scripts/hosted) registers a script you host elsewhere, usinghostedLocationandintegrityHash. - Add/update site custom code (
PUT /v2/sites/{site_id}/custom_code) applies registered scripts site-wide. - Add/update page custom code (
PUT /v2/pages/{page_id}/custom_code) applies scripts to one page. - Webflow webhooks such as
page_createdandsite_publishnotify your server about site events.
Your App needs the custom_code:read and custom_code:write scopes, plus sites:write to publish.
Apply the ribbon site-wide from a Webflow App
Registering the script once lets you reapply it to any site your App can access. You can't edit a registered version, so register a new version when the ribbon changes.
To apply the ribbon to a site:
- Register the snippet with
POST https://api.webflow.com/v2/sites/{site_id}/registered_scripts/inline, sending a bearer token from an OAuth Code Grant Flow:
curl -X POST "https://api.webflow.com/v2/sites/{site_id}/registered_scripts/inline" \
-H "Authorization: Bearer $WEBFLOW_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"sourceCode": "<JavaScript copied from Smartarget Integrations>",
"version": "1.0.0",
"displayName": "CornerRibbon"
}'
Send raw JavaScript in sourceCode, without <script> tags.
- Apply the returned script ID with
PUT /v2/sites/{site_id}/custom_code, settinglocationtofooter:
{
"scripts": [
{ "id": "<registered_script_id>", "location": "footer", "version": "1.0.0" }
]
}
- Publish with
POST /v2/sites/{site_id}/publish, passingcustomDomainsorpublishToWebflowSubdomain.
The PUT call sets the full list of scripts your App applies, so include every one of them each time. Keep inline scripts under 2,000 characters. Register longer snippets as hosted scripts.
Add the ribbon to campaign pages
Page-level control lets you show the ribbon on landing pages only. A webhook can trigger the same call when someone creates a new page.
To target specific pages:
- List page IDs with
GET /v2/sites/{site_id}/pages(scopepages:read). - Apply the registered script to each page with
PUT /v2/pages/{page_id}/custom_code, usinglocation: "footer". - Optionally create a
page_createdwebhook withPOST /v2/sites/{site_id}/webhooksand run step 2 when it fires. - Publish the site so the changes go live.
DELETE /v2/pages/{page_id}/custom_code removes applied page code but leaves registered scripts in place.
What you can build with the Corner Ribbon Webflow integration
A corner ribbon suits any offer that should stay in view while visitors keep reading.
- Seasonal sales: For Black Friday or a weekend special, a store uses Footer code to add a top-right ribbon on every page, linking to the deals page or checkout.
- Feature announcements: On a SaaS pricing page, a ribbon added through Page settings announces a new feature and links to its docs or a demo booking page.
- Shipping thresholds: A shop places a Code Embed on its product templates so a "Free shipping over $50" ribbon stays in a bottom corner without pushing content down.
- Event registration: A Code Embed on a conference or webinar landing page adds a ribbon linking straight to the registration form.
Each of these needs only a message and a link, so the campaign can change without touching your layout. For page-by-page control across many sites, use the custom code API.
Frequently asked questions
Yes, for the custom code and Code Embed methods. Webflow's custom code help articles say both need a Core, Growth, Agency, or Freelancer Workspace, or an active Site plan. For the app route, the Corner Ribbon listing names no required Webflow plan, and Smartarget offers a free plan of its own.
Custom code goes live only after you publish, so check the live URL rather than the canvas. If the ribbon is still missing, Smartarget's troubleshooting FAQ suggests checking the site in an incognito window, and loading
domain.com/?sm_no_cache=1after a settings change. Also confirm the snippet has no<html>,<head>, or<body>tags, which Webflow warns will break your layout.Yes, if you paste the snippet yourself. Put it in a page's Before
</body>tag field or in a Code Embed on that page instead of Footer code, then load other live pages to confirm the ribbon appears only where you placed it. The app route shows the ribbon on every page, per its listing, and the Smartarget preview for Webflow has no page rules.Change the ribbon text, link, or colors in the Smartarget dashboard. Then copy the updated snippet if Smartarget generates a new one, and republish. To remove a pasted snippet, delete it from its code field and publish. For the app route, revoke the app under Apps & integrations in Site settings or Workspace settings. Its custom code is removed on your next publish, per the Webflow Apps overview.
It records ribbon clicks. Smartarget's loader script sends each click to Smartarget with the page URL, the device type, and the seconds before the click, and those records feed the click statistics in your Smartarget dashboard. If the page has a Google Tag Manager
dataLayer, the script also pushes aSmartarget App Clickevent to it. Check this against your consent setup before you publish.

Description
Install the Corner Ribbon app or paste the Smartarget script into custom code. The ribbon shows a linked offer in any page corner on desktop and mobile.
This integration page is provided for informational and convenience purposes only.
Orimon
Connect Orimon with Webflow to answer visitor questions and capture leads through an AI chatbot trained on your published site.
Chaty
Add a floating Chaty chat widget to your Webflow site that routes visitors to WhatsApp, Messenger, phone, and other channels across 20+ supported platforms.
Social Intents live chat
Connect Social Intents live chat with Webflow to answer visitor questions in real time from Microsoft Teams or Slack, with Google Chat also supported.

Twise
Connect Twise, an AI chat assistant, with Webflow to answer visitor questions, capture leads, and respond in 92 languages using a chat widget that learns from your site content.

Flowstar: Banners
Connect Flowstar: Banners with Webflow to display promotional pop-ups and announcement banners without writing code

Flowstar Urgency Countdown Timer
Add deadline-driven countdown timer bars to any Webflow page using Flowstar's no-code app.

Click to Call
Connect Click to Call with Webflow to add a floating phone button that lets visitors call your business directly from any page.

Impulse
Connect Impulse with Webflow to add popups, bars, and widgets to your site without writing custom code.
Social Chat Buttons
Add WhatsApp, Messenger, and Instagram chat buttons to your Webflow site with the Social Chat Buttons app, or place the widget script yourself.


