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; ?>&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
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:
Using it to add “Pin It” button to the Social Sharing on your website.
Thanks and Cheers!
Thanh you. I appreciate it.
@ Murat !
I think you have resolved this issue.
Please login or Register to submit your answer