jQuery Pin It Button For Images
[resolved] Customization - Pin it logo on wrong images (4 posts)

  1. Cristescu Bogdan
    Posted 1 year ago #

    First, thank you for this great plugin. I use it on my blog and everything work like sharm but...

    I observe there appears this Pin it button on some images but not in post content. I have this script to call random posts, but only the title and the thumbnail. You can see the example on this page:


    The script that I use is outside the loop:

    $category = get_the_category();
    $category_id = $category[0]->cat_ID;
    <?php $args = array( 'posts_per_page' => 6, 'orderby' => 'rand', 'cat' => $category_id, 'meta_key' => '_thumbnail_id', 'exclude' => $post->ID ); ?>
    $myposts = get_posts( $args );
    foreach ( $myposts as $post ) : setup_postdata( $post ); ?>
    <?php if ( function_exists( 'get_the_image' ) ) {
      $imagepost = get_the_image( array( 'echo' => false, 'thumbnail_id_save' => true, 'image_scan' => true, 'size' => 'full' ) ); } ?>
    <?php if ($imagepost == null) { } else { ?>
    <?php if ( function_exists( 'get_the_image' ) ) { get_the_image( array( 'thumbnail_id_save' => true, 'link_to_post' => false, 'image_scan' => true, 'height' => '178', 'width' => '178', 'image_class' => 'randompost-image', 'size' => 'thumbnail' ) ); } ?>
    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    <?php } ?>
    <?php endforeach;

    It s a clean script but you can see, there appear this pin it button but wrong. On post images when you re over the image, appear the button, but on my script the button is there and when the mouse is over the image dissapear.

    I think there is a problem. Can you help me to solve this problem? Maybe you can fix something on the next update of the plugin!

    Thank you for your work!


  2. Marcin Skrzypiec
    Plugin Author

    Posted 1 year ago #

    Please check the newest version of the plugin, it should fix this issue. Let me know!

  3. Cristescu Bogdan
    Posted 1 year ago #

    Thank you very much for that fix. Yes, the new version of the plugin solved the issue.

  4. Marcin Skrzypiec
    Plugin Author

    Posted 1 year ago #

    You're welcome. If you enjoy the plugin, I would really appreciate a review!

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