iframe-resizer
iframe-resizer copied to clipboard
WordPress example
Would be great if someone could submit an example to the docs for WordPress, as the question keeps coming up an I have never used WordPress
@davidjbradshaw I'm using this with WordPress (but quite a bit of custom code site-wide). Any use cases/scenarios you keep getting asked about?
@cliffordp just after a simple example, like we have for Vue
https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/use_with/vue.md
I just used this plugin to create a dynamic iframe in WordPress and wrote up a quick set of instructions in markdown that should cover the vast majority of use cases. Feel free to include it in the docs so other WordPress users have a simple example to follow.
Thanks for sharing, @zgieske
Personally, I wouldn't agree with your exact approach, but for those that would like to reference yours, it would be great as a Gist instead of a download file
I'm definitely open to other methods, this just seemed like the best way to get it working with the setup I had and documentation for WordPress was slim. How would you do it differently?
https://gist.github.com/zgieske/d715adc6dd768072dc4cedba28f392d8
I'd have to go back and look at all that went into it, but I'll comment on the gist to avoid noise here