This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: Amending functions.php to cater for iframe?

Jason Bobich

Hello Richard,

While you’d be placing this snippet in your child theme’s functions.php, the functionality of it really doesn’t have anything to do with the theme, and shouldn’t interfere in any way. The only thing I can think of is that possibly the iframe’s embedded map will not be responsive? — The example you’re linking to is not. Maybe when you embed your iframe, you’re able to give it a percentage for the width?

And I don’t see any security risk with that other than the fact that now users can put iframes within the tinyMCE editor. So, the security risk would just depend on what you’re including in an iframe, I suppose. But from the sounds of it, that’s not realistically an issue.