Webflow designers often face a frustrating challenge: displaying external content that changes for each CMS item. Whether it's Google Maps showing different office locations or Calendly booking widgets for different sales representatives, the solution isn't immediately obvious.
The standard Embed element on Webflow doesn't automatically connect to your CMS fields, leading many to resort to creating static pages instead of leveraging the powerful benefits of the Webflow CMS, or implementing complex code workarounds that are difficult to maintain.
In this tutorial, we'll show you a surprisingly simple solution that connects your CMS fields directly to iframe embeds, saving you hours of work while creating a more dynamic, maintainable website.
Dynamic iframes bridge the gap between Webflow's design capabilities and external interactive content, allowing each CMS item to display unique, relevant embedded elements without duplicating work. Here are some powerful applications:
Let's break down the implementation process into clear, manageable steps.
First, we need to set up the proper fields in your Webflow CMS collection:
This field will store the unique part of your iframe for each CMS item—typically a URL, ID, or parameter that changes per item.
Now, let's add the iframe to your collection template:
For example, if embedding a Google Map, your code might look like this:
<iframe
src="https://www.google.com/maps/embed?pb=YOUR_MAP_PARAMETERS"
width="100%"
height="450"
style="border:0;"
allowfullscreen=""
loading="lazy"
referrerpolicy="no-referrer-when-downgrade">
</iframe>
Don't worry about the specific map parameters yet—we'll connect them to your CMS field in the next step.
This is where the magic happens—connecting your CMS data to the iframe:
The embed will now dynamically update with each collection item's specific content.
If some CMS items might not have embed content:
Before going live:
Even with the correct setup, you might encounter these common problems:
Implementing dynamic iframes in Webflow empowers you to create rich, personalized experiences without duplicating work or sacrificing design consistency. From embedding custom maps for each location to displaying client-specific widgets, this approach keeps your CMS efficient while delivering interactive content tailored to each page.
For more advanced implementations or complex integration challenges, our Webflow agency specializes in custom CMS solutions that enhance site functionality. Whether you're building a multi-location business directory or a content-rich educational platform, we can help optimize your iframe implementation while maintaining clean, professional designs.
Add a functional back button to your Webflow 404 or Thank you page with our lightweight script. Works for internal and external navigation.
Detect and block IE users on Webflow with our free script. Prevents broken layouts and poor user experience. Works with all IE versions!
Add automatic page data tracking to Webflow forms to capture URLs and titles. Works with static pages and CMS collections.