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 8676299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:09:33+00:00 2026-06-12T20:09:33+00:00

I am using PrettyPhoto Jquery plugin as a Lightbox for displaying images on my

  • 0

I am using PrettyPhoto Jquery plugin as a Lightbox for displaying images on my site, when the user clicked the thumbnail, the image appear in an overlay DIV.

By default, PrettyPhoto works with anchor links (<a>) that surrounds the image. The anchor has the links to the original size / larger version of the image. I don’t want to use <a> tag because I prefer that those images won’t be indexed and don’t wont to use nofollow. Is there an option to replace the <a> with for example and achieve the same results?

I tried it myself but it didn’t trigger the overlay div with the original image as intended. Maybe there is something that I can do in the code to make it work.

Again, Don’t want:

 <a href="original-image.jpg"><img src="thumb,jpg /></a>

Do want:

 <span data-source="original-image.jpg"><img src="thumb.jpg /></span>

The original file non-compressed Jquery plugin can be downloaded via this link

Another alternative that might be good is to keep the anchoe but use href="#" and put the original image URL in another attribute, like ‘data-source’ and read it from there. This is even a better option.

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-06-12T20:09:34+00:00Added an answer on June 12, 2026 at 8:09 pm

    Try to change this line in the plug-in

    pp_images = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel) != -1) return $(n).attr('href'); }) : $.makeArray($(this).attr('href'));
    

    to

    pp_images = (isSet) ? jQuery.map(matchedObjects, function(n, i){ if($(n).attr(settings.hook).indexOf(theRel) != -1) return $(n).attr('data-source'); }) : $.makeArray($(this).attr('data-source'));
    

    EDIT: and

    set_position = jQuery.inArray($(this).attr('href'), pp_images); // Define where in the array the clicked item is positionned
    

    to

    set_position = jQuery.inArray($(this).attr('data-source'), pp_images); // Define where in the array the clicked item is positionned
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using prettyphoto jquery plugin for lightbox. When somebody clicks on a link it
I'm using the PrettyPhoto jQuery plugin for an image gallery, and I'd like to
I'm using jquery.prettyPhoto for displaying photo-albums on my site. I activated the social_tools to
I'm using the JQuery prettyPhoto lightbox clone, and it works great, but I have
I am using the fantastic PrettyPhoto Lightbox, a Jquery lightbox clone. To launch a
I have been using jQuery prettyPhoto plugin to show inline html content. This content
I am opening a an ajax window using prettyPhoto: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ This is my link
I have a problem using jQuery and prettyPhoto (plugin for wordpress)! My problem is
I'm using PrettyPhoto lightbox for an image gallery. When the image pops up, Twitter
Hi I am using Jquery PrettyPhoto and want to always show the Next and

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.