Murat Tekmen
asked 11 years ago

Pinterest

Hello, how can i add the Pinterest (pin) button on the social sharing section in posts? Please help me, thanks.

3 Answers
shae101s
answered 11 years ago

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=&lt;?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

Murat Tekmen
replied 11 years ago

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,

Murat Tekmen
replied 11 years ago

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/

shae101s
replied 11 years ago

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.

Jackie Lord
answered 11 years ago

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!

 

shae101s
replied 11 years ago

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.

DominicStaff
answered 11 years ago

@Shae101s !
Thanh you. I appreciate it.

@ Murat !
I think you have resolved this issue.

Powered by DW Question & Answer Pro