Webflow Integration
Add Text2MySite™ SMS alerts to your Webflow website
Webflow provides robust and flexible options for embedding code, making it a powerful tool for designers and developers alike. You have a choice between adding code to a specific page element or injecting it site-wide.
This is the most common and straightforward method for adding a widget to a specific page or section of your design.
Step-by-Step Instructions:
- In the Webflow Designer, click the Add Elements panel (the plus icon +).
- Scroll down to the Components section and find the Embed element.
- Drag and drop the Embed element onto the canvas where you want your widget to appear.
- A pop-up window will appear with a code editor. Paste your widget's HTML, CSS (wrapped in
<style>tags), and JavaScript (wrapped in<script>tags) into this editor. - Click Save & Close.
Important:
For security reasons, the widget will typically not display in the Webflow Designer. You will only see a placeholder that says "Custom Code." To see the live widget, you must click Publish in the top-right corner and view your live site.
This method is for adding scripts that need to be on every page of your site, such as analytics trackers, a chatbot, or a global pop-up.
Step-by-Step Instructions:
- From the Webflow Designer, click the Project Settings icon (the gear icon) in the top-left menu.
- Navigate to the Custom Code tab.
- You will see two sections: Head Code and Footer Code.
- Head Code: Place code here that needs to load early, like for Google Analytics or other scripts that require a quick page load.
- Footer Code: This section is for scripts that can run after the main content of your page has loaded. This is the best place for most widgets like live chats to avoid slowing down your site's initial load time.
- Paste your script into the appropriate section and click Save Changes.
- Click Publish to deploy the code to your live site.
How to Embed Code in Webflow (Easily)
Quick and clear overview of using the embed element and sitewide custom code
From the Webflow channel
Watch TutorialHow to Add Custom Code in Webflow – JavaScript, CSS & More!
In-depth guide covering different scenarios for adding custom code
From the Derek Sue channel
Watch Tutorial