Monday 9 September 2013

How to Add Pinterest Boards with Pin it buttons to your Wordpress website

!!note: this has been updated with version 1.01 of Pinterest to Wordpress by DeanDev

The mission here was to help make a website that intergrates with the clients Pinterest boards. 
Ideally I'd of liked to have the pages look as much like Pinterest as possible but have had to make some concessions because of time and investment. 

Here's an image of what I've achieved.



The plugins I've used are ->

Pinterest to Wordpress Plugin

I would have liked the Pin it button to have appeared as a roll over on the images like on Pinterest - as in this plugin Pinterest Pin it Button for Images but as the gallery on Pinterest to Wordpress Plugin uses script rather than '' tags it doesn't work .

So I used Pinterest "Pin it" Button

and used the following hack to show on Pinterest to Wordpress Plugin 

OPEN
wp-content/plugins/pinterest-to-wordpress/shortcodes.php

on line 103 FIND

$desc='
'.str_replace('/search', 'http://pinterest.com/search', urldecode($ttls[$i]) ) .'
';
REPLACE WITH
$pinitButton = do_shortcode('[pinit]');
     
     $desc='
'.str_replace('/search', 'http://pinterest.com/search', urldecode($ttls[$i]) ) .'
'.$pinitButton.'
';
You should also add some CSS to your style.css . I've used
div.PinItButton{
float: right;
margin-right: 4%;
}

No comments: