Menu

How to use iframes with prettyphoto?

Written by

To use iframe in prettyphoto you need to:

1. Create a link (a href=”#”).

2. Add the rel=”prettyPhoto” attribute “prettyPhoto” to it.

3. Change the href of your link so it points to the URL you want to open.

4. Then add “?iframe=true” as a parameters in your HREF so prettyPhoto knows to open the content in an iframe.

5. Then add the width and height as parameters in your HREF (&width=100&height=100) (Optional).
Note: that the dimensions can be percent based.

code example:
[snippet id=”19″]

Article Categories:
jQuery Plugins

Leave a Reply

Your email address will not be published. Required fields are marked *

Shares