Official response from NationBuilder Support
Yes. You can use iFrames and JavaScript elements with NationBuilder - you need to put the code in your website theme (Website > Theme > Files) or in the page template (edit page > Template), not in the content or basic HTML editor. Our theme documentation provides more information on the difference between website and page level template editing.
Please note, we cannot help troubleshoot the functionality of the iFrame since the content is being brought in from a 3rd party service.
Share this post
Showing 22 reactions
Sign in with
Hines Digital
Certified Architect
Certified Expert
Hines Digital
Certified Architect
Certified Expert
Thanks so much for this helpful information. I’ve gone ahead and added the CSS code into the Tablet and Desktop file. And then I’ve added this container code right above my iFrame:
<div id=“iframe-container” class=“iframe-container”>
iFRAME CODE
</div>
Doesn’t seem to have taken though…still looks wonky on my iPhone. Perhaps I’m doing it wrong?
Hines Digital
Certified Architect
Certified Expert
http://via.ianhin.es/1lHc8/1nRtCv3J
Hines Digital
Certified Architect
Certified Expert
If you add this CSS to your tablet-and-desktop.scss file, and wrap your iFrame in a <div> tag with a class of “iframe-container”, it ought to resolve that issue. Understand, however, that if the actual contents of the iFrame are not responsive this will not solve that problem. It will only make the actual frame itself resize.
Code: http://via.ianhin.es/1lHc8/1nRtCv3J</div>
Hines Digital
Certified Architect
Certified Expert
Check the HTML view in the WYSIWYG and ensure that the content URL is wrapped only in <p> tags. If it’s italicized, bolded, or has any styling rules it won’t render as a content URL.</p>
Hines Digital
Certified Architect
Certified Expert
Typically when people are using iFrames on their nation they’re doing so in order to render content from an external website, in which case they’re including an element in the theme of one of their pages.
Certified Architect
Thanks!