So, you want to add a dynamic ACF iFrame in Elementor.
That means pulling a custom URL from an ACF field and showing it inside an iFrame—automatically.

Maybe you’re running an online course. Every lesson needs to show a different video stored in a custom field. Whatever your use case, You can do it easily with the Custom iFrame for Elementor plugin by Coderz Studio.

Let’s walk through the steps.

Why You Should Use a Dynamic ACF iFrame in Elementor?

Dynamic content saves you time. You set it up once, and Elementor pulls the right link automatically for each post, page, or product. No copy-paste. No mistakes. If you ever update the URL in ACF, it updates everywhere.

Using a dynamic ACF iFrame in Elementor is perfect for:

  • live preview or demo of every project inside an iframe
  • Lesson videos for online courses
  • Google Maps for business locations
  • Embedded forms or dashboards

It’s clean, easy, and keeps your site flexible.

Use Custom iFrame Plugin to Add Dynamic ACF iFrame in Elementor

You don’t need any coding skills to make this work.
The Custom iFrame for Elementor plugin handles everything.

Here’s what you need to do.

Step 1: Install the Plugin

  1. In WordPress, go to Plugins > Add New
  2. Search for Custom iFrame by Coderz Studio
  3. Click Install and then Activate
The image showcases the WordPress plugin listing for "Custom iFrame for Elementor," designed to embed PDFs, maps, videos, and websites within Elementor pages. The listing highlights features such as lazy loading, auto-height adjustment, dynamic URL support, and SEO-friendly functionality. Additional details include over 200 active installations, a 5-star rating from user reviews, and a prominent "Install Now" button. These features underscore the plugin's utility in enhancing web designs with seamless integration options.

Step 2: Create an ACF Field

  1. Install Secure Custom Filed plugin or as per your needs.
  2. Go to Custom Fields > Add New.
  3. Create a new field group.
The image displays the plugin listing for "Secure Custom Fields" in the WordPress plugin repository. It offers enhanced content management with custom fields while disabling Advanced Custom Fields to avoid duplicate code errors. The listing highlights key details, including a 4.5-star rating from 39 reviews, over 10,000 active installations, and compatibility with the user's WordPress version. The plugin was last updated one week ago, with "Activate" and "More Details" buttons visible for user actions.
  1. Add a field with Field Type: URL.
  2. Name it something like iframe_url.
  3. Set rules to show it where you need (posts, pages, etc.).Publish the field group.

Step-by-Step: Set Up Your Dynamic iFrame in Elementor

Now the real fun starts.

Step 1: Edit Your Page or Single Post Template with Elementor in which you want to add the dynamic iFrame.

Step 2: Search for ‘Custom iFrame’ and drag the widget onto your page.

Step 3: Connect the iFrame to Your ACF Field.

  • In the widget settings, find the Source field.
  • Click the Dynamic Tags button next to it.
  • Choose ACF Field.
  • Under Key, select your custom field (e.g., iframe_url).

Step 4: Setup Height and Scrollbar

The image displays the "Edit Custom iFrame" settings in Elementor, configured for dynamic content integration. The Content tab is active, showcasing options for the Source Type set to "Default" and the Source URL linked to an ACF URL Field labeled "iframe url." Below, the Key field is assigned "iframe url," accompanied by an empty Fallback field. These settings optimize workflows for embedding dynamic ACF iFrames in Elementor, ensuring flexibility and seamless design integration.
  • Height Setup: When you’re working with dynamic iFrames, setting a flexible height like 100vh or enabling Auto Height ensures the frame adjusts perfectly to whatever content loads from your ACF field.
  • Scroll Bar Handling: If your dynamic content is tall, the Custom iFrame widget lets you control scroll bars, so your iFrame can either expand naturally or show a scroll only when needed.

And that’s it.
Now, every post or page will pull its iFrame link automatically from the ACF field.

Make Your Dynamic iFrame Look Good

Once your dynamic ACF iFrame is working, it’s time to make it look like it belongs on your page — clean, sharp, and responsive.

Here’s how you can style it easily with the Custom iFrame for Elementor plugin:

  1. Spacing (Padding, Width, Alignment): Used to control the breathing space and positioning of the dynamic iFrame inside the layout.
  2. Background Style: Helpful to highlight or visually separate the dynamic iFrame from the rest of the page.
  3. Border Style: Used to frame the iFrame content clearly and make it visually distinct.
  4. Box Shadow Style: Adds depth and makes the dynamic iFrame feel layered and more natural in the design.
  5. Mobile Responsiveness: Ensures the dynamic iFrame adapts smoothly across mobile, tablet, and desktop screens.
The image showcases the "Style" tab within the "Custom iFrame" settings in Elementor. This section offers comprehensive styling options, such as "Style," "Background Style," "Border Style," and "Box Shadow Style," presented as expandable panels. These features allow users to refine the visual presentation of embedded iframe in Elementor with ease and flexibility.

Check this How to Style Custom iFrame? guide—adjust colors, backgrounds, borders, & more!

FAQ: Dynamic iFrame with ACF in Elementor

Yes! You can pull the iFrame source directly from your ACF fields using dynamic tags.

Use the URL field type for the iFrame source link.

Absolutely. Use the Responsive Toggle in the plugin and flexible units like % or vh.

The Custom iFrame plugin works with the free version of Elementor.
However, if you want to use dynamic tags and pull iFrame URLs from an ACF field, you will need Elementor Pro.

Final Thoughts

Adding a dynamic ACF iFrame in Elementor is easier than you think.

With the Custom iFrame for Elementor plugin, you don’t have to worry about coding or tricky setups.

You just build smarter pages—faster.

Tried it already? Have a question?
Drop a comment below! 👇 We’d love to hear how you’re using dynamic iFrames on your site.

Leave a Reply

Your email address will not be published. Required fields are marked *