WordPress.org

Ready to get started?Download WordPress

Forums

Lightboxes and thumbnails (12 posts)

  1. raydevlin711
    Member
    Posted 1 year ago #

    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!

  2. cynnie88
    Member
    Posted 1 year ago #

    The image gallery settings should give you the option to open large image or attachment page.

  3. raydevlin711
    Member
    Posted 1 year ago #

    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).

  4. cynnie88
    Member
    Posted 1 year ago #

    Then add lightbox functionality to the attachment page? I'm not completely sure what you are asking for.

  5. raydevlin711
    Member
    Posted 1 year ago #

    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.

  6. cynnie88
    Member
    Posted 1 year ago #

    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.

  7. raydevlin711
    Member
    Posted 1 year ago #

    ok - try me! ;-)

    Could you tell me the line of code?

  8. cynnie88
    Member
    Posted 1 year ago #

    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.

  9. raydevlin711
    Member
    Posted 1 year ago #

    ok - here is the page in question -

    http://raydevlinphotography.com/mardi-gras

  10. cynnie88
    Member
    Posted 1 year ago #

    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...

  11. raydevlin711
    Member
    Posted 1 year ago #

    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.

  12. raydevlin711
    Member
    Posted 1 year ago #

    OK - I realized why this works. I had actually created a separate page within WordPress to allow it to open up in the lightbox

Topic Closed

This topic has been closed to new replies.

About this Topic