Title: Lightboxes and thumbnails
Last modified: August 20, 2016

---

# Lightboxes and thumbnails

 *  [raydevlin711](https://wordpress.org/support/users/raydevlin711/)
 * (@raydevlin711)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/)
 * Hi – I have created a number of photography galleries, with thumbnail image sizes
   on the main page of each gallery. Clicking on the thumbnail opens a lightbox (
   i am using Shadowbox).
 * However, it would probably make for a better user experience if clicking on the
   thumbnail opened up the attachment page showing more image details (captions,
   etc) and a larger size image. I would like the user to be able to access the 
   lightbox by clicking on the larger image page instead of the thumbnail.
 * Question – is there a way to do this without creating a separate page / URL for
   each image? I think this would likely create SEO issues with duplicate content
   in addition to cluttering up my page-tab on the dashboard.
 * Thanks in advance for any help!

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [cynnie88](https://wordpress.org/support/users/cynnie88/)
 * (@cynnie88)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048066)
 * The image gallery settings should give you the option to open large image or 
   attachment page.
 *  Thread Starter [raydevlin711](https://wordpress.org/support/users/raydevlin711/)
 * (@raydevlin711)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048067)
 * Yes, it does. However, after clicking through from the thumbnail page to the 
   large image page, the image will not open in a lightbox (when i click on the 
   image on the larger image page).
 *  [cynnie88](https://wordpress.org/support/users/cynnie88/)
 * (@cynnie88)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048068)
 * Then add lightbox functionality to the attachment page? I’m not completely sure
   what you are asking for.
 *  Thread Starter [raydevlin711](https://wordpress.org/support/users/raydevlin711/)
 * (@raydevlin711)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048069)
 * understood. here’s what i need.
 * 1.click on thumbail > opens a larger image in attachment page; then
 * 2.click on larger image in attachment page > opens in lightbox.
 * I can do #1, but when i click on the image in the attachment page, it opens a
   separate window on a standard web page, rather than a lightbox.
 * The problem is that there doesn’t appear to be an option in Shadowbox to change
   the setting specifically for the attachment page. Infact, i’m not even sure how
   i edit the attachment page itself.
 * Thanks for your help so far.
 *  [cynnie88](https://wordpress.org/support/users/cynnie88/)
 * (@cynnie88)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048070)
 * There is a very simple solution that would only require adding one line of code
   to your site scripts file (assuming you have one). But if you aren’t able to 
   or aren’t comfortable doing it, then there isn’t much I can do to help you.
 *  Thread Starter [raydevlin711](https://wordpress.org/support/users/raydevlin711/)
 * (@raydevlin711)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048072)
 * ok – try me! 😉
 * Could you tell me the line of code?
 *  [cynnie88](https://wordpress.org/support/users/cynnie88/)
 * (@cynnie88)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048073)
 * It’s hard without seeing the site, I would first need to see the attachment page
   to be able to target the image, and the shadowbox script to correctly initialize
   it.
 *  Thread Starter [raydevlin711](https://wordpress.org/support/users/raydevlin711/)
 * (@raydevlin711)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048074)
 * ok – here is the page in question –
 * [http://raydevlinphotography.com/mardi-gras](http://raydevlinphotography.com/mardi-gras)
 *  [cynnie88](https://wordpress.org/support/users/cynnie88/)
 * (@cynnie88)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048075)
 * The thumbnail goes to the attachment page and the large image loads in the lightbox
   when I click on it. It seems to be doing everything you want already…
 *  Thread Starter [raydevlin711](https://wordpress.org/support/users/raydevlin711/)
 * (@raydevlin711)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048077)
 * Yes – you’re right – it does seem to. I must’ve missed the solution it when i
   was have issues with it in the first place.
 * Thanks for your help.
 *  Thread Starter [raydevlin711](https://wordpress.org/support/users/raydevlin711/)
 * (@raydevlin711)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048084)
 * OK – I realized why this works. I had actually created a separate page within
   WordPress to allow it to open up in the lightbox

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Lightboxes and thumbnails’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 2 participants
 * Last reply from: [raydevlin711](https://wordpress.org/support/users/raydevlin711/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/lightboxes-and-thumbnails/#post-3048084)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
