WordPress.org

Ready to get started?Download WordPress

Forums

Pinterest Image Pinner From Collective Bias
[resolved] Conflict with BJ Lazy Load (6 posts)

  1. vitalvital
    Member
    Posted 2 years ago #

    With BJ Lazy Load plugin enabled lazy-loaded images are not showing on pinterest popup.
    Normally loaded images are pinnable.

    http://wordpress.org/extend/plugins/cb-pinterest-image-pinner/

  2. vitalvital
    Member
    Posted 2 years ago #

    Update/Fix to the issue.

    in /scripts/main.js move the image src-getting and the pinterest URL-creation code to the click function:
    Find this:

    jQuery('#' + theID + " a").click(function(event) {
    					event.preventDefault();
    					pin_this(href);
    				});

    Replace with this and optionally comment out prior media and href variable declarations:

    jQuery('#' + theID + " a").click(function(event) {
    					var media = jQuery(this).prev("img").attr("src");
    					media = encodeURI(media);
    					var href = 'http://pinterest.com/pin/create/button/?url=' + url + '&media=' + media + '&description=' + description;
    					event.preventDefault();
    					pin_this(href);
    				});
  3. chriswhittle
    Member
    Plugin Author

    Posted 2 years ago #

    Rock on! I will get this updated as soon as I have some time for the next version thanks!

  4. nichetank
    Member
    Posted 2 years ago #

    I am also having a problem with "Lazy Load" plugin (a different lazy load plugin). The lazy loaded plugins don't have the pin it button, while the images above the fold do.

  5. chriswhittle
    Member
    Plugin Author

    Posted 1 year ago #

    Got a version coming out today with vitavitas changes that should fix this... Sorry for the lengthy pause just been busy.

  6. chriswhittle
    Member
    Plugin Author

    Posted 1 year ago #

    1.7 is released. I just basically used your code but had to tweak it so it hopefully it should be good to go.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.