WordPress.org

Forums

Digg Digg
Digg Digg and Infinite Scroll (3 posts)

  1. benjaminstrange
    Member
    Posted 1 year ago #

    I'm currently using the Graphene theme v1.91, with infinite scroll enabled. Digg Digg's icons show on the first few blog entries, but fails to load on any subsequently loaded entries. Please advise.

    http://www.strangeguitarworks.com

    http://wordpress.org/plugins/digg-digg/

  2. guilecc
    Member
    Posted 1 year ago #

    Hi there!

    First of all you have to edit dd-class.php in order to take off the <script> tag of each social network that you use (URL_API).

    Then you have to go on wordpress > options> infinite scroll and put some codes at Callback input.

    In my case, twitter and g+1:

    gapi.plusone.go();
    
    twttr.widgets.load();

    For facebook just use iframe option and should be ok.

    For pinterest I'm trying to figure out and soon I got the anwser I'll post here.

    Good luck!

  3. guilecc
    Member
    Posted 1 year ago #

    Well, for pinterest you have to use the main js.
    <script src="//assets.pinterest.com/js/pinit_main.js" type="text/javascript"></script>

    and then force reload the script at Callback, since the function build its not "public"

    pinJs = $('script[src*="assets.pinterest.com/js/pinit_main.js"]');
    pinJs.remove();
    js = document.createElement('script');
    js.src = pinJs.attr('src');
    js.type = 'text/javascript';
    document.body.appendChild(js);

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Digg Digg
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.