<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Four O'Clock Project &#187; How To: Design Ads</title>
	<atom:link href="http://www.fouroclockproject.com/category/how-to-design-ads/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fouroclockproject.com</link>
	<description>Thesis Theme Customizations and Tutorials</description>
	<lastBuildDate>Wed, 26 Aug 2009 11:46:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>4 Easy Ways to Place Ad Banners on Your Blog</title>
		<link>http://www.fouroclockproject.com/2009/easy-ad-banners/</link>
		<comments>http://www.fouroclockproject.com/2009/easy-ad-banners/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 15:46:56 +0000</pubDate>
		<dc:creator>R.J.</dc:creator>
				<category><![CDATA[How To: Design Ads]]></category>

		<guid isPermaLink="false">http://www.fouroclockproject.com/?p=329</guid>
		<description><![CDATA[This tutorial will show you 4 painless ways to place an ad banner on your blog in the four most common areas: above the html, above the content area, above the content and above the sidebars.  This tutorial is specific to the Thesis theme, but can be easily adapted to almost any Wordpress theme.
What [...]]]></description>
			<content:encoded><![CDATA[<p></p><p class="note"><a href="http://www.fouroclockproject.com/get-thesis.php"><img class="alignleft" style="margin: 5px;" src="https://diythemes.com/aff/accounts/default1/banners/twitter-avatar.gif" alt="" width="75" height="75" /></a><img style="border:0" src="https://diythemes.com/aff/scripts/imp.php?a_aid=4a170ec9549e7&amp;a_bid=31b86e7f" alt="" width="1" height="1" /><em>This tutorial will show you 4 painless ways to place an ad banner on your blog in the four most common areas: above the html, above the content area, above the content and above the sidebars.  This tutorial is specific to the <a href="http://www.fouroclockproject.com/get-thesis.php">Thesis</a> theme, but can be easily adapted to almost any Wordpress theme.</em></p>
<h3>What you&#8217;ll need:</h3>
<p>1) A banner ad from one of your sponsors like Amazon.com or something similar.<br />
2) Access to your custom.css and custom_functions.php files for Thesis.</p>
<p>For the purposes of this tutorial, we&#8217;re going to make four test banners using the power of Thesis&#8217; hooks.  Feel free to delete or add as necessary to meet your needs.  When you&#8217;re done, you&#8217;ll have banners in the following locations.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.fouroclockproject.com/wp-content/uploads/banners.jpg" alt="Banners for Thesis Using Hooks" /></p>
<p>First off, add the following to your custom_functions.php:</p>
<pre class="brush: php;">
&lt;?php

// ADDS ALERT BAR ONE
function alert_bar_1() { ?&gt;
&lt;div class=&quot;alert_one&quot;&gt;
// Above HTML
&lt;/div&gt;
&lt;?php
}
add_action('thesis_hook_before_html', 'alert_bar_1');

// ALERT BAR TWO
function alert_bar_2() { ?&gt;
&lt;div class=&quot;alert_two&quot;&gt;
// Above Content and Sidebars
&lt;/div&gt;
&lt;?php
}
add_action('thesis_hook_before_content_box', 'alert_bar_2');

// ALERT BAR THREE
function alert_bar_3() { ?&gt;
&lt;div class=&quot;alert_three&quot;&gt;
// Above Just Content
&lt;/div&gt;
&lt;?php
}
add_action('thesis_hook_before_content', 'alert_bar_3');

// ALERT BAR FOUR
function alert_bar_4() { ?&gt;
&lt;div class=&quot;alert_four&quot;&gt;
// Above Just Sidebars
&lt;/div&gt;
&lt;?php
}
add_action('thesis_hook_before_sidebars', 'alert_bar_4');
</pre>
<p>Replace the &#8220;<strong>//Above Whatever</strong>&#8221; with the code for your banner(s).</p>
<p>Now lets add some color so that they pop.  This won&#8217;t be necessary if your banner fills the entire area, but will serve as a good working demonstration.</p>
<p>In your custom.css file add the following:</p>
<pre class="brush: css;">
/*---:[Alert Bar One]:---*/
.alert_one {
width: 99%;
color: #111;
background: #e3f0f2;
border-bottom: 0.4em solid #3d5a84;
padding-left: 2em;
font-size: 1.2em;
text-align: center;
}

/*---[Alert Bar Two]---*/
.alert_two {
background: #e3f0f2;
border: 4px solid #3d5a84;
font-size: 1.2em;
color: #111;
padding-left: 2em;
height: 2em;
text-align: center;
}

/*---[Alert Bar Three]---*/
.alert_three {
background: #e3f0f2;
border: 4px solid #2cac53;
font-size: 1.2em;
color: #000;
padding-left: 2em;
height: 4em;
text-align: center;
}

