2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

The way I have it set up is that I create a gallery and then I insert it in a page .. when I click on the little thumb, everything work’s fine, prettyphoto opens it but it’s not acting like a “gallery” because the rel isnt applied like it’s supposed to be (prettyPhoto[galleryX]).

Usually I asign it manually but how can I make it so that every img in a gallery have the same rel?

Thanks guys!

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+6 more
duotive says
add a rel with jquery before the call for pretty photo.

$(".gallery-item a").attr('rel','gallery[modal]');

2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

add a rel with jquery before the call for pretty photo.

$(".gallery-item a").attr('rel','gallery[modal]');

I love you. :)

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+6 more
duotive says


add a rel with jquery before the call for pretty photo.

$(".gallery-item a").attr('rel','gallery[modal]');

I love you. :)

:)

2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

Any idea why the thumb only load to the half?

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+6 more
duotive says

yes. because the images that open in the gallery are wide screen. the gallery uses the same images you have under the modal, i want a fix for this too. the only solution is to add images that are not wide for the galleries.

2952 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+10 more
DDStudios says

yes. because the images that open in the gallery are wide screen. the gallery uses the same images you have under the modal, i want a fix for this too. the only solution is to add images that are not wide for the galleries.

Oh, make sense :)

Thanks mate.

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+6 more
duotive says

You’re welcome :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by