iframe-resizer icon indicating copy to clipboard operation
iframe-resizer copied to clipboard

WordPress example

Open davidjbradshaw opened this issue 4 years ago • 7 comments

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 avatar May 30 '20 13:05 davidjbradshaw

@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 avatar Jun 03 '20 02:06 cliffordp

@cliffordp just after a simple example, like we have for Vue

https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/use_with/vue.md

davidjbradshaw avatar Jun 03 '20 12:06 davidjbradshaw

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.

wpinstructions.md

zgieske avatar Nov 18 '21 17:11 zgieske

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

cliffordp avatar Nov 18 '21 17:11 cliffordp

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

zgieske avatar Nov 18 '21 17:11 zgieske

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

cliffordp avatar Nov 18 '21 18:11 cliffordp