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
- Sold between 50 000 and 100 000 dollars
- Author was Featured
- Author had a Free File of the Month
- Exclusive Author
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
mattmatt88 said
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.
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.
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?
I think some one can help you if u show your link.
- Sold between 50 000 and 100 000 dollars
- Author was Featured
- Author had a Free File of the Month
- Exclusive Author
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
mattmatt88 said
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>
Yes, I have initialized it with that code.
Please look at http://alturl.com/bf6mrThe 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
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
});