{"id":3046,"date":"2011-06-02T17:40:08","date_gmt":"2011-06-02T23:40:08","guid":{"rendered":"http:\/\/www.evolutionarydesigns.net\/blog\/2011\/06\/02\/manually-add-the-google-1-button-to-your-site\/"},"modified":"2011-06-02T17:46:41","modified_gmt":"2011-06-02T23:46:41","slug":"manually-add-the-google-1-button-to-your-site","status":"publish","type":"post","link":"http:\/\/www.evolutionarydesigns.net\/blog\/2011\/06\/02\/manually-add-the-google-1-button-to-your-site\/","title":{"rendered":"Manually Add the Google +1 Button to Your WordPress Site"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/shot_plusone.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"display: inline; margin: 0px 10px 0px 0px; border-width: 0px;\" title=\"Maunally Add Google +1 button to your wordpress site. \" src=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/shot_plusone_thumb.png?resize=200%2C174\" border=\"0\" alt=\"Maunally Add Google +1 button to your wordpress site. \" width=\"200\" height=\"174\" align=\"left\" \/><\/a> Recently Google introduced a new sharing button called Google Plus +1 and now you can add a +1 button to your <strong>WordPress<\/strong> site. The Google\u00a0 +1\u00a0 was designed so that you can give your \u201cpublic stamp of approval\u201d on articles that you find helpful. Now, your friends, family, and contacts can find the best content when they do a search.<\/p>\n<p>Its important that you have this button on you site, because it might influence Google search engine ranks. If it does help give our articles and sites a little extra boost of influence, then its a good thing to have on your site. \u2013 We can all use the extra help when it comes to search engine rankings.<\/p>\n<p>The best part is, installing this plugin is quick and easy. All you have to do is generate the code for the <strong>Google +1 button<\/strong> and add the code to your theme. If coding isn\u2019t your thing, then you could use a social sharing <a href=\"http:\/\/www.wordpress.org\" target=\"_blank\">WordPress<\/a> plugin that will let you manually add code to add the button to your site for you.<\/p>\n<p>Since the button is so new, there isn\u2019t a plugin available for the button. The only way to get the button on your site is manually adding the code to your site. If manually coding isn\u2019t your thing, then you can add the code to the <a href=\"http:\/\/www.wordpressjunkies.net\/blog\/add-google\u2019s-1-to-wordpress\/\" target=\"_blank\">Sharebar social sharing<\/a> WordPress plugin.<\/p>\n<h2>How to Manually Install Google +1 on a WordPress site<\/h2>\n<h3>Generating the Google +1 Button Code<\/h3>\n<p>To manually add the Google +1 button to your site you will first need to go to <a href=\"http:\/\/www.google.com\/webmasters\/+1\/button\/\" target=\"_blank\">generate the code<\/a> for the button. The first thing you will need to do is select what size and type of button you want to use. Then select the language. There is an option for advanced features you can use with your button. I have not had time to figure out what these do and how it would benefit me to use these. So unless you understand what these features,\u00a0 ignore them.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/googplusone.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0px;\" title=\"Maunally Add Google +1 button to your wordpress site. \" src=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/googplusone_thumb.png?resize=619%2C401\" border=\"0\" alt=\"Maunally Add Google +1 button to your wordpress site. \" width=\"619\" height=\"401\" \/><\/a><\/p>\n<h3>How to Install the Google +1 Button Code on Your WordPress Site<\/h3>\n<h4>Adding JavaScript code to a Standard Free Theme<\/h4>\n<p>Now that you have your code generated, you will need to navigate to the editor via the admin dashboard (appearance &gt;&gt;&gt; editor&gt;&gt;&gt; select the correct file.)<\/p>\n<p>Once in the editor you will need to select the file where the end of the body tag is. For my theme, its called footer.php. This is were you would add the <a href=\"http:\/\/www.javascript.com\/\" target=\"_blank\">JavaScript<\/a> code to. After adding the code it, looks like this.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/single.png\"><span style=\"color: #ed1e24;\"> <\/span><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"display: block; float: none; margin: 10px auto; border-width: 0px;\" title=\"Maunally Add Google +1 button to your wordpress site. \" src=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/single_thumb.png?resize=619%2C186\" border=\"0\" alt=\"Maunally Add Google +1 button to your wordpress site. \" width=\"619\" height=\"186\" \/><\/a><strong>NOTE: <\/strong>Making changes to this file could be overwritten the next time you update your theme, the code you added will no longer be in the file and you will have to add the code again.<\/p>\n<p>Next, you will need need to add the button code to your post pages. To do this you would add this code to the single.php file. The image below shows the code and where I placed it.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/singlegoogleplus1.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"display: block; float: none; margin: 10px auto; border: 0px;\" title=\"Maunally Add Google +1 button to your wordpress site. \" src=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/singlegoogleplus1_thumb.png?resize=619%2C142\" border=\"0\" alt=\"Maunally Add Google +1 button to your wordpress site. \" width=\"619\" height=\"142\" \/><\/a><\/p>\n<p>I placed the code so the button will appear before the content, but after the StumbleUpon and Twitter buttons. The image below, shows what it should look like.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/googleplusonebutton.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"display: block; float: none; margin: 10px auto; border: 0px;\" title=\"Maunally Add Google +1 button to your wordpress site. \" src=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/googleplusonebutton_thumb.png?resize=619%2C440\" border=\"0\" alt=\"Maunally Add Google +1 button to your wordpress site. \" width=\"619\" height=\"440\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4>Adding JavaScript To StudioPress<\/h4>\n<p>If you are using a Framework such as <a href=\"http:\/\/www.evolutionarydesigns.net\/blog\/get_studio_press\" target=\"_blank\">StudioPress<\/a> or <a href=\"http:\/\/www.evolutionarydesigns.net\/blog\/thesis\" target=\"_blank\">Thesis<\/a>, you may not be able to access these files or there will be a plugin that adds a way to modify these files without worry about loosing these changes after a theme upgrade.\u00a0 If you are using StudioPress, you can use the simple hooks and add the JavaScript. Just add to the section called wp-footer Hook. This hook executes immediately before the closing <code>&lt;\/body&gt;<\/code> tag. It should look something like this.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/studiopresssimplehooksfooter.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"display: block; float: none; margin: 10px auto; border: 0px;\" title=\"Maunally Add Google +1 button to your wordpress site. \" src=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/studiopresssimplehooksfooter_thumb.png?resize=619%2C245\" border=\"0\" alt=\"Maunally Add Google +1 button to your wordpress site. \" width=\"619\" height=\"245\" \/><\/a><\/p>\n<h4>Adding Google +1 Button to StudioPress<\/h4>\n<p>To add the Google +1 button to StudioPress, use the Simple hooks. Look for a the hook called Genesis Before Post Content HOOK. Then just add the code for the button and save it. The box and code should look like this.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/gensissimplehook.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"display: block; float: none; margin: 10px auto; border: 0px;\" title=\"Maunally Add Google +1 button to your wordpress site. \" src=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/gensissimplehook_thumb.png?resize=619%2C232\" border=\"0\" alt=\"Maunally Add Google +1 button to your wordpress site. \" width=\"619\" height=\"232\" \/><\/a> Below, is what the Google Button will look like using StudioPress Genesis with a modified sample child theme. As you can see, the Google button is on top, the other social buttons. The other set of buttons were added by using the social sharing plugin DiggDigg. To line these plugins, I will have to modify the DiggDigg code or wait until the creator of DiggDigg adds Google +1 button or manually add the sharing buttons.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/gensissimplehooktest.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" style=\"display: block; float: none; margin: 10px auto; border: 0px;\" title=\"Maunally Add Google +1 button to your wordpress site. \" src=\"https:\/\/i0.wp.com\/www.evolutionarydesigns.net\/blog\/wp-content\/uploads\/2011\/06\/gensissimplehooktest_thumb.png?resize=619%2C199\" border=\"0\" alt=\"Maunally Add Google +1 button to your wordpress site. \" width=\"619\" height=\"199\" \/><\/a><\/p>\n<h2>Final Thoughts<\/h2>\n<p>&nbsp;<\/p>\n<p>After adding the code, I realized how easy it was and almost anyone can add it themselves. The guestion is, will work for your theme? For me, my main theme and my StudioPress theme did not look good after adding the code\u00a0 manually and it caused other social media to display incorrectly. But if I remove the plugins and manually add the code it works fine. In the future, I will be removing the social sharing buttons and adding the code manually. So this isn\u2019t an issue. But for now, I will use the <a href=\"http:\/\/www.wordpressjunkies.net\/blog\/add-google\u2019s-1-to-wordpress\/\" target=\"_blank\">Sharebar<\/a> on my current theme until their is an actual office plugin created for it.<\/p>\n<p>Image source: <a href=\"http:\/\/www.google.com\/experimental\/\" target=\"_blank\">Google Experimental Search<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently Google introduced a new sharing button called Google Plus +1 and now you can add a +1 button to your WordPress site. The Google\u00a0 +1\u00a0 was designed so that you can give your \u201cpublic stamp of approval\u201d on articles that you find helpful. Now, your friends, family, and contacts can find the best content [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[30,36,14,9],"tags":[861,862,863,1481],"class_list":["post-3046","post","type-post","status-publish","format-standard","hentry","category-seo","category-social-media","category-tutorials","category-wordpress","tag-google-1","tag-google-1-social-sharing-button","tag-how-to-manually-install-on-wordpress","tag-wordpress","entry","has-post-thumbnail"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pJPdG-N8","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.evolutionarydesigns.net\/blog\/wp-json\/wp\/v2\/posts\/3046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.evolutionarydesigns.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.evolutionarydesigns.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.evolutionarydesigns.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.evolutionarydesigns.net\/blog\/wp-json\/wp\/v2\/comments?post=3046"}],"version-history":[{"count":0,"href":"http:\/\/www.evolutionarydesigns.net\/blog\/wp-json\/wp\/v2\/posts\/3046\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.evolutionarydesigns.net\/blog\/wp-json\/wp\/v2\/media?parent=3046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.evolutionarydesigns.net\/blog\/wp-json\/wp\/v2\/categories?post=3046"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.evolutionarydesigns.net\/blog\/wp-json\/wp\/v2\/tags?post=3046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}