<?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>PrimePress Theme for WordPress &#187; Customization Tips</title>
	<atom:link href="http://www.techtrot.com/primepress/category/customization-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techtrot.com/primepress</link>
	<description>A customizable search engine optimized theme</description>
	<lastBuildDate>Fri, 27 Nov 2009 07:09:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress Page specific Header Images</title>
		<link>http://www.techtrot.com/primepress/wordpress-page-specific-header-images/</link>
		<comments>http://www.techtrot.com/primepress/wordpress-page-specific-header-images/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 23:48:28 +0000</pubDate>
		<dc:creator>Ravi Varma</dc:creator>
				<category><![CDATA[Customization Tips]]></category>

		<guid isPermaLink="false">http://www.techtrot.com/primepress/?p=77</guid>
		<description><![CDATA[I saw some people looking to display a different image on each WordPress Page instead of the site wide random images. Read on...
First, I'll give you the code and explain how it works. That way, you'll understand it better and can easily adapt it to your site.
The Code
&#60;?php if (is_page('28')) { ?&#62;
	&#60;img src="&#60;?php bloginfo('template_url'); ?&#62;/headers/image1.jpg" [...]]]></description>
			<content:encoded><![CDATA[<p>I saw some people looking to display a different image on each WordPress Page instead of the <a href="http://www.techtrot.com/primepress/how-to-customize-rotating-header-images/"title="Random rotating header images" >site wide random images</a>. Read on...</p>
<p>First, I'll give you the code and explain how it works. That way, you'll understand it better and can easily adapt it to your site.<span id="more-77"></span></p>
<h2>The Code</h2>
<pre>&lt;?php if (is_page('<span class="highlight-change">28</span>')) { ?&gt;
	&lt;img src="&lt;?php bloginfo('template_url'); ?&gt;/headers/<span class="highlight-change">image1</span>.jpg" width="920" alt="&lt;?php bloginfo('name'); ?&gt; header image" /&gt;
&lt;?php } elseif (is_page('<span class="highlight-change">26</span>')) { ?&gt;
	&lt;img src="&lt;?php bloginfo('template_url'); ?&gt;/headers/<span class="highlight-change">image2</span>.jpg" width="920" alt="&lt;?php bloginfo('name'); ?&gt; header image" /&gt;
<span class="highlight-change3">&lt;?php } elseif (is_page('<span class="highlight-change">30</span>')) { ?&gt;
	&lt;img src="&lt;?php bloginfo('template_url'); ?&gt;/headers/<span class="highlight-change">image3</span>.jpg" width="920" alt="&lt;?php bloginfo('name'); ?&gt; header image" /&gt;</span>
<span class="highlight-change2">&lt;?php } else { ?&gt;
	&lt;img src="&lt;?php bloginfo('template_url'); ?&gt;/rotating.php?image=&lt;?php echo mt_rand(0,100); ?&gt;" width="920" alt="&lt;?php bloginfo('name'); ?&gt; Rotating Header Image" title="&lt;?php bloginfo('name'); ?&gt; Random Header Image" /&gt;</span>
&lt;?php } ?&gt;</pre>
<p>I have 3 Pages here. With the above code, I'm telling the theme to display a given image on each of those 3 Pages and to display random images everywhere else.</p>
<ul>
<li>1st two lines tell the theme to display <code class="highlight-change">image1.jpg</code> on a Page with ID <code class="highlight-change">28</code>.</li>
<li>next two lines tell it to display <code class="highlight-change">image2.jpg</code> on a Page with ID <code class="highlight-change">26</code> and so on.</li>
<li>Last two lines (marked in blue) tell it to display random images everywhere else.</li>
</ul>
<h2>How to</h2>
<ol>
<li>Upload your header images into the headers folder in your PrimePress directory.</li>
<li>Open your <code>header-images.php</code> in your WordPress theme editor, delete the already existing code and paste the above code block in there.</li>
<li>Change <a href="http://www.techtrot.com/wordpress-page-id/" rel="nofollow" title="Finding the WordPress Page ID" >the Page ID</a> and the image file name according to your site.  (parts marked in red)</li>
</ol>
<h2>Some Notes</h2>
<p>Chances are, you want to do this on more than three pages. Just copy (duplicate) the lines marked in green, paste them right below (but above lines marked in blue) and change the ID and filename.</p>
<p>If you have permalinks turned on, you can also type in <a href="http://faq.wordpress.com/2006/10/23/post-options-post-slug/" rel="nofollow" title="What is a post-slug?" >the post-slug</a> in place of the Page IDs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techtrot.com/primepress/wordpress-page-specific-header-images/feed/</wfw:commentRss>
		<slash:comments>120</slash:comments>
		</item>
		<item>
		<title>Theme Customization: 2 simple ways to personalize your theme</title>
		<link>http://www.techtrot.com/primepress/theme-customization-changing-background-color-border/</link>
		<comments>http://www.techtrot.com/primepress/theme-customization-changing-background-color-border/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 02:59:44 +0000</pubDate>
		<dc:creator>Ravi Varma</dc:creator>
				<category><![CDATA[Customization Tips]]></category>

		<guid isPermaLink="false">http://www.techtrot.com/primepress/?p=46</guid>
		<description><![CDATA[Its amazing how some simple CSS tweaks like changing the background color or adding a border can drastically change the overall design of a site.
Here are two ways you can personalize your site by adding some simple bits of code to your custom stylesheet. Just paste these code snippets into the custom.css and change the [...]]]></description>
			<content:encoded><![CDATA[<p>Its amazing how some simple <acronym title="Cascading Style Sheets">CSS</acronym> tweaks like changing the background color or adding a border can drastically change the overall design of a site.</p>
<p>Here are two ways you can personalize your site by adding some simple bits of code to your <a href="http://www.techtrot.com/primepress/how-to-use-the-custom-stylesheet/"title="Using the custom style sheet" >custom stylesheet</a>. Just paste these code snippets into the <code>custom.css</code><span id="more-46"></span> and change the colors to your liking.</p>
<h2>Adding a Simple Border</h2>
<p>The following code makes the site content more distictive while preserving all the white space.</p>
<pre class="css">body<span style="color: #6666ff;">.custom</span> <span style="color: #6F006F;">#container</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #6F006F;">#cccccc</span>;<span style="color: #66cc66;">&#125;</span>
&nbsp;
body<span style="color: #6666ff;">.custom</span> ul<span style="color: #6666ff;">.menu</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">right</span>: <span style="color: #933;">10px</span>;<span style="color: #66cc66;">&#125;</span>
&nbsp;
body<span style="color: #6666ff;">.custom</span> <span style="color: #6F006F;">#rotating</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span>: <span style="color: #993333;">none</span>;<span style="color: #66cc66;">&#125;</span></pre>
<ul>
<li>First rule adds a simple border around the entire content area</li>
<li>The 2<sup>nd</sup> &amp; 3<sup>rd</sup> style rules are minor tweaks for better integration of things. 2<sup>nd</sup> moves the top level menu a bit to the right and the 3<sup>rd</sup> removes the top border above the rotating header images.</li>
</ul>
<h2 id="int-2">Changing the Background Color</h2>
<p>The following CSS code makes for a crisp overall design.</p>
<pre class="css">body<span style="color: #6666ff;">.custom</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #6F006F;">#<span style="color: #933;">444444</span></span>;<span style="color: #66cc66;">&#125;</span>
&nbsp;
body<span style="color: #6666ff;">.custom</span>  <span style="color: #6666ff;">.homelink</span> a <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #6F006F;">#ffffff</span>;<span style="color: #66cc66;">&#125;</span>
&nbsp;
body<span style="color: #6666ff;">.custom</span> <span style="color: #6666ff;">.homelink</span> a<span style="color: #3333ff;">:hover</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #6F006F;">#ffffff</span>;<span style="color: #66cc66;">&#125;</span>
&nbsp;
body<span style="color: #6666ff;">.custom</span> <span style="color: #6666ff;">.description</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span>: <span style="color: #6F006F;">#cccccc</span>;<span style="color: #66cc66;">&#125;</span>
&nbsp;
body<span style="color: #6666ff;">.custom</span> ul<span style="color: #6666ff;">.menu</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">right</span>: <span style="color: #933;">10px</span>;<span style="color: #66cc66;">&#125;</span>
&nbsp;
body<span style="color: #6666ff;">.custom</span> <span style="color: #6F006F;">#rotating</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span>: <span style="color: #993333;">none</span>;<span style="color: #66cc66;">&#125;</span></pre>
<ul>
<li>The first style rule changes the background color to a deep grey.</li>
<li>Since we chose a dark background, we need to pick a lighter contrasting color for the site title and tagline, for them to be clearly visible. In this case 2<sup>nd</sup> &amp; 3<sup>rd</sup> rules change the color of the title and the 4<sup>th</sup> changes the color of the tagline.</li>
<li>The last two style rules are minor tweaks to balance the overall design. 5<sup>th</sup> moves the top level menu a bit to the right and the 6<sup>th</sup> removes the top border above the rotating header images.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.techtrot.com/primepress/theme-customization-changing-background-color-border/feed/</wfw:commentRss>
		<slash:comments>111</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 2.359 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-09 19:13:06 -->

