WordPress.org

Forums

jQuery Pin It Button For Images
[resolved] not working on featured images (10 posts)

  1. thesofialife
    Member
    Posted 1 year ago #

    how can I get this plugin to work on my featured images? It doesn't seem to work with them. Also where would I add my specific class to the image if it's a featured image?

    http://portocreative.com/blog/ on the 2nd blog post, the one with the quote image is where I'm looking for it to work.

    Thanks!
    Sofia

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

  2. Marcin Skrzypiec
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    please change the default selector (div.jpibfi_container img) in settings to div.post_box img. That should fix the issue. Let me know!

  3. thesofialife
    Member
    Posted 1 year ago #

    Right, I didn't even think of changing that code!

    It totally worked! Thank you so so much!

    Sofia

  4. Marcin Skrzypiec
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome.

  5. thesofialife
    Member
    Posted 1 year ago #

    will that class vary from theme to theme? Because I just looked in firebug and I can't even find that class in the css.
    Just wondering for future sites>?

  6. thesofialife
    Member
    Posted 1 year ago #

    and also of course, I don't understand jquery so that may be why I wouldn't have found it.

  7. Marcin Skrzypiec
    Member
    Plugin Author

    Posted 1 year ago #

    It depends on how the theme is written. In many themes you wouldn't have to change the selector because it will work properly out of the box (my plugin dynamically adds the given class to a container). In other themes the selector has to be changed and yes, that class will vary from theme to theme.

  8. thesofialife
    Member
    Posted 1 year ago #

    Awesome! thanks again for your help and the info. I'll be sending you a donation soon.

  9. mandipluitel
    Member
    Posted 1 year ago #

    hi @mrsztuczkens i used the div.post_box img code where you said earlier but its not working at all in my featured image nor in my post images.

    any help?

    Regards

  10. mandipluitel
    Member
    Posted 1 year ago #

    my mistake again :) thanks for the plugin it worked

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • jQuery Pin It Button For Images
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic