Gallery Problems
URL to the page in question:
http://lionscrappiecontest.org/2014_crappie_contest_gallery/
-
When you visit either of my gallery pages http://lionscrappiecontest.org/2014_crappie_contest_gallery/ or http://lionscrappiecontest.org/2014-magic-night-gala-gallery/ they work great… until you try to leave or close a picture you opened. Then I get an error that says “you have to specify size. Add ? lightbox……… at end of url”. I have no idea what it means or how to fix it but we have about 150 people a day going to the site and would really like it to work correctly. Please let me know if you think you can help.
Hello Courtney,
Sorry for the trouble there. When you’re creating a WordPress gallery, there’s an option to choose what the thumbnails link to. Make sure to choose to have them link to the file instead of the attachment page. That should let the images open up in the lightbox like they should instead of giving the error message.
If you have any trouble, let me know.
Thanks,
Bill
Bill,
I did change it to the attachment but still have the problem. It even says it if you try to click on another page in the menu.
Bill,
I did change it to the attachment but still have the problem. It even says it if you try to click on another page in the menu from the gallery page.
Sorry about that. Here’s a change that’s part of the next theme update. You can go on and make it and that should help here.
- Go to the Appearance section in your WordPress control panel and select Edit.
- From the list of files on your right, choose custom-js.php
- Find this spot:
jQuery('.gallery a').addClass('lightbox');
jQuery('.gallery a').attr('rel', 'gallery');
and change it to this:
jQuery('div.gallery a').attr('rel', 'gallery');
jQuery('div.images a').attr('rel', 'gallery');
- Save your changes.
See if that doesn’t make a difference for you. Let me know if you have any trouble.
That worked great. Thank you
Fantastic. Have a great day Courtney and let me know if you need anything else.
- The topic ‘Gallery Problems’ is closed to new replies.