67 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

Hi there,

I’m creating my first own theme at the moment. I wanted to implement prettyPhoto, tried a lot of tutorials but I can’t get it to work.

It just does nothing, although I integrated the CSS - and the jS-File, and I also used rel=”prettyPhoto” in the “a” tag. I also loaded jQuery.

It just follows the href-link, no popup etc.

Do you have an idea what could be wrong or have a nice tutorial?

thank you

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

It just does nothing, although I integrated the CSS - and the jS-File, and I also used rel=”prettyPhoto” in the “a” tag. I also loaded jQuery.

Pretyphoto also has to be initiated, in case you forgot that.

Download the examples from prettyphoto page, you cant go wrong there.

67 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

It’s very strange. I tried it also with this google maps example: http://www.no-margin-for-errors.com/blog/2010/09/28/tutorial-opening-custom-content-in-prettyphoto/

with the index.html it works. If I copy exactly the same code in my index.php which is in the same folder and with NO additinal code in it, no popup opens. Nothing happens!

Do you have any idea? I’ve spent the whole day on this issue.

67 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

I can’t use the prettyPhoto forum, because when I sign up, I don’t receive any authentification emails, even if I let them resend or I do a resign.

So, I hope you can help

@Tean: Which code do you mean to initiate?

438 posts
  • Has been part of the Envato Community for over 2 years
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in Europe
+1 more
Pixelous says

I think some one can help you if u show your link.

1677 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

I can’t use the prettyPhoto forum, because when I sign up, I don’t receive any authentification emails, even if I let them resend or I do a resign.

So, I hope you can help

@Tean: Which code do you mean to initiate?

Here:

http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/documentation/

<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto();
  });
</script>
67 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

Yes, I have initialized it with that code.

Please look at http://alturl.com/bf6mr

The index.php is exactly the same as the index.html from the example. with index.html it works, with index.php (included in wordpress) it doesn’t. The paths are also the same

791 posts
  • Has been part of the Envato Community for over 5 years
  • Has been a beta tester for an Envato feature
  • Located in India
  • Sells items exclusively on Envato Market
+1 more
laranz says

May be this helps….

67 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market
mattmatt88 says

solved. I needed “var $j = jQuery.noConflict();” in my custom js-file and not the standard initialize-code but });

$j(function() {    
$j("a[rel^='prettyPhoto']").prettyPhoto({
        animationSpeed:'400',
        theme:'pp_default',
        deeplinking: false
});
by
by
by
by
by
by