New Releases Top Sellers Future Releases
Bargain Bin UMD Video Accessories

Browse Categories: Nintendo Wii, Playstation 3, XBox 360, Playstation 2, XBox, Sony PSP, Gamecube, Gameboy Advance, Nintendo DS, PC
Showing posts with label WordPress. Show all posts
Showing posts with label WordPress. Show all posts

How to Add the Google +1 Button to your WordPress Blog

Most WordPress sites already have Social Buttons including Facebook, Twitter and Digg but there is one button that allot of WordPress sites are missing, the Google +1 Button.

The Google +1 Button is fairly new and the number of button presses is taken into consideration (among other things) when a page is ranked in Google.

Adding it to your WordPress Site is very easy simply follow the steps below. One thing to remember is that you need to have a Google Account to +1 a page, but lets face it almost everyone has a Google Account now.

Adding the Google +1 Button to your WordPress Posts

Edit the following file:
wp-content/themes/YOUR-THEME/header.php

Find the following:

Add this line ABOVE it:

That’s the header sorted, you now need to add the button to your posts.

Edit the following file:
wp-content/themes/YOUR-THEME/single.php

Find the following (or something similar):

Add this line ABOVE it:

That’s its! You can see how this code works as I have it running on this site (top right of this post).

Any problems let me know below and I will do my best to help you.

Related posts:

Smart WordPress 404 RedirectHow to Beat WordPress Comment Spam

View the original article here

Smart WordPress 404 Redirect

One of the most annoying things when navigating a website is to click on a link and be faced with a “404 Page Not Found” page, or maybe you click on a link in Google search results and get the same error message.

This is a very simple problem to fix if you are running a WordPress Site, it involves editing one file and that is it. It should take about 30 seconds if you know what you are doing.

Once complete if anyone visits a page on your WordPress Site that no longer exists they will be forwarded back to your homepage automatically.

How to setup the Smart WordPress 404 Redirect:

Edit the following file:
wp-content/themes/YOUR-THEME/404.php

Delete everything in the file and paste the following:
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>

That’s it, you can test it by typing in a URL for your site that you know does not exist. It should forward you straight back to your homepage.

How simple is that! Any problems or questions please post them below.

Related posts:

How to Beat WordPress Comment Spam

View the original article here