Hi All,

Saw this gem in a related WGAN Forum discussion by @Metroplex360 ...

iFRAMELY for Responsive Embed Code

Quote:
Originally Posted by @Metroplex360
Another tip -- that IFRAME has a fixed width and height. It is DEFINITELY worth making it responsive to the screen size and area it's being placed in.

Easy way to get halfway there -- swap that width to "100%". Now it's horizontally responsive.

HOWEVER. Vertically it won't resize and you may want to tackle that too so that it looks great on mobile.

Here's a great tutorial.

https://benmarshall.me/responsive-iframes/

You might need to install the Advanced Custom CSS plugin. if you want an easy place to copy + paste CSS code.

--

OR, check out the IFRAMELY plugin -- it can do this:



Got a tip to share? Please start a new discussion.

Happy New Year,

Dan