<?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>ads &#8211; Thesis Docs</title>
	<atom:link href="https://diythemes.com/thesis/rtfm/tag/ads/feed/" rel="self" type="application/rss+xml" />
	<link>https://diythemes.com/thesis/rtfm</link>
	<description>Documentation, How-tos, and Best Practices for the Thesis WordPress Theme System</description>
	<lastBuildDate>Wed, 28 Aug 2019 17:30:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>Place Six 125&#215;125 Ads in Multimedia Box</title>
		<link>https://diythemes.com/thesis/rtfm/six-125x125-ads-multimedia-box/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Thu, 28 May 2009 13:58:35 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[custom]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=287</guid>

					<description><![CDATA[How to insert a block of six 125x125 ads into the Multimedia Box.]]></description>
										<content:encoded><![CDATA[<p>Go to <strong>Design Options</strong>, and under <em>Multimedia Box</em>, select <code>Custom Code</code> in the dropdown selector under Default Settings.</p>
<p>Then, in the &#8220;Custom Multimedia Box Code&#8221; field, copy the following code (replacing each link and image source with the appropriate values for your ads):</p>
<pre class="html">
&lt;div class=&quot;adblock cenx&quot;&gt;
&lt;a href=&quot;http://www.adlink.com/&quot;&gt;&lt;img src=&quot;http://www.example.com/images/image.jpg&quot; width=&quot;125&quot; height=&quot;125&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.adlink.com/&quot;&gt;&lt;img src=&quot;http://www.example.com/images/image.jpg&quot; width=&quot;125&quot; height=&quot;125&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.adlink.com/&quot;&gt;&lt;img src=&quot;http://www.example.com/images/image.jpg&quot; width=&quot;125&quot; height=&quot;125&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;div class=&quot;adblock cenx&quot;&gt;
&lt;a href=&quot;http://www.adlink.com/&quot;&gt;&lt;img src=&quot;http://www.example.com/images/image.jpg&quot; width=&quot;125&quot; height=&quot;125&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.adlink.com/&quot;&gt;&lt;img src=&quot;http://www.example.com/images/image.jpg&quot; width=&quot;125&quot; height=&quot;125&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.adlink.com/&quot;&gt;&lt;img src=&quot;http://www.example.com/images/image.jpg&quot; width=&quot;125&quot; height=&quot;125&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
</pre>
<p>Click the &#8220;Big Ass Save Button&#8221;.</p>
<p>Now, place the following code in <code>custom.css</code> (change to suit your specific requirements):</p>
<pre class="css">
.custom div.adblock img {
  padding: 4px;
  background-color: #FFFFFF;
  display: inline;
}
.custom .cenx {text-align: center;}
</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Insert Ad After Content</title>
		<link>https://diythemes.com/thesis/rtfm/insert-ad-after-content/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Tue, 07 Apr 2009 23:29:31 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[insert]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=53</guid>

					<description><![CDATA[<ul>
<li>Ad After Content</li>
<li>Ad on Single Post Only</li>
<li>Ad on Pages Only</li>
<li>Ad After First Post Only on Home Page</li>
</ul>]]></description>
										<content:encoded><![CDATA[<h2 id="ad_content">Ad After Content <a href="#ad_content" title="Link to this section">∞</a></h2>
<p>Place this code in <code>custom_functions.php</code>:</p>
<pre>
function after_content_ad() { ?&gt;
// INSERT YOUR AD CODE HERE
&lt;?php }

add_action('thesis_hook_after_content', 'after_content_ad', 1);
</pre>
<h2 id="ad_single">Ad on Single Post Only <a href="#ad_single" title="Link to this section">∞</a></h2>
<p>Place this code in <code>custom_functions.php</code>:</p>
<pre>
function single_post_ads() {
if (is_single()) { ?&gt;
// INSERT YOUR AD CODE HERE
&lt;?php }
}

add_action('thesis_hook_after_post', 'single_post_ads');
</pre>
<h2 id="ad_page">Ad on Pages Only <a href="#ad_page" title="Link to this section">∞</a></h2>
<p>Place this code in <code>custom_functions.php</code>:</p>
<pre>
function page_ads() {
if (is_page()) { ?&gt;
// INSERT YOUR AD CODE HERE
&lt;?php }
}

add_action('thesis_hook_after_post', 'page_ads');
</pre>
<h2 id="ad_first_post">Ad After First Post Only on Home Page <a href="#ad_first_post" title="Link to this section">∞</a></h2>
<p>Place this code in <code>custom_functions.php</code>:</p>
<pre>
function after_first_post_ad($post_count) {
  if (is_home()) {
    if ($post_count == 1) { ?&gt;
       // INSERT YOUR AD CODE HERE
    &lt;?php }
  }
}

add_action('thesis_hook_after_post', 'after_first_post_ad');
</pre>
<h2>Related Resources:</h2>
<ul>
<li><a href="https://codex.wordpress.org/Conditional_Tags">Conditional Tags</a> from the WordPress Codex</li>
<li><a href="/thesis/rtfm/api/hooks/">Thesis Hook Reference List</a> from the Thesis Documentation</li>
</ul>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
