prettyphoto

prettyPhoto lightbox social tools: all images have the same number of Facebook likes

偶尔善良 提交于 2019-12-11 02:54:46
问题 Background: I have a site using a prettyPhoto lightbox to display photos. I've enabled social tools to display the 'tweet' and Facebook 'like' buttons on the lightbox, in hope to enable the ability to 'like' only the current photo being displayed to the one viewing it. Problem: The Facebook 'like' button actually results in all photos in the same gallery being liked: all photos display the same number of likes in the lightbox; and on Facebook, the user's 'like' in their news feed or recent

jQuery prettyPhoto not working with Sponsor Flip Wall plugin

删除回忆录丶 提交于 2019-12-10 12:09:33
问题 I’m using Sponsor Flip Wall for displaying references on my webpage. Every reference should have few pictures previewed with Pretty Photo lightbox. At first flip side there is a reference picture, and after it's flipped over, I have reference description and below it a link for the gallery... <?php // Each sponsor is an element of the $sponsors array: $reference = array( array('hram_hrista_spasitelja','Najzahtjevnija građevina u regiji u posljednje vrijeme. 23 000 elemenata kompletno

How to disable prettyPhoto?

狂风中的少年 提交于 2019-12-04 07:41:30
I now how to enable prettyphoto, but the problem is how to disable? Here i enable prettyPhoto $(document).ready(function(){ $("a[rel^='prettyPhoto']").prettyPhoto({ social_tools:false, }); }); How to disable? $("a[rel^='prettyPhoto']").unbind('click'); $("a[rel^='prettyPhoto']").attr('rel', ''); Just unbind click and rel attribute. Sadly the prettyPhoto does not seem to have a "turnOff" option. If you are not using any other click event handlers for those links, @Yenne Info 's answer is just fine. If you don't want to unbind all click event handlers: Looking through the prettyPhoto code - at

Disable prettyPhoto WordPress (Visual Composer)

两盒软妹~` 提交于 2019-12-04 03:50:37
Hi I'm trying to get WP Featherlight setup as the default lightbox, right now Visual Composer is using prettyPhoto. So I need to disable it, so that WP Featherlight will overwrite it. I asked wpbakery and I got this response. Hello, you can actually overwrite prettyphoto by adding prettyPhoto() in your functions.php and call another lightbox. And from the plug-in author I got this: Once prettyPhoto has been disabled, you shouldn't need to do anything else to lightbox images on the site. So it's pretty clear what I need to do. Disable prettyPhoto. But I don't know how to do that. Can I add a