Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #7921

    Hello, I have a question about the lightbox/prettyphoto option for products. When I setup a product with the lightbox option, everything works fine when you click the images. But when the lightbox is closed, the user has to click the back button several times to go back to the product category. Every image viewed in the lightbox creates a new url, so getting back to the product category is inconvenient. Is there any way to change that?





    this is rather strange, normally the prettyphoto window will indeed open with a new “url” – but once this window is closed the user returns to the page he started from. For example here: You go through the images and once closed you return to the normal page.

    Am I missing something? Could you link to your page?


    Thanks for the reply. I discovered yesterday that it doesn’t happen in IE 8 or 9, but it does happen in Firefox 8.0.1, Safari 5.1.1, and Chrome 16.0.912.63. All on Windows 7.

    An example would be:

    It would be really great if there was a fix for this problem. Otherwise, it’s really unusable.




    This is the standard prettyphoto behaviour – i.e. see the demo page here: – I’ll ask Kriesi to look into it. It shouldn’t affect your users anyway because all links are fully functional. The lightbox just adds an anker to the url.


    Thanks, that would be great. Unfortunately, I’ve put a ton of time into customizing this theme for a client, only to discover this problem late in development. I really like how the lightbox works, but the site really needs to function properly using just the back button. Most internet browsers/shoppers are going to use it instead of the actual link back to the category.




    I just resolved the issue. After reading the documentation for prettyphoto, I saw that they did this on purpose to allow people to share the individual photos more easily by having a unique URL for each photo. By setting the deeplinking feature to false in prettyphoto.js, it will no longer produce unique URL’s. However, when you click the close button, it still creates one unique URL, so the user still has to push the back button twice. To fix that, I removed the text #!prettyPhoto from line 80 and presto, it’s fixed in current browsers.

    1. Set deeplinking to false

    2. Remove the text, #!prettyPhoto on line 80


    One more thing, I also updated to the latest version of prettyphoto before making these changes. Hopefully this will help out anyone else with this issue :)


    Glad that you found a solution. I’m sure it will help other users too.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Lightbox link issues’ is closed to new replies.