Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7506335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:13:45+00:00 2026-05-29T22:13:45+00:00

I have a gallery which uses Fancybox to load an iFrame inside the lightbox

  • 0

I have a gallery which uses Fancybox to load an iFrame inside the lightbox depending on what parameters are passed through the URL. Everything works fine on the normal gallery pages (as all the images are on the page for fancybox to load in).

My problem is that in another section of the site I have an area which shows the last 3 images added to a number of galleries, which when clicked open up a fancybox in the same fashion as the normal gallery pages, but the next/previous only cycles through these 3 latest images, not all the images in the gallery.

The only solution I can think of at the moment would involve adding hidden links for fancybox to pick up, but I feel this could get messy and hopefully there is a nicer way.

So, is there a way of setting the next/previous URL’s?
Or another solution to this issue that someone has used/can think of?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:13:47+00:00Added an answer on May 29, 2026 at 10:13 pm

    For those interested, the “solution” I have had to use is to output numerous empty anchor tags on the page for each gallery on the page.

    So gallery 1 looks something like:

    <a href="/foo/large/bar1.jpg" rel="gallery1">
      <img src="/foo/thumbs/bar1.jpg" alt="foo bar" />
    </a>
    <a href="/foo/large/bar2.jpg" rel="gallery1">
      <img src="/foo/thumbs/bar2.jpg" alt="foo bar" />
    </a>
    <a href="/foo/large/bar3.jpg" rel="gallery1">
      <img src="/foo/thumbs/bar3.jpg" alt="foo bar" />
    </a>
    <a href="/foo/large/bar4.jpg" rel="gallery1"></a>
    <a href="/foo/large/bar5.jpg" rel="gallery1"></a>
    <a href="/foo/large/bar6.jpg" rel="gallery1"></a>
    ...
    

    It makes the code very messy (often on one page there are hundreds of empty links), but nothing changes on the page, and it doesn’t seem to slow the page down much (if at all), so I guess it’s only me who will really care that much about the empty anchors being there in the markup. IMO it’s not an ideal solution, but it works.

    Again, if someone has a cleaner/nicer solution to this problem, please do share the answer as I for one would be very interested!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an infinite scrolling gallery that uses markup like this (transformed through CSS
All lightbox scripts have the image gallery option which are built like this: <a
I have the video gallery in my database, which has over 200 000 videos.
I have CakePHP app in which I'd like to attach gallery to multiple resources.
I have created a XML image gallery, which displays text in between each slide.
Jquery, AJAX and URL changes... I have a gallery, and when the image change
I have an image gallery that I created by reading the contents inside a
I have a main page which uses a ViewModel I have created: public class
I have an image gallery which loads a detail image, then draws a line
I have an image gallery for which I have configured an Imagecache preset. It's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.