ThemeForest

Using Pretty photo in a WP Theme

2942 posts
  • Has been a member for 3-4 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Blog Post
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 100 and 499 items
  • Australia
  • Referred between 200 and 499 users
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!

1 year ago
2698 posts
  • Has been a member for 1-2 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Forum Superstar
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 1 and 9 items
  • Europe
  • Referred between 50 and 99 users
duotive says
add a rel with jquery before the call for pretty photo.

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

1 year ago
2942 posts
  • Has been a member for 3-4 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Blog Post
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 100 and 499 items
  • Australia
  • Referred between 200 and 499 users
DDStudios says

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

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

I love you. :)

1 year ago
2698 posts
  • Has been a member for 1-2 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Forum Superstar
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 1 and 9 items
  • Europe
  • Referred between 50 and 99 users
duotive says


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

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

I love you. :)

:)

1 year ago
2942 posts
  • Has been a member for 3-4 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Blog Post
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 100 and 499 items
  • Australia
  • Referred between 200 and 499 users
DDStudios says

Any idea why the thumb only load to the half?

1 year ago
2698 posts
  • Has been a member for 1-2 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Forum Superstar
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 1 and 9 items
  • Europe
  • Referred between 50 and 99 users
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.

1 year ago
2942 posts
  • Has been a member for 3-4 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Blog Post
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 100 and 499 items
  • Australia
  • Referred between 200 and 499 users
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.

1 year ago
2698 posts
  • Has been a member for 1-2 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Forum Superstar
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 1 and 9 items
  • Europe
  • Referred between 50 and 99 users
duotive says

You’re welcome :)

1 year ago
by
by
by
by
by