Hello, how can i add the Pinterest (pin) button on the social sharing section in posts? Please help me, thanks.
I figured out a way to add the button to the DW Focus theme:
<li><i class=”icon-pinterest”></i><?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(); ?>” count-layout=”vertical”>Pin This Article!!</a></li>
It will look just like the Email this button. I added mine right below the Linkedin list item in the functions.php code. Hope that helps Murat
You are simply amazing Shae101s, thank you very much for the code. It works! I hope DW staff can help as much as you can.. Have a great day,
It works great but look not good mate, can you help me out please? What is your site adress? You can check mine and see how it looks: http://www.vuub.net/23/10/2013/apple-etkinliginde-tanitilan-tum-urunler/
I’m not sure why it does that on yours. You added the code exactly as is above? I didn’t add anything extra other than the above code directly under the list item for LinkedIn. Hopefully it clears up for you.
In DW Focus, please open fuction.php file and go to function: dw_focus_post_actions
And then, you try to use Widget Builder of the Pinterest here:
http://business.pinterest.com/widget-builder/#do_pin_it_button
Using it to add “Pin It” button to the Social Sharing on your website.
Thanks and Cheers!
Is there any way you guys can list step by step instructions..simply going to the pinterest page doesn’t help at all sadly, because they don’t really list anything for implementing it into a theme over on the pinterest site.
@Shae101s !
Thanh you. I appreciate it.
@ Murat !
I think you have resolved this issue.
Please login or Register to submit your answer