WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Pin It Button For Images
Pins thumbnails instead of linked photo (4 posts)

  1. pleasureinstitute
    Member
    Posted 10 months ago #

    It works, but it's pinning thumbnails from my gallery instead of the actual image. I have been struggling with jquery selectors for hours and I just can't get it to pick the href of the link instead of the src of the img tag.

    See: http://bit.ly/15eiH6d

    I have tried so many things. Right now the Image Selector option is set to something other than the default and it doesn't work, but I don't think that should hinder troubleshooting. I've been trying to use the ngg-gallery-thumbnail class and cboxElement from Colorbox to get to the image url.

    http://wordpress.org/plugins/jquery-pin-it-button-for-images/

  2. mrsztuczkens
    Member
    Plugin Author

    Posted 10 months ago #

    The plugin pins thumbnails because it always pins the image on which it's rendered, no matter where the image links to. So when you put a thumbnail in a post and hover over it, it pins the thumbnail, just like any other image. For now the plugin doesn't offer pinning linked images.

    The selector is there to select images that should have the button on, nothing more.

  3. pleasureinstitute
    Member
    Posted 10 months ago #

    I was afraid of that. Is there a reason jquery can't be used to pick an a tag instead of an img tag? It sounds like an easy thing to change, but I don't know. Maybe I'll try to figure it out later.

  4. pleasureinstitute
    Member
    Posted 10 months ago #

    Oh I misunderstood you, never mind.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.