63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
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

1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 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.

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
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.

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
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?

439 posts
  • Bought between 50 and 99 items
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 5 000 and 10 000 dollars
Pixelous says

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

1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 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>
63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
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

782 posts
  • Exclusive Author
  • India
  • Has been a member for 5-6 years
  • Beta Tester
  • Referred between 1 and 9 users
  • Microlancer Beta Tester
laranz says

May be this helps….

63 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
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