WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Cristescu Bogdan
    Member
    Posted 9 months 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:

    http://blog.jorjette.ro/cele-5-elemente-feng-shui/

    The script that I use is outside the loop:

    <?php
    $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 ); ?>
    
    <ul>
    <?php
    
    $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 { ?>
    <li>
    <?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>
    </li>
    <?php } ?>
    
    <?php endforeach;
    wp_reset_postdata();?>
    
    </ul>

    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!

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

  2. mrsztuczkens
    Member
    Plugin Author

    Posted 9 months ago #

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

  3. Cristescu Bogdan
    Member
    Posted 9 months ago #

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

  4. mrsztuczkens
    Member
    Plugin Author

    Posted 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic