Tagged: Lightbox, prettyphoto, social
-
AuthorPosts
-
March 6, 2014 at 6:07 pm #233310
Hi,
How can I add social share buttons to photo lightboxes (i.e. to share/tweet a given photo)?
I found this thread:
https://kriesi.at/support/topic/lightbox-social-media-share-links/I installed & configured the Socialize plugin, but it doesn’t show up in the lightboxes. Do I need to add some code somewhere?
March 6, 2014 at 6:52 pm #233351Actually: I’ve done a bit more research on this. PrettyPhoto (which you are using in Enfold) comes with Facebook, Twitter and Google+ share buttons since version 3.1.1:
http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/Is there a way of activating them in Enfold??
March 7, 2014 at 5:09 am #233578Hey!
Please edit js > avia.js, find this code:
elements.prettyPhoto({ social_tools:'',slideshow: 5000, deeplinking: false, overlay_gallery:false, default_width: ww, default_height: wh });
Replace it with:
elements.prettyPhoto({ slideshow: 5000, deeplinking: false, overlay_gallery:false, default_width: ww, default_height: wh });
This will activate the twitter and facebook buttons.
Cheers!
IsmaelMarch 7, 2014 at 11:28 am #233687Thanks Ismael :)
I noticed in the js > prettyphoto folder there are 5 different themes for prettyphoto. Is it also possible to activate any of these themes?March 7, 2014 at 3:44 pm #233762Hi!
Yes, please refer to my post here https://kriesi.at/support/topic/change-layout-prettyphoto/#post-173889
Cheers!
YigitApril 7, 2014 at 6:15 pm #248345Is there a way to make it so that we can turn these features on and control elements like deep linking and also the addition of the Pinterest button all from within the admin panel? Otherwise we have to remember to make these changes on updates etc, it seems intuitive that most people would want these on their lightbox anyway…
April 7, 2014 at 9:59 pm #248493Hey!
I do not think that it is possible, but you can request such feature here – https://kriesi.at/support/enfold-feature-requests/
Cheers!
YigitNovember 5, 2014 at 12:48 pm #346466Hi,
after the many good releases, the avia.js looks totally different.What’s code today to switch on the share buttons in prettyphoto?
Thanks in advance,
Gruß SebastianNovember 5, 2014 at 9:45 pm #346772Hey!
For the latest version of Enfold try this out, https://kriesi.at/support/topic/social-sharing-on-galleries-enfold-v-3-0-2/#post-344775.
Cheers!
ElliottOctober 27, 2015 at 3:33 pm #525512Hello
Could you please give the code for using SHARE Button instead of LIKE Button?
Also It is possible after SHARING the click on Facebook to return to the site URL instead of picture url?Thanks
October 28, 2015 at 4:45 pm #526272Hi!
Not sure if it will work but you can try changing the code to this.
return title + '<iframe src="//www.facebook.com/plugins/like.php?href='+encodeURIComponent(item.el.find('img').attr('src'))+'&width&layout=button_count&action=like&show_faces=false&share=true&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowTransparency="true"></iframe><iframe id="tweet-button" allowtransparency="true" frameborder="0" scrolling="no"src="http://platform.twitter.com/widgets/tweet_button.html?url='+encodeURIComponent(item.el.find('img').attr('src'))+'&count=horizontal"style="width:110px; height:20px;"></iframe>';
Cheers!
ElliottOctober 28, 2015 at 6:55 pm #526347Hey..it works fine but still
can the return link set directly to my homepage instead of post url?eq. – clik on facebook post now directs me to: http://lovemark.ro/wp-content/…… instead of http://www.lovemark.ro
Thanks in advance.
October 31, 2015 at 3:35 pm #527910Hi!
It does not look like there is an option for that, https://developers.facebook.com/docs/plugins/like-button.
Cheers!
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.