WordPress.org

Support

Support » Plugins and Hacks » Pinterest Image Pinner From Collective Bias » [Resolved] [Plugin: Pinterest Image Pinner From Collective Bias] Conflict with BJ Lazy Load

[Resolved] [Plugin: Pinterest Image Pinner From Collective Bias] Conflict with BJ Lazy Load

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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);
    				});

    Plugin Author chriswhittle

    @chriswhittle

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

    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.

    Plugin Author chriswhittle

    @chriswhittle

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

    Plugin Author chriswhittle

    @chriswhittle

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Pinterest Image Pinner From Collective Bias] Conflict with BJ Lazy Load’ is closed to new replies.
Skip to toolbar