/*---[Alert Bar Four]---*/
.alert_four {
background: #e3f0f2;
border: 4px solid #b41404;
font-size: 1.2em;
color: #000;
padding-left: 2em;
height: 4em;
text-align: center;
}
</pre>
<p>That&#8217;s all there is to it!  Told you it was painless.  The only thing you&#8217;ll have to watch out for is making sure that your banners fit into the appropriate dimensions.  This was Part II of the How To: Design Ads series.  You can find Part I about how to add 4 125X125 ads to your side bar <a href="http://www.fouroclockproject.com/2009/how-to-make-a-block-of-125x125-ads-on-your-blog/">here</a>.  As always, please let me know how it goes in the comments or on <a href="http://www.twitter.com/4oclockproject">twitter</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fouroclockproject.com/2009/easy-ad-banners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make a Block of 125X125 Ads on Your Blog</title>
		<link>http://www.fouroclockproject.com/2009/how-to-make-a-block-of-125x125-ads-on-your-blog/</link>
		<comments>http://www.fouroclockproject.com/2009/how-to-make-a-block-of-125x125-ads-on-your-blog/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 17:58:29 +0000</pubDate>
		<dc:creator>R.J.</dc:creator>
				<category><![CDATA[How To: Design Ads]]></category>
		<category><![CDATA[Thesis Hacks & CSS Tips]]></category>

		<guid isPermaLink="false">http://www.fouroclockproject.com/?p=201</guid>
		<description><![CDATA[This tutorial will show you how to build a fully customizable block of 125X125 pixel ads that can be displayed in your Wordpress Sidebar. This tutorial is specific to the Thesis theme, but if you have even a beginner understanding of working with your theme's files you can easily adapt it to almost every WP theme.]]></description>
			<content:encoded><![CDATA[<p></p><p class="note"><a href="http://www.fouroclockproject.com/get-thesis.php"><img class="alignleft" style="margin: 5px;" src="https://diythemes.com/aff/accounts/default1/banners/twitter-avatar.gif" alt="" width="75" height="75" /></a><img style="border:0" src="https://diythemes.com/aff/scripts/imp.php?a_aid=4a170ec9549e7&amp;a_bid=31b86e7f" alt="" width="1" height="1" /><em>This tutorial will show you how to build a fully customizable block of 125X125 pixel ads that can be displayed in your Wordpress Sidebar.  This tutorial is specific to the <a href="http://www.fouroclockproject.com/get-thesis.php">Thesis</a> theme, but if you have even a beginner understanding of working with your theme&#8217;s files you can easily adapt it to almost every WP theme.</em></p>
<p>When you&#8217;re done, you&#8217;ll have sidebar ads that look something like this:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.fouroclockproject.com/wp-content/themes/thesis-15/custom/images/4ads.png" alt="Block Sidebar ads" width="315" height="315" /></p>
<h3 style="text-align: left;">What you will need:</h3>
<p style="text-align: left;">1. Four 125&#215;125 px images/ads that will take the place of the above colored blocks.</p>
<p style="text-align: left;">2. Access to your custom_functions.php and custom.css files (for Thesis).</p>
<p style="text-align: left;">Copy and paste the following code into your custom_functions.php file making sure to replace the &lt;img src=&#8221;http&#8230;&gt; with your own 4 distinct image urls leading to your ads and 4 distinct urls leading to your desired ad pages.</p>
<pre class="brush: php;">
function my_ads() { ?&gt;

&lt;div class=&quot;ad_block&quot;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.yoursite.com&quot;&gt;
&lt;img src=&quot;http://www.yoursite.com/images/ad1.jpg&quot;/&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;http://http://www.yoursite.com&quot;&gt;
&lt;img src=&quot;http://www.yoursite.com/images/ad2.jpg&quot;/&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;http://http://www.yoursite.com&quot;&gt;
&lt;img src=&quot;http://www.yoursite.com/images/ad3.jpg&quot;/&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;http://http://www.yoursite.com&quot;&gt;
&lt;img src=&quot;http://www.yoursite.com/images/ad4.jpg&quot;/&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;?php
}
add_action('thesis_hook_after_sidebars', 'my_ads');
</pre>
<p>Now, in your custom.css file add the following:</p>
<pre class="brush: css;">
.custom .ad_block {
float:left;
height:100%;
margin:5px 0 0;
padding:0 0 0 0;
width:315px;
}

.ad_block ul {
margin:0;
overflow:hidden;
padding:0;
}

.ad_block li {
background:#FFFFFF none repeat scroll 0 0;
display:block;
float:left;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin:10px 5px 0;
overflow:hidden;
padding:8px 9px;
width:125px;
}
</pre>
<p>Save and refresh your page and you should have ads beneath your sidebars.  To move the ad block around just change the hook from &#8216;thesis_hook_after_sidebars&#8217; to whatever you&#8217;d like.</p>
<p>That&#8217;s it!  If you need help making it work or styling it let me know in the comments.  Also, if you&#8217;d like a different ad arrangement please <a href="http://www.fouroclockproject.com/contact">contact me</a> and I&#8217;ll be glad to work with you to make it happen.</p>
<p>Check back soon for more in the How To: Design Ads series.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fouroclockproject.com/2009/how-to-make-a-block-of-125x125-ads-on-your-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
