How to Add 125×125 Banner Ads to Your Sidebar
Many people like to display 125×125 banner ads in their sidebar. In this tutorial, I’ll show you how to add them to your own site.
Step 1 - Upload a Generic 125×125 Banner
Right-click the image to the right and save it to your desktop as banner125.gif. Then upload it to the /images folder within your WP-Mag theme folder. Alternatively, you can use your own generic 125×125 banner; just be sure to name it banner125.gif.
Step 2 - Upload the Banner Ads 125×125 Template
Right-click this link, and save the file to your desktop as banner125.php. Then upload the file to your theme folder with the rest of your theme files.
Step 3 - Place the Generic Banner Ads in Your Sidebar
In your Wordpress control panel, go to the Theme Editor. On the right side of the page, click the link named “Sidebar.” Once the Sidebar template is open in your Theme Editor, look for these lines of code:
<li>
<?php include (TEMPLATEPATH . '/banner300.php'); ?>
</li>
If you want to remove the 300×250 banner ad and replace it with the 125×125 banner ads, simply change those lines to read:
<li>
<?php include (TEMPLATEPATH . '/banner125.php'); ?>
</li>
If you want to keep the 300×250 ad, leave the code as it is and place these lines above or below it:
<li>
<?php include (TEMPLATEPATH . '/banner125.php'); ?>
</li>
After you click the Update File button, you should have something that looks about like the image to the right (click image to enlarge).
Step 4 - Replace Your Generic Banners and Links With Real Ads
While still on the Theme Editor page, click the link for “Banner Ads 125×125.” The code looks like this:
<ul class="banner125 clearfix">
<li class="ad1">
<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/banner125.gif" style="display:block;margin:0;padding:0;" alt="125×125 banner ad" /></a>
</li>
<li class="ad2">
<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/banner125.gif" style="display:block;margin:0;padding:0;" alt="125×125 banner ad" /></a>
</li>
<li class="ad3">
<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/banner125.gif" style="display:block;margin:0;padding:0;" alt="125×125 banner ad" /></a>
</li>
<li class="ad4">
<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/banner125.gif" style="display:block;margin:0;padding:0;" alt="125×125 banner ad" /></a>
</li>
</ul>
All you need to do is upload your 125×125 banner image(s) to the /images folder, and change the code above to reflect that.
For example, if you upload a new banner called solostream-banner-125.gif, and you want to link that banner to www.solostream.com, you would simply change the code to this:
<li class="ad1">
<a href="http://www.solostream.com"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/solostream-banner-125.gif" style="display:block;margin:0;padding:0;" alt="125×125 banner ad" /></a>
</li>
Step 5 - Add a Bit of Style
Add the following code to the bottom of your Stylesheet template:
/* -------------------[ 125×125 Banner Ads ]------------------- */
#sidebar li li.ad1 {
float:left;
margin: 0 5px 5px 0;
width:125px;
}
#sidebar li li.ad2 {
float:left;
margin: 0 0 5px 0;
width:125px;
}
#sidebar li li.ad3 {
float:left;
margin: 0 5px 0 0;
width:125px;
}
#sidebar li li.ad4 {
float:left;
margin: 0 0 0 0;
width:125px;
}
If you have any questions on this tutorial, just leave a comment, and I’ll respond as quickly as possible.

Comment by Christian Grabow on 14 May 2008:
One of our clients was just asking about this. If we could replace the 300×250 pixel banner with four 125×125 pixel banners. I was just going to send you an email, but decided to visit your website first. And then I find a complete tutorial. Thank you very much!
Comment by Richard Telofski on 15 May 2008:
Eureka! Literally, yesterday I was wondering how I could do this. Today I came to this site looking for instructions on glide modification and I was greeted with this post also!
Michael, are you a mind-reader?
Comment by Anthony Navarro on 15 May 2008:
Wow… the time couldn’t be better… Like Christian and Richard, I was just about to see how to do this… Talk about being ‘in tune’ with your client base!
-Anthony
Comment by Richard Telofski on 19 May 2008:
Re my previous comment. Successfully modified the code to a size other than 125 square. See http://www.KahunaContent.com/site , bottom right corner.
Thanks for pointing the way, Michael.
Comment by David on 19 May 2008:
Hi Michael,
Thank you very much for the step by step instructions for the 125 x 125 Banner Ads. It worked perfectly the first time.
Comment by Poudie on 17 June 2008:
I would purchase this theme in a heart-beat if I were you.
It is powerful and the trick, I least I think is to not go crazy with ALL the features and instead save some of them for later versions of your site. It’s just nice to have the firepower this theme provides sitting around waiting to be used.
Here is a great example of the theme in action: http://youredgeonline.com/
Comment by Richard Telofski on 19 June 2008:
Hey George,
I’d recommend this template for sure. Easy to modify as long as you haven’t had too many beers.
And Michael’s response on questions is great.
Comment by Danni Gadson on 30 June 2008:
Thanks for posting this. When I was customizing the theme I had to improvise and create my own way to show ads. This template has been great so far and customizing it was quite easy although I had a few hiccups and had to have Michael reply to me personally but I was thankful for the support and quick responses.
Here is how I put the theme to work: http://urbanbeautyonline.com