Viewing 8 posts - 1 through 8 (of 8 total)
  • #20001
    urba
    Member
    Post count: 28

    Hi,
    In my portfolio item page, I have included the social sharing icons but I noticed that Pinterest was not there.

    I found the code in the single-portfolio.php file about the social sharing icon.

    What would be the code line for Pinterest?

    Thanks!

    #20166
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    It seems like the code is not displaying correctly here, follow this gist.

    https://gist.github.com/laranz/a3a81cb3b65d04919194

    Let me know, what you got.

    Thanks,
    laranz.

    #20203
    urba
    Member
    Post count: 28

    Thank you Laranz!
    I have added the code line you gave me for the Pinterest icon and it worked.
    The Pinterest icon is now at the end of the other.

    The only thing is, when I click on it to pin one of the images on my page, the usual menu of Pinterest open (in the same page) but there is no image… The little image window on the Pinterest menu is empty.

    Maybe it’s because I used a slider to show my images?

    #20459
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Yes, The code I gave take the featured image of the post and display on the pinterst image area.

    Thanks,
    laranz.

    #47478
    urba
    Member
    Post count: 28

    Hi Laranz,
    I had to redo the process for the Pinterest button on my portfolio page since I’ve updated for the Neighborhood’s new version. But sadly, the code you gave me doesn’t work anymore. Is there something that changed? Thanks!

    #48883
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi Urba,

    Did you try this.

    <li><?php $pinterestimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?><a href="http://pinterest.com/pin/create/button/?url=<?php echo urlencode(get_permalink($post->ID)); ?>&media=<?php echo $pinterestimage[0]; ?>&description=<?php the_title(); ?>" class="pin-it-button" count-layout="vertical"><i class="icon-pinterest"></i></a></li>

    It should work, After putting that if that didn’t show, can you show me a link to your website?

    Thanks,
    laranz.

    #50000
    urba
    Member
    Post count: 28

    Hi Laranz,
    Thank you for your help. Sadly, this new code didn’t work for me but I have decided to use the jQuery PinIt Button For Images plugin instead.

    Problem solved.
    Again, thanks for help. : )

    #50791
    Melanie – SUPPORT
    Member
    Post count: 11032

    Fantastic, glad to hear that!
    Thank you for posting back and let us know if there’s anything else we can do.

    All the best!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register