Here’s a quick way to add the new Google +1 button to a WordPress blog manually.
Step 1: Get Your Code
Pop over to Google’s Page about +1 and select your button style and then copy the code provided into your favourite text editor:
Step 2: Edit Your header.php File
Navigate to Appearance -> Editor within your WordPress dashboard:
Select header.php from the right hand list of files.
paste the first section of the code into the file just above the </head> element:
Step 3: Edit the single.php file
You’re already within the editor, so simply choose the single.php file from the menu. This change ensures that the +1 button appears in every post.
Paste the second section of the Google +1 code into the HTML just after the <div class=”entry”>
Step 4: Edit the Main index.php file
This is basically just a repeat of step 3. Choose index.php from the right hand menu, and find the <div class=”entry”> code in the page. This change ensures that the +1 button appears in every post that gets listed on your home page.
Paste the second Google +1 code into the HTML as in step 3.
…And that’s it.
There are probably already numerous plug ins that will carry out all of the steps above, and if you changed theme after installing your Google +1 button into WordPress using this method, you’d need to do it all again.
- March 2013 (1)
- February 2013 (1)
- November 2012 (1)
- August 2012 (1)
- June 2012 (1)
- May 2012 (3)
- April 2012 (1)
- March 2012 (2)
- February 2012 (3)
- January 2012 (3)
- December 2011 (3)
- November 2011 (6)
- October 2011 (6)
- September 2011 (8)
- August 2011 (6)
- July 2011 (6)
- June 2011 (9)
- May 2011 (11)
- April 2011 (16)
- March 2011 (24)
- February 2011 (27)
- January 2011 (9)
Join Quumf on Facebook
James Lowery on Twitter
- Spent about 8 hours on various trains today. Might spend the weekend finishing my teleporter.2013/06/11 09:15
- Biggest change in iOS7 Seems to be Default Bing. Pretty massive news given Apple's marketshare2013/06/10 13:02
- Leaving #sascon a bit earlier than I'd wanted, but great fun so far and very useful.2013/06/07 01:03
- I'm presenting at #sascon later this morning. Come and say "Hi" if you're around. Don't say anything else though. No time to talk...2013/06/06 22:34
- Yes, we're small and insignificant against the eye-watering scale of space.
- Spent about 8 hours on various trains today. Might spend the weekend finishing my teleporter.
Tagsadsense analytics bit.ly Black Hat black hat SEO branding business celebrities conversation conversion rates diabetes egypt Facebook forums foursquare getting a return Google Google +1 Link building linking marketing message boards microsoft msn online pr optimisation Personal politeness politics privacy profitability ROI SEO sharing Social 101 Social Media social media marketing social media response social networks spam spammers statistics traffic generation twitter url shorteners