80 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

1680 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.

80 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.

80 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
  • Sells items exclusively on Envato Market
Pixelous says

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

1680 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>
80 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

810 posts
  • Has been part of the Envato Community for over 6 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….

80 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
});

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