82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
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

1689 posts Envato Elite Author
  • Affiliate Level 2
  • Author Level 8
  • Collector Level 1
  • Top Monthly Author
+8 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.

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
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.

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
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
  • 3 Years of Membership
  • Author Level 4
  • Collector Level 3
  • Exclusive Author
Pixelous
says

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

1689 posts Envato Elite Author
  • Affiliate Level 2
  • Author Level 8
  • Collector Level 1
  • Top Monthly Author
+8 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>
82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
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

822 posts
  • 6 Years of Membership
  • Beta Tester
  • India
  • Exclusive Author
+1 more
laranz
says

May be this helps….

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
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