Want to work with us? We're on the lookout for a Magento Developer.

We're hiring

Adding a close button to PrettyPhoto

Web Bureau

12 January 2011 by Web Bureau

There might be other better solutions for this but this works for me when trying to close a prettyPhoto iframe.

To redirect the user back to the homepage you can use this:

onclick=" = '/';"

To redirect the user back to the page behind the lightbox:

onclick=" = window.parent.location;"

If you have a better solution I would be interested to hear!

Grow your businessStart a project with us today.