How Thesis Helped Boost My AdSense Earnings

You may remember me mentioning how well the 728×90 AdSense unit has been performing on this blog. Since then, I’ve been getting a lot of questions about how I added it.

So I thought I’d create a video showing how to use the Thesis Feature Box function that is built right into the theme. (The code is located below the video.)

Even if you don’t use the Thesis WordPress theme, you can still apply some of the logic to your own blog (especially the CSS code).

You would still use the same CSS info on your stylesheet.css file. However, instead of using the code I provided for the custom_functions.php file below, you will add

INSERT BANNER CODE HERE
to the appropriate location of your header.php file, for example.

Note to Email/RSS subscribers: To obtain the code, it’s best to view this post on my blog.

This will add a 100 pixel gray box below your header.  Feel free to adjust the color, height, add a background image, etc.

#feature_box {
display: block;
margin-top: 30px;
padding: 0px;
border: none;
background-color: #ddd;
height: 100px;
position: relative;
}

If you don’t use Thesis, you would add this code to the stylesheet.css file of your WordPress theme.

add_action(‘thesis_hook_feature_box’, ‘leaderboard’);
function leaderboard() {
?>
INSERT BANNER CODE HERE
}

Non Thesis users would add

INSERT BANNER CODE HERE
to the appropriate file (header.php) since you don’t have a custom_functions.php file.

You may have to add a width or adjust other attributes in the CSS code to get it to work with your theme.

Happy AdSense Earnings!

Tagged as: css, google adsense, thesis wordpress theme


View the original article here

0 comments: