18 February 2016

// // Leave a Comment

How to add Pinterest button in blogger

Images have always played a prominent role in attracting new visitors through search engines like Google and Bing. But when Pinterest decided to enter the social media mix, it upped the ante in a big way. Pinterest lets blog owners use their service to add a 'pin' to photos or content images on the site. When visitors of that site see a photo they like, they can choose to click on the red Pinterest button for Blogger, and add it to their Pinterest account. The person who pressed your Pinterest button for Blogger can now see your photo on their dashboard, and share it with friends or followers on the service. They can also come across this photo when users add keywords or category tags to the image.More importantly, that photo links to your site when clicked on and will contain a description title of your blog name or post. Therefore, adding the Pinterest button for Blogger will help you to benefit from tons of new traffic coming from Pinterest and people who had found your photos and post links using the service. Here are some steps to add your very own Pinterest button. 1. Access your Blogger TemplateThe first thing to do is to edit the code of your template so that it knows when to display this Pinterest Button for Blogger with the content. You can do this by logging into your Blogger Dashboard and finding your way to "Template" > "Edit HTML". When the editor opens up, it may look a bit foreign to you if you don't have much experience using HTML. Click anywhere inside the code area and search by pressing the CTRL + F keys for thetag - hit Enter to find it: The body tags makes up the general content in your webpage. Think of it like the settings panel of a website. If you were to delete everything in this section your site would turn into a blank white page. 2. Add The Pinterest Pin it ScriptOnce you found thetag, insert the following script just above it: 3. Changing the Position of the Pin it! buttonThe cool thing about this code is that you have some freedom over where the Pinterest button for Blogger will go over the image. Take a look at the code that you just copied and pasted into the HTML for the word 'center'. var pinit_button_position = "center";To move the pin to a different area of the photo, replacecenterwith one of these texts: topleft topright bottomleft bottomrightAnd to change the Pin it! button that appears on mouse over, replace the address in blue from above with your own: var custom_pinit_button = " http://4.bp.blogspot.com /-3CPCJ031n9M/U_vWZXUV1SI /AAAAAAAAKPA/8Q3N34ieaBw/s1600 /pinit-button.png"; 4. Save The TemplateMake sure that you added everything correctly, then save the template and navigate to a recent post that you made that contain images. Hover your mouse over the image and you should now see a red Pinterest button for Blogger displayed on the image. Test it out and see it how it works. If you want to hide the pinit button from a specific image, when you create a post, switch to the HTML tab of your post editor and typeclass="nopin"right before the closing slash and angle bracket of your image element, like this: The only downside of this button is that it doesn't take the information from your custom image titles. It's automatically set to take the title of the blog post where the image is located. So, you'll need to pay closer attention to the title of the posts so that it fits closely with the images being shown. Remember that when you have this code activated, you have to label your titles so that they are relevant to the photos you are posting. This might sound obvious, but sometimes you create a post with an image as a joke that won't make sense in the context of viewing it on Pinterest. If you use Google Analytics, you can start to see traffic flooding into your site from Pinterest. You should also create your own Pinterest account so that you can manage the content and track how it's being shared. That's it. Enjoy and happy blogging! Share this post



Post a Comment