Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #343353

    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!

    #343462

    Same question from me.
    Thanks

    #343979

    Any ideas, guys?

    this would be very helpful to know!

    Thanks again.

    #344775

    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

    • This reply was modified 10 years ago by Elliott.
    #345529

    It works perfectly! :) ,
    Thank you very much!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Social Sharing on Galleries – Enfold v.3.0.2’ is closed to new replies.