Hi,
is it possible to add social sharing buttons (Facebook & Twitter) on the latest version of Enfold?
I have checked these threads before, but I believe some things have changed on the newest version
https://kriesi.at/support/topic/social-sharing-for-the-image-gallaries/
https://kriesi.at/support/topic/insert-social-button-for-each-pictures/
Thank you for your help!
Same question from me.
Thanks
Any ideas, guys?
this would be very helpful to know!
Thanks again.
Hi!
Try opening up /enfold/js/avia.js and find line 847,
return title;
And change it 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=false&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>';
Make sure that it is all on one line.
And then add this to your custom CSS,
.mfp-title iframe:first-child {
margin-top: 10px;
}
.mfp-title iframe {
margin-top: 5px;
display: block !important;
position: relative !important;
}
Regards,
Elliott
It works perfectly! :) ,
Thank you very much!