<?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>WooThemes &#187; Tutorial</title>
	<atom:link href="http://www.woothemes.com/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.woothemes.com</link>
	<description>Premium WordPress Themes</description>
	<lastBuildDate>Wed, 17 Mar 2010 12:58:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WPML: Running WooThemes Multilingual</title>
		<link>http://www.woothemes.com/2010/03/wpml-running-woothemes-multilingual/</link>
		<comments>http://www.woothemes.com/2010/03/wpml-running-woothemes-multilingual/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 10:54:34 +0000</pubDate>
		<dc:creator>Adii Rockstar</dc:creator>
				<category><![CDATA[All Themes]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=5749</guid>
		<description><![CDATA[The WPML plugin allows running multilingual WordPress sites and is fully compatible with all of our themes. In this tutorial, we&#8217;ll talk about how to offer multilingual support on your website, how to enter translations and how to create multilingual-ready&#8230;]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://wpml.org/">WPML plugin</a> allows running multilingual WordPress sites and is fully compatible with all of our themes. In this tutorial, we&#8217;ll talk about how to offer multilingual support on your website, how to enter translations and how to create multilingual-ready theme modifications.</p>
<h3>Setup</h3>
<p><a href="http://wordpress.org/extend/plugins/sitepress-multilingual-cms/">Get the plugin</a> and install it. The setup wizard will guide you through adding languages. You can add or remove languages later as well.</p>
<div id="attachment_5752" class="wp-caption alignnone" style="width: 570px"><a href="http://www.woothemes.com/wp-content/uploads/2010/03/languages_wizard.png"><img src="http://www.woothemes.com/wp-content/uploads/2010/03/languages_wizard-560x474.png" alt="" title="languages_wizard" width="560" height="474" class="size-large wp-image-5752" /></a><p class="wp-caption-text">The Languages Wizard</p></div>
<p>Next step is to add a language switcher, which allows your visitors to toggle between different languages. WPML provides two built-in options for language switcher and also makes it possible for web developers to create their own custom language switchers.</p>
<p>The built in language switchers are:</p>
<ul>
<li>Language switcher widget (either a drop-down or open list of languages).</li>
<li>A footer language switcher, as a horizontal list of languages.</li>
</ul>
<p>Lastly, go to WPML-&gt;Languages to choose which language selectors to enable and style them.</p>
<h3>Translating</h3>
<p>To translate contents, go to either the list of posts/pages or edit individual posts and pages. In the list, you&#8217;ll see &#8216;+&#8217; and &#8216;edit&#8217; icons below each language. Click on the &#8216;+&#8217; icon to add new translation or on the &#8216;edit&#8217; icon to edit existing translations.</p>
<div id="attachment_5753" class="wp-caption alignnone" style="width: 570px"><a href="http://www.woothemes.com/wp-content/uploads/2010/03/pages-list-full.png"><img class="size-large wp-image-5753" title="pages-list-full" src="http://www.woothemes.com/wp-content/uploads/2010/03/pages-list-full-560x431.png" alt="" width="560" height="431" /></a><p class="wp-caption-text">The Pages List</p></div>
<p>In the edit screens you&#8217;ll see similar translation controls, which allows you to add or edit translations while editing contents.</p>
<div id="attachment_5751" class="wp-caption alignnone" style="width: 570px"><a href="http://www.woothemes.com/wp-content/uploads/2010/03/language_box.png"><img class="size-large wp-image-5751" title="language_box" src="http://www.woothemes.com/wp-content/uploads/2010/03/language_box-560x382.png" alt="" width="560" height="382" /></a><p class="wp-caption-text">Editing a single post</p></div>
<h3>Here are some good practices for creating solid multilingual sites:</h3>
<p><strong>1. Make sure that texts and links are translatable.</strong></p>
<p>The following code snippet won&#8217;t be translated automatically:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;a href='<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_option<span style="color: #009900;">&#40;</span>home<span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>/support/'&gt;Support&lt;/a&gt;</pre></div></div>

<p>Instead, you need to modify that snippet to use gettext (<a href="http://www.woothemes.com/2009/08/how-to-translate-a-theme/">more info here</a>) and look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;a href='<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$page_id</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>'&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Support'</span><span style="color: #339933;">,</span>THEME<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;</pre></div></div>

<p>We&#8217;re getting the actual permalink for the support page from WordPress and getting localizable anchor text. WPML will return the correct permalink of the support page for the display language, so the support link will display and link correctly.</p>
<p><strong>2. Avoid using images as text</strong></p>
<p>Some times, folks use images that have texts. These will make maintaining multilingual sites much harder as the translated images will have to be generated manually for each language. Whenever possible, you should use images as background and place text, as normal text, on top of them.</p>
<p><strong>3. Assume texts can be larger or shorter</strong></p>
<p>When you&#8217;re designing the site layout, take into account that texts in different languages has different length. For instance, compared to English, German can be 150% larger and Chinese 50% shorter. Make sure that page layout adjusts well. Elements such as graphics buttons, headings and sidebar should display correctly regardless of the length of the text.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2010/03/wpml-running-woothemes-multilingual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Practices When Customizing a WooTheme</title>
		<link>http://www.woothemes.com/2009/09/best-practices-when-customizing-a-wootheme/</link>
		<comments>http://www.woothemes.com/2009/09/best-practices-when-customizing-a-wootheme/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 11:58:44 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[All Themes]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=3343</guid>
		<description><![CDATA[Many of our users customize their theme from the default look, from just changing the link color to drastically changing the layout and look. Most will dive straight in and modify the code in the theme, which is the easiest&#8230;]]></description>
			<content:encoded><![CDATA[<p>Many of our users customize their theme from the default look, from just changing the link color to drastically changing the layout and look. Most will dive straight in and modify the code in the theme, which is the easiest way to do it. But this leaves the problem of updating the theme in the future, since all modifications will essentially be lost if you overwrite your files with the new version of the theme.</p>
<p>What we want to show you in this tutorial is the best ways to customize your theme, so that updating your theme will be as painless as possible, and you are more in control of your customizations. There are two ways of doing this based on how much customization you want to do.</p>
<h2>Option 1 &#8211; Custom.css: Only stylesheet changes</h2>
<p>If you only plan on doing small modifications to the stylesheet or CSS, then the best option is to use the included <strong>custom.css</strong> file in the theme folder. Simply copy the CSS you want to change from style.css (or alt. stylesheets in /styles/*.css folder) in to the custom.css file, and edit it from there. This will effectively overwrite the style in style.css as the custom.css stylesheet is loaded after style.css on page load.</p>
<h3>Example: Editing custom.css</h3>
<p><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_0817090731.swf' /><param name='flashvars' value='i=12988' /><param name='allowFullScreen' value='true' /><embed src='http://screenr.com/Content/assets/screenr_0817090731.swf' flashvars='i=12988' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object></p>
<p>Lets do an easy example where we use <a href="http://www.getfirebug.com">FireBug</a> to find the navigation link color in the Object theme. We inspect the element by clicking on it with FireBug enabled, and it will show us what the style for the nav element is called.</p>
<div id="attachment_3344" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/09/custom1.png"><img class="size-medium wp-image-3344" title="custom1" src="http://www.woothemes.com/wp-content/uploads/2009/09/custom1-550x395.png" alt="FireBug shows us which style to change" width="550" height="395" /></a><p class="wp-caption-text">FireBug shows us which style to change</p></div>
<p>We see in the screenshot above that the style for the link color in the navigation and that we can find it on line 41 and 42 in style.css. We <strong>open style.css and copy this out</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.nav</span> a<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#767676</span><span style="color: #00AA00;">;</span>display<span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>line-<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">33px</span><span style="color: #00AA00;">;</span>z-index<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.nav</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#b939d3</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Then we paste <strong>this into custom.css</strong>, we want to change the color so to red (#ff0000), and the hover color to black (#000000). We also remove the other styles which we won&#8217;t be changing so it ends up looking like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.nav</span> a<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ff0000</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.nav</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Once you save custom.css and refresh your page you will notice the nav link color is now red, and if you hover over it it will turn black.</p>
<div id="attachment_3351" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/09/custom21.jpg"><img class="size-medium wp-image-3351" title="custom2" src="http://www.woothemes.com/wp-content/uploads/2009/09/custom21-550x436.jpg" alt="Changes after applying styles to custom.css" width="550" height="436" /></a><p class="wp-caption-text">Changes after applying styles to custom.css</p></div>
<p>You can also add new styles to your custom.css stylesheet to supplement those already in the theme. If the theme ever gets updated, remember to not update your custom.css file, as this will then be overwritten. We always recommend backing up your theme before updating to a newer version, and also check out our <a href="http://www.woothemes.com/2009/08/how-to-upgrade-your-theme/">upgrade tutorial</a> on how to do it.</p>
<h2>Option 2 &#8211; Using a child theme</h2>
<p><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_0817090731.swf' /><param name='flashvars' value='i=12990' /><param name='allowFullScreen' value='true' /><embed src='http://screenr.com/Content/assets/screenr_0817090731.swf' flashvars='i=12990' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object></p>
<p>The second option is for those who need to modify not only stylesheet changes, as in option 1, but also your template files in addition to CSS. It is a bit harder to grasp at first, but once you get the hang of it, you&#8217;ll find that it is way superior compared to modifying your theme directly. We won&#8217;t go into details about what a child theme is in this post, as you can read a great explanation on the topic in <a href="http://op111.net/53">this tutorial</a>.</p>
<p>To get started we need to prepare a child theme which means you&#8217;ll need <strong>FTP access</strong> to your host, so you can upload the new child theme. If you don&#8217;t have this, you should talk to your host so they can give you your FTP login details, and download a FTP program to upload your files.</p>
<h3>Making the child theme</h3>
<p>First we need to create a new stylesheet for our child theme. Create a new file called style.css and put this code in it:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
Theme Name: Child WooTheme
Version: 1.0
Description: Child theme for WooThemes.
Author: WooThemes
Author URI: http://www.woothemes.com
Template: themedir
*/</span>
&nbsp;
<span style="color: #a1a100;">@import url(&quot;../themedir/style.css&quot;);</span></pre></div></div>

<p>Next we need to change the<strong> Template</strong> field to point to our installed WooTheme. In this example we&#8217;ll use Object theme, which is installed under &#8220;<em>wp-content/themes/object/</em>&#8220;. We also need to change the<strong> imported style.css directory</strong> to point to Object. The result will look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
Theme Name: Object Child
Version: 1.0
Description: Child theme for Object.
Author: WooThemes
Author URI: http://www.woothemes.com
Template: object
*/</span>
&nbsp;
<span style="color: #a1a100;">@import url(&quot;../object/style.css&quot;);</span></pre></div></div>

<p>We&#8217;ve now got all we need to create a child theme. The next step is to upload this file to a new folder e.g. &#8220;wp-content/themes/object-child/&#8221;. Once uploaded, we can go to our WP admin panel and activate the child theme:</p>
<div id="attachment_3355" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/09/custom3.png"><img class="size-medium wp-image-3355" title="custom3" src="http://www.woothemes.com/wp-content/uploads/2009/09/custom3-550x566.png" alt="Activate the new child theme" width="550" height="566" /></a><p class="wp-caption-text">Activate the new child theme</p></div>
<p>Your child theme is now ready to be modified. Currently it doesn&#8217;t hold any customization, so lets look at a couple of examples on how we can customize the childe theme without touching the parent theme.</p>
<h3>Example: Edit stylesheet<br />
</h3>
<p>Lets try the same example as we did before, changing the color of the navigation link in the stylesheet. Simply find the styles like we did in above and paste them into our /object-child/style.css file:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
Theme Name: Object Child
Version: 1.0
Description: Child theme for Object.
Author: WooThemes
Author URI: http://www.woothemes.com
Template: object
*/</span>
&nbsp;
<span style="color: #a1a100;">@import url(&quot;../object/style.css&quot;);</span>
&nbsp;
<span style="color: #6666ff;">.nav</span> a<span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ff0000</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.nav</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>After saving the file, and refreshing our browser you will now see that the link colors should have changed, and if you hover over the style.css link in FireBug, you will see that the path points to the object-child directory.</p>
<div id="attachment_3357" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/09/custom4.png"><img class="size-medium wp-image-3357" title="custom4" src="http://www.woothemes.com/wp-content/uploads/2009/09/custom4-550x238.png" alt="Styles from child theme applied to parent theme" width="550" height="238" /></a><p class="wp-caption-text">Styles from child theme applied to parent theme</p></div>
<h3>Example: Editing template files</h3>
<p>But wait, there is more! You can do the same with the template files (*.php) in the theme folder. Lets try to remove the top right description. This is located in header.php, so we need to copy header.php from our parent theme folder &#8220;<em>wp-content/themes/object/header.php</em>&#8221; to our child theme folder &#8220;<em>wp-content/themes/object-child/header.php</em>&#8220;.</p>
<p>Once we have copied it to our child theme, we edit header.php and find the description code on line 89 and remove it:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">        &lt;p id=&quot;tagline&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;</pre></div></div>

<p>Then we upload our changes to our host and refresh our page to check that the changes have been applied</p>
<div id="attachment_3358" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/09/custom5.png"><img class="size-medium wp-image-3358" title="custom5" src="http://www.woothemes.com/wp-content/uploads/2009/09/custom5-550x168.png" alt="Removing description from header.php in child theme" width="550" height="168" /></a><p class="wp-caption-text">Removing description from header.php in child theme</p></div>
<p><strong>NOTE!</strong> Although you can override template files in your child theme, <strong>functions.php will be loaded in both the parent theme and child theme</strong>, so you can&#8217;t replace the functions already loaded in parent theme functions.php. </p>
<h3>TEMPLATEPATH vs. STYLESHEETPATH</h3>
<p>WordPress has a few things that it handles differently in child themes. If you have a template file in your child theme, you have to modify how WordPress includes files. <code>TEMPLATEPATH </code>or <code>bloginfo('template_directory')</code> will reference the parent theme. To make it use the file in the child theme, you need to change use <code>STYLESHEETPATH</code>. The same goes for use of <code>template_directory</code> parameter in bloginfo() function, which needs to be changed to <code>stylesheet_directory</code>.</p>
<p><a href="http://codex.wordpress.org/Include_Tags#Including_Any_Template">More info on this from the WP Codex</a></p>
<h3>Alternative styles</h3>
<p>If you are using an alternative style on your theme, then this will be loaded after the child themes style.css and overwrite your styles. There are two good ways to fix this:</p>
<p>1. Add <code>body</code> in front of your CSS tags so they override the ones in the alt stylesheet e.g. <code>body #header { font-size:14px; }</code><br />
2. You can unload the function from being outputted in the header by adding a functions.php file to your child theme (if you haven&#8217;t already), and adding <code>remove_action('wp_head', 'woothemes_wp_head');</code>. </p>
<h3>Child Theme Support</h3>
<p>Although we do offer basic child theme support that can easily be answered, it still falls under theme customization, so please refer to our <a href="http://www.woothemes.com/support-policy/">support policy</a> to see the extent of support we give.</p>
<p>We highly advice anybody confused with child themes to use the <a href="http://wordpress.org/support/">WordPress forums</a> for help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2009/09/best-practices-when-customizing-a-wootheme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to translate a theme</title>
		<link>http://www.woothemes.com/2009/08/how-to-translate-a-theme/</link>
		<comments>http://www.woothemes.com/2009/08/how-to-translate-a-theme/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 09:51:14 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[All Themes]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=3011</guid>
		<description><![CDATA[How to setup a language file in WordPress
All of our themes have a /lang/ folder, which holds all the translated files, called .po (Portable Object File) and .mo (Machine Object File). To activate WP with your language file you&#8230;]]></description>
			<content:encoded><![CDATA[<h2>How to setup a language file in WordPress</h2>
<p>All of our themes have a<strong> /lang/ folder</strong>, which holds all the translated files, called <strong>.po</strong> (Portable Object File) and <strong>.mo</strong> (Machine Object File). To activate WP with your language file you need to do the following steps:</p>
<p><strong>1.</strong> Copy your <strong>.mo</strong> language file from the themename/lang/themename-xx_XX.mo (e.g. busybee/lang/busybee-es_ES.mo) to the root of your theme folder, and remove the theme name prefix, so only the language and country code make up the filename, for example</p>
<p><code>busybee/es_ES.mo</code></p>
<p><strong>2.</strong> Edit your wp-config.php file and add this to it</p>
<p><code>define ('WPLANG', 'es_ES');</code></p>
<p>Remember to replace the parameter &#8216;es_ES&#8217; with your language and country code (or &#8216;es&#8217; if you only have a language code and no country code).</p>
<p>NOTE: If you only use a language code and no country code in wp-config.php, then simply name your &#8216;mo&#8217; file with the country code (e.g. busybee/es.mo). <strong>The wp-config.php and your filename must be the same.</strong></p>
<p>This is all that is needed to activate your language with your theme.</p>
<p></p>
<h2>How to translate a theme from scratch</h2>
<h3>Background info</h3>
<p>WordPress uses a standard localization framework called <em>GNU gettext</em>. This framework provides the programmer the ability to mark text inside code as being suitable for localization. The role of the translator is to take these marked pieces of text and produce a language-specific localization. No code needs to change and you do not need to understand how the program works.</p>
<p>Text is marked by wrapping it with special PHP functions. It is not important to know how these functions work, but it will be helpful to recognize them:</p>
<ul>
<li><code>__($text)</code> &#8211; Looks for a translated version of <code>$text</code> and returns the result</li>
<li><code>_e($text)</code> &#8211; Looks for a translated version of <code>$text</code> and echo the result 	to the screen (i.e. effectively it is <code>echo __($text)</code>)</li>
<li><code>__ngettext($single,$plural,$number)</code> &#8211; If <code>$number</code> is 1 then looks for a translated version of <code>$single</code>.  If number is more than 1 then looks for a translated version of <code>$plural</code>.</li>
</ul>
<p>(Source: <a href="http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/">Urban Giraffe</a>)</p>
<p><strong>Translating WooThemes</strong><br />
Putting this into context, it means that all our text in our template files (.php files) have been wrapped in gettext functions. This enables us to create a <strong>Portable Object File</strong> (or .po file) which contains all the text for the theme. This has already been done by us at WooThemes.</p>
<p>The user (that&#8217;s you) then has the ability to use a program (we&#8217;ll get back to this later) to translate this .po file into another language, add it to the theme directory, and have a translated theme!</p>
<h3>Before we start</h3>
<p>Before you can start to translate the theme, you need to make sure that the theme has been made ready for translation. All our new themes will support localization and include a <strong>language file</strong> (.po file) which contains all the English texts, and soon all our old themes will be upgraded as well.</p>
<p>If you are not certain if your theme has been made ready for translation/localization, you can simply check if there is a &#8220;<strong><em>/lang/themename.po</em></strong>&#8221; file in your theme folder. If there isn&#8217;t one, you will need to download the latest version of the theme and check if the .po file existst there. If it does include a translation file, you will need to <a href="http://www.woothemes.com/2009/08/how-to-upgrade-your-theme/">upgrade your theme</a> to be able to translate it.</p>
<h3>How to translate</h3>
<p>To translate your theme, you will need to use <a onclick="javascript:pageTracker._trackPageview('/outgoing/www.poedit.net/');" href="http://www.poedit.net/" target="_blank">Poedit</a> to translate the included <strong>Portable Object</strong> file (.po file), which will then create a <strong>Machine Object</strong> file (.mo file) which we will upload to our theme folder for WordPress to read.</p>
<p>Follow these steps to translate your .po file into another language and make a .mo file:</p>
<ol>
<li>Download and install <a onclick="javascript:pageTracker._trackPageview('/outgoing/www.poedit.net/');" href="http://www.poedit.net/" target="_blank">Poedit</a>, the program we will use to translate our .po file.</li>
<li>Open the themename.po file found in your /lang/ folder with poedit.</li>
<li>Now go through and translate all the text one line at a time in the bottom box.</li>
<li>Save the file after you&#8217;re done. This will output a .po and .mo file.</li>
</ol>
<div id="attachment_3016" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/08/poedit.png"><img class="size-medium wp-image-3016" title="poedit" src="http://www.woothemes.com/wp-content/uploads/2009/08/poedit-550x511.png" alt="Translating the .po file with Poedit" width="550" height="511" /></a><p class="wp-caption-text">Translating the .po file with Poedit</p></div>
<div class="info-box">You can also consider using <a href="http://wordpress.org/extend/plugins/codestyling-localization">this WordPress plugin</a>, which allows you to translate our default .po file directly in the WP admin panel.</div>
<p><strong>Setup WordPress</strong><br />
Before we can upload our new .mo file, we need to make sure we named it correctly, as it has to match your desired language locale. See the complete list of <a onclick="javascript:pageTracker._trackPageview('/outgoing/www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Language-Codes');" href="http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Language-Codes" target="_blank">language codes</a> and <a onclick="javascript:pageTracker._trackPageview('/outgoing/www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Country-Codes');" href="http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Country-Codes" target="_blank">country codes</a> to find your exact locale.</p>
<p>We&#8217;ll use Norwegian as the example here, so first we find the language code (nb &#8211; Norsk Bokmål) and the country code (NO). We than rename our .mo file to <strong>nb_NO.mo</strong> and upload to the root of our theme folder e.g.</p>
<p><code>wp-content/themes/themename/nb_NO.mo</code></p>
<p>The last step is to make sure your WordPress config file, <strong>wp-config.php</strong>, is setup with your locale, which in this case is Norwegian. So open wp-config.php and check that what you have in your define() function. For Norwegian it will look like this:</p>
<p><code>define ('WPLANG', 'nb_NO');</code></p>
<p>Once you have matched the wp-config.php setting to our .mo filename, you should have successfully translated your WooTheme into another language.</p>
<h3>Share your language</h3>
<p>We want to make it easier for users to get the theme in their language, so if you have translated your theme into your language, we hope you can share the .mo file with us, so new users don&#8217;t have to translate the theme themselves.</p>
<div class="info-box">Please send us your translated files (.po and .mo) files to <a href="mailto:s%75&#112;p%6f&#114;%74%40w&#111;%6fth%65me&#115;.com">sup&#112;or&#116;&#64;&#119;o&#111;&#116;hem&#101;&#115;.com</a> and we will put your file up in our repository.</div>
<p>them</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2009/08/how-to-translate-a-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to upgrade your theme</title>
		<link>http://www.woothemes.com/2009/08/how-to-upgrade-your-theme/</link>
		<comments>http://www.woothemes.com/2009/08/how-to-upgrade-your-theme/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 12:39:37 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[updating]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=2958</guid>
		<description><![CDATA[Here are some basic guidelines on how to update a theme to it&#8217;s newest version.

Find out which version you have and download
Have you modified your existing version with any modifications to the template files (php and css files)?&#8230;]]></description>
			<content:encoded><![CDATA[<p>Here are some basic guidelines on how to update a theme to it&#8217;s newest version.</p>
<ol>
<li><a href="#update-1">Find out which version you have and download</a></li>
<li><a href="#update-2">Have you modified your existing version with any modifications to the template files (php and css files)?</a></li>
<li><a href="#update-3">Updating modified template files</a></li>
<li><a href="#update-4">Updating the WooFramework</a></li>
</ol>
<p><a name="update-1"></a></p>
<h3>Find out which version you have and download</h3>
<p>1. Check which version you are running by looking under Apperance -&gt; Themes:</p>
<div id="attachment_2959" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/08/1-version.png"><img class="size-medium wp-image-2959 " title="1-version" src="http://www.woothemes.com/wp-content/uploads/2009/08/1-version-550x330.png" alt="1-version" width="550" height="330" /></a><p class="wp-caption-text">Find your theme version</p></div>
<p>2. Login to our website and find the changelog for your theme in your dashboard or under the theme documentation:</p>
<div id="attachment_2962" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/08/2-version.png"><img class="size-medium wp-image-2962" title="2-version" src="http://www.woothemes.com/wp-content/uploads/2009/08/2-version-550x391.png" alt="See the changelog for newest version" width="550" height="391" /></a><p class="wp-caption-text">See the changelog for newest version</p></div>
<p>3. The next step is to download your theme from your dashboard (where you originally downloaded the theme), by logging in to our website and clicking <em>Account</em> in the top right corner and <em>My Downloads</em>.</p>
<div id="attachment_3009" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/08/wbknne.png"><img class="size-medium wp-image-3009" title="wbknne" src="http://www.woothemes.com/wp-content/uploads/2009/08/wbknne-550x354.png" alt="Download new theme from your Dashboard" width="550" height="354" /></a><p class="wp-caption-text">Download new theme from your Dashboard</p></div>
<p>Once you have downloaded and unpacked your theme on your computer, you need to determine which way you want to update your theme based on the following:</p>
<p><a name="update-2"></a></p>
<h3>Have you modified your existing version with any modifications to the template files (php and css files)?</h3>
<p>If the answer to this is <strong>NO</strong>, then you can simply update your theme by overwriting the existing theme files, although we highly recommend <strong>making a backup</strong> of your current theme directory (e.g. rename /wp-content/themes/freshnews to wp-content/themes/freshnews-old/), or to install it into a new directory (e.g. /freshnews2).</p>
<p>If the answer is <strong>YES</strong>, then you will have to make a decision on how to proceed based on how many updates that have been made on the theme. You can check this by looking in the changelog.txt in your theme folder and see all the changes since your theme version which we found above. If there are many changes in files you have modified, then you might be better of just installing the theme to a new directory, and reapplying your customizations.</p>
<div class="info-box">
<strong>TIP!</strong> Read our tutorial on best <a href="http://www.woothemes.com/2009/09/best-practices-when-customizing-a-wootheme/">practices when customizing your theme</a>, to make it much easier to update your theme.
</div>
<p>After you have uploaded your theme, you should make sure it&#8217;s activated and then go over the <strong>Options Panel</strong> and see if there are any new additions that need to be edited.</p>
<p><a name="update-3"></a></p>
<h3>Updating modified template files</h3>
<p>If you have modified your files, and you can see that these files have been updated in the changelog.txt, then you need to inspect exactly what changes have been made so that you can update your existing file to the new version. This is most often described in the comment behind the actual file like this:</p>
<pre>*** Fresh News Changelog ***

2009.08.19 - version 2.0.6
  * footer.php - removed tabs.js
  * includes/theme.js - added superfish, tabs
  * includes/js/superfish.js - superfish new file</pre>
<p>In this example from Fresh News changelog.txt, we can see that there are 3 files that have been updated. So for updating footer.php you would need to edit yours and remove the line where tabs.js was included before.</p>
<p>You can also use a program to list the differences between your existing file and new file, to see what the changes are, and merge the two, on both <a href="http://winmerge.org/">PC</a> and <a href="http://www.araxis.com/merge_mac/index.html">Mac</a>.</p>
<p><a name="update-4"></a></p>
<h3>The Woo Framework</h3>
<p>All our themes have now been updated to use the new framework that we have developed. The idea behind this is that all files that run the backend functionality of the theme should be standarized and seperate from the template files, so we can easily update these without touching your customized code.</p>
<p>This is very useful if WordPress releases a new version, where we have to apply a fix to all themes, and do a mass update. If you then have the new version, updating is as simple as updating the <strong>functions</strong> folder in the theme directory, which holds the framework.</p>
<p>To check which version of the framework you have, simply look in your theme options panel</p>
<p><div id="attachment_5797" class="wp-caption alignnone" style="width: 509px"><img src="http://www.woothemes.com/wp-content/uploads/2009/08/wfversion.jpg" alt="" title="wfversion" width="499" height="219" class="size-full wp-image-5797" /><p class="wp-caption-text">Framework version</p></div><br />
You can see what the latest version of the framework is by <a href="http://www.woothemes.com/support/theme-documentation/headlines/#Changelog">checking the Changelog</a> on the documentation pages</p>
<p>If you still need help with updating your theme, please post a query in our support forum.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2009/08/how-to-upgrade-your-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing your Wordpress permalink structure</title>
		<link>http://www.woothemes.com/2009/06/changing-your-wordpress-permalink-structure/</link>
		<comments>http://www.woothemes.com/2009/06/changing-your-wordpress-permalink-structure/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 09:33:43 +0000</pubDate>
		<dc:creator>Mark Forrester</dc:creator>
				<category><![CDATA[All Themes]]></category>
		<category><![CDATA[changing permalinks]]></category>
		<category><![CDATA[wordpress tutorial]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/2009/06/changing-your-wordpress-permalink-structure/</guid>
		<description><![CDATA[Changing your wordpress permalink structure not only makes Google love you a whole heap more, it also helps in setting up some parts of particular WooThemes. If you haven&#8217;t done it before watch this tutorial on how-to and get it&#8230;]]></description>
			<content:encoded><![CDATA[<p>Changing your wordpress permalink structure not only makes Google love you a whole heap more, it also helps in setting up some parts of particular WooThemes. If you haven&#8217;t done it before watch this tutorial on how-to and get it done asap.</p>
<p><object width="560" height="374"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5062905&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5062905&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="560" height="374"></embed></object>
<p><a href="http://vimeo.com/5062905">Changing your Wordpress Permalink Structure</a> from <a href="http://vimeo.com/woothemes">WooThemes</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2009/06/changing-your-wordpress-permalink-structure/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WP-PostRatings Integration</title>
		<link>http://www.woothemes.com/2009/02/wp-postratings-integration/</link>
		<comments>http://www.woothemes.com/2009/02/wp-postratings-integration/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 14:10:04 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[All Themes]]></category>
		<category><![CDATA[gotham news]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=943</guid>
		<description><![CDATA[This tutorial was written by one our awesome Woo Ninjas &#8211; Jordan Hatch.
Another useful plugin you may want to install on your site is WP-PostRatings. You can get your visitors to rate your posts on a scale of one&#8230;]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-207" style="float: right;" title="WooThemes Ninja" src="http://www.woothemes.com/wp-content/uploads/2008/09/woo_ninja.png" alt="" width="128" height="128" /><strong>This tutorial was written by one our awesome Woo Ninjas &#8211; Jordan Hatch.</strong></p>
<p>Another useful plugin you may want to install on your site is <a href="http://wordpress.org/extend/plugins/wp-postratings/">WP-PostRatings</a>. You can get your visitors to rate your posts on a scale of one to five. It provides a wealth of functions you can use to display the stats around your site. </p>
<p>This tutorial is written for the <a href="http://www.woothemes.com/2008/11/gotham-news/">Gotham News</a> theme, however the main part of the tutorial can be completed in most of our other themes too. In this tutorial, we are going to install the plugin and add it to our single post template, and we&#8217;re also going to add a section to our sidebar tabs to show the highest rated posts.</p>
<h3>Installing the Plugin</h3>
<p>You can grab the plugin from is <a href="http://wordpress.org/extend/plugins/wp-postratings/">the WordPress.org plugins repository</a>, but if you have 2.7, search for the plugin name in your admin panel and you can install it from there too. When you&#8217;ve installed the plugin, head over to the new &#8220;Ratings&#8221; section of your WordPress admin panel. Click on &#8220;Ratings Options&#8221;.</p>
<a href="http://www.woothemes.com/wp-content/uploads/2009/02/screenshot-1.png"><img src="http://www.woothemes.com/wp-content/uploads/2009/02/screenshot-1.png" alt="" title="screenshot-1" width="154" height="193" class="size-full wp-image-944" /></a>
<p>Here you can choose what images you want to use for the ratings, and who can rate the posts. Choose an image you like (or stick with the default), and head over to your template folder. Let&#8217;s add it to our posts:</p>
<h3>Adding the code</h3>
<p>Open up <em>single.php</em> in your theme directory. This is the template used to display a single post on your site. We want to add the ratings below the post content, but above the comments.</p>
<p>Let&#8217;s find where the content is in the template file, and add the post ratings function after it. Find:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Now after it, add:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_ratings'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> the_ratings<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<a href="http://www.woothemes.com/wp-content/uploads/2009/02/screenshot-2.png"><img src="http://www.woothemes.com/wp-content/uploads/2009/02/screenshot-2.png" alt="" title="screenshot-2" width="298" height="54" class="size-full wp-image-945" /></a>
<p>Load up any single post on your site and you&#8217;ll see that the post ratings form is displayed below it. However, it looks rather out of place with the rest of our content. It would be nice to align it to the right, and to add some padding to the top. As with the <a href="http://www.woothemes.com/2008/12/wp-pagenavi-integration/">WP-PageNavi</a> plugin, you can add a special CSS file to your theme directory, and it will style the plugin. It will stop it from being overwritten when plugin is upgraded.</p>
<p>Lets create a file called <strong>postratings-css.css</strong> in our theme directory. The entire post ratings section is enclosed in a &#8216;div&#8217; with the class name &#8216;post-ratings&#8217;. This means we can add the following CSS to the file we just created, and it will style every occurrance of the post ratings section on the site:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.post-ratings</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.post-ratings-loading</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>The first portion of the CSS file, &#8216;.post-ratings&#8217;, is styling the main section of the post ratings which includes the stars and the statistics. The second portion of the CSS file, &#8216;.post-ratings-loading&#8217;, is simply the &#8220;Loading&#8230;&#8221; indicator which only appears when a rating is submitted.</p>
<p>Save the file and upload it to your website. You will find that the ratings are now on the right hand side of the page. There&#8217;s a lot more you could do to the ratings beyond the scope of this tutorial. However, we&#8217;re going to look at adding a &#8220;Rated Posts&#8221; tab to our sidebar now:</p>
<h3>Adding a tab</h3>
<p>It&#8217;s simple and easy to add a new tab to the tabs in the sidebar. Open <em>sidebar.php</em> and take a look at this section:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tabs wrap&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#comm&quot;</span><span style="color: #339933;">&gt;</span>Comments<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#feat&quot;</span><span style="color: #339933;">&gt;</span>Featured<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#tagcloud&quot;</span><span style="color: #339933;">&gt;</span>Tags<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Each item in the unordered list is a separate link for the tab. The URLs that the links are pointing to are the sections which each tab shows or hides. We are going to add a new list item to the section, for our Rated Posts tab. So after this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#tagcloud&quot;</span><span style="color: #339933;">&gt;</span>Tags<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span></pre></div></div>

<p>add the code for our section:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#rated&quot;</span><span style="color: #339933;">&gt;</span>Rated<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span></pre></div></div>

<a href="http://www.woothemes.com/wp-content/uploads/2009/02/screenshot-3.png"><img src="http://www.woothemes.com/wp-content/uploads/2009/02/screenshot-3.png" alt="" title="screenshot-3" width="327" height="149" class="size-full wp-image-946" /></a>
<p>If you upload <em>sidebar.php</em> now, you will see there is another tab to our list. However, clicking on it does nothing, as we haven&#8217;t added our list yet.</p>
<p>The plugin includes a useful function which will show us the highest rated posts on the site, and we can easily add them to our sidebar. Find this line in the <em>sidebar.php</em> file:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;inside&quot; id=&quot;tagcloud&quot;&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'smallest=10&amp;amp;largest=18'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;</pre></div></div>

<p>This is the code for the &#8220;Tags&#8221; section. Below it, add the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul class=&quot;inside&quot; id=&quot;rated&quot;&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_highest_rated<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

<p>This code adds a new section which corresponds to the tab we added earlier. The function <em>get_highest_rated</em> is one which the plugin includes, and we can specify whether we want to show posts or pages, only to show a post after X number of votes, and also the number of posts to show in the tab &#8211; for now it&#8217;s set at 5 posts, but you can change that if you like.</p>
<p>Upload <em>sidebar.php</em> and check out your site. If you&#8217;ve done everything correctly, there will now be an extra tab called &#8220;Rated&#8221; which shows the highest rated posts along with a link to each of them.</p>
<a href="http://www.woothemes.com/wp-content/uploads/2009/02/screenshot-4.png"><img src="http://www.woothemes.com/wp-content/uploads/2009/02/screenshot-4.png" alt="" title="screenshot-4" width="321" height="165" class="size-full wp-image-947" /></a>
<p>As we&#8217;ve demonstrated, it&#8217;s easy to add new tabs to your sidebar, and there are tons of useful plugins out there which can add things such as post ratings, pagination and breadcrumbs.</p>
<p>Feedback is appreciated in the comments, along with suggestions for future tutorials. (:</p>
<div class="fix"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2009/02/wp-postratings-integration/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Customizing your theme with Firebug</title>
		<link>http://www.woothemes.com/2009/01/customizing-your-theme-with-firebug/</link>
		<comments>http://www.woothemes.com/2009/01/customizing-your-theme-with-firebug/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 14:25:31 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[All Themes]]></category>
		<category><![CDATA[theme customization]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=700</guid>
		<description><![CDATA[This tutorial was written by one our awesome forum ninjas &#8211; Jordan Hatch.
Firebug is a great add-on extension to the popular web browser Firefox. It can help you make CSS changes in real-time and will help you locate where&#8230;]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-207" style="float: right;" title="WooThemes Ninja" src="http://www.woothemes.com/wp-content/uploads/2008/09/woo_ninja.png" alt="" width="128" height="128" /><strong>This tutorial was written by one our awesome forum ninjas &#8211; Jordan Hatch.</strong></p>
<p><a href="http://www.getfirebug.com">Firebug</a> is a great add-on extension to the popular web browser Firefox. It can help you make CSS changes in real-time and will help you locate where the CSS rules are defined and where in the file they are. It makes it even easier to customise any WooTheme. This tutorial is going to go through the basics of editing a style with Firebug, and then editing the CSS to save the new styling.</p>
<h3>Downloading Firebug</h3>
<p>You can download Firebug by visiting the Add-ons Repository <a href="https://addons.mozilla.org/en-US/firefox/addon/1843">here</a>. You may need to restart your browser after installing it.</p>
<p>To change a style in Firebug, right click on the area you wish to change and choose the <em>Inspect Element</em> option. The Firebug window will open up at the bottom of the screen, and you can see the HTML of the page on the left, and the CSS of the element you clicked on on the right. You can change any of the CSS and it will automatically update the page so you can see your changes in action. When you&#8217;re happy with them, you can add it to your CSS file.</p>
<p>We will be attempting to change the link color of our <a href="http://www.woothemes.com/2008/11/gotham-news/">Gotham News</a> theme, with the default style, to a color of your choice.</p>
<h3>Finding the CSS</h3>
<p>You&#8217;ll need to open Firefox and go to your WordPress installation with Gotham News selected as the theme. Choose the default style for now, you can do the same techniques here to other stylesheets later.</p>
<p>Considering we&#8217;re going to change the link colours, right click on any normal link (ie. in a post or page), and choose the <em>Inspect Element</em> option. The Firebug window should open and show you all the CSS styling for the link.</p>
<div id="attachment_707" class="wp-caption alignnone" style="width: 560px"><a href="http://www.woothemes.com/wp-content/uploads/2009/01/element-styles.png"><img class="size-medium wp-image-707" title="element-styles" src="http://www.woothemes.com/wp-content/uploads/2009/01/element-styles-550x262.png" alt="" width="550" height="262" /></a><p class="wp-caption-text">Right click the link and select Inspect Element</p></div>
<p>Click on the <em>color:</em> attribute and you will find that you can change the colour. Change it to whatever you like, you can visit <a href="http://ficml.org/jemimap/style/color/wheel.html">this site for a colour wheel</a> with the relevant codes. When you change the colour in the Firebug window, it automatically updates on the page, so you will find your links all changing to match the new style.</p>
<div id="attachment_706" class="wp-caption alignnone" style="width: 400px"><img class="size-full wp-image-706" title="element-edit" src="http://www.woothemes.com/wp-content/uploads/2009/01/element-edit.png" alt="Click on any value in the CSS edit window" width="390" height="243" /><p class="wp-caption-text">Click on any value in the CSS edit window</p></div>
<p>However, these changes are not permanent yet! If you refresh the page, you will find that your changes are lost, because Firebug is only editing on the client side (eg. your web browser) and not on your web server. Let&#8217;s go and add those into the stylesheet.</p>
<h3>Saving your changes</h3>
<p>So, we would like to save our changes to our CSS files. The first step is to find what CSS file our styles are defined in. As in the screenshot, take a look at the right-aligned text above the <em>a</em> element in Firebug. That is the file our styles are in &#8211; <em>style.css</em> &#8211; and the line number of the styles &#8211; <em>line 46</em>.</p>
<div id="attachment_705" class="wp-caption alignnone" style="width: 400px"><img class="size-full wp-image-705" title="css-file" src="http://www.woothemes.com/wp-content/uploads/2009/01/css-file.png" alt="Find the correct file to edit" width="390" height="243" /><p class="wp-caption-text">Find the correct file to edit</p></div>
<p>You can now download the <em>style.css</em> file from your server and find line 46, and you should find the following there:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#006DAD</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Change it to what you decided on in Firebug, and then upload it to your server. Clear your cache, refresh the page, and voila &#8211; your links should all be your new colour.</p>
<h3>Finding the correct stylesheet file</h3>
<p>The standard file to edit is style.css which is located in the root of your theme folder.</p>
<p>Our themes come with various styles, and you will often find that the CSS points to the specific style (e.g. default.css). You can find these stylesheets under a <strong>sub-folder</strong> in your theme directory called <strong>/styles/</strong> (e.g. wp-content/themes/busybee/styles/default.css).</p>
<div id="attachment_786" class="wp-caption alignnone" style="width: 487px"><img src="http://www.woothemes.com/wp-content/uploads/2009/01/1-default.png" alt="The location of 1-default.css in Fresh News" title="1-default" width="477" height="202" class="size-full wp-image-786" /><p class="wp-caption-text">The location of 1-default.css in Fresh News</p></div>
<p>You <strong>can&#8217;t use your WP theme editor</strong> to edit these files, as they are in the /styles/ sub-folder. You have to download the file <strong>with an FTP client</strong> and edit it locally, and then upload it to your server again.</p>
<h3>Validation</h3>
<p>To make sure that webpages were coded to a certain standard, the W3C released their <a href="http://validator.w3.org/">Validator</a>, and you can check if your site is Valid XHTML. All our themes are valid XHTML out of the box, but be aware that if you&#8217;re adding YouTube videos or modifying the theme, you may cause your site to fail the validation. If ever any of your modifications cause problems with browser compatibility, use the validator to check if you&#8217;ve coded everything correctly first.</p>
<h3>Doing a bit more!</h3>
<p>You can use Firebug to make changes to almost anything in your themes. For example, you could use it to change the background image of the header, you could use it to add extra padding around a picture, or change the background colours of the sidebar tabs. Firebug is your CSS buddy when it comes to WordPress!</p>
<h3>A short video demonstration</h3>
<p><small>(Please open the article to see the flash file or player.)</small><br />
<em>Click video to view video</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2009/01/customizing-your-theme-with-firebug/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to find page/cat ID</title>
		<link>http://www.woothemes.com/2009/01/how-to-find-pagecat-id/</link>
		<comments>http://www.woothemes.com/2009/01/how-to-find-pagecat-id/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 12:51:48 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[All Themes]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=572</guid>
		<description><![CDATA[In this video we show you how to find your category and page ID's, which is useful for setting theme options or for using when you want to exclude or include with wp_list_categories or wp_list_pages in the template files.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><small>(Please open the article to see the flash file or player.)</small><br />
<em>Click to open video</em></p>
<p>In this video we show you how to find your category and page ID&#8217;s, which is useful for setting theme options or for using when you want to exclude or include with wp_list_categories or wp_list_pages in the template files.</p>
<p>The video will show you that you can find your cat/page ID by hovering over the link on the manage categories/page page in WP admin. You will see the link in your browser statusbar like this:</p>
<div class="wp-caption alignnone" style="width: 481px"><img title="Status bar reveals page/cat ID" src="http://support.files.wordpress.com/2008/12/statusbar-page-id1.png" alt="Status bar reveals page/cat ID" width="471" height="23" /><p class="wp-caption-text">The browser status bar reveals page/cat ID</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2009/01/how-to-find-pagecat-id/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Adding Breadcrumbs to VibrantCMS and OverEasy</title>
		<link>http://www.woothemes.com/2008/12/adding-breadcrumbs-to-vibrantcms-and-overeasy/</link>
		<comments>http://www.woothemes.com/2008/12/adding-breadcrumbs-to-vibrantcms-and-overeasy/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 12:20:05 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[Over Easy]]></category>
		<category><![CDATA[VibrantCMS]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=396</guid>
		<description><![CDATA[This tutorial was written by one our awesome forum ninjas &#8211; Jordan Hatch.
Both VibrantCMS and Over Easy are themes which turn WordPress into a Content Management System. Using a plugin and some template hacking, we&#8217;re going to integrate breadcrumbs&#8230;]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-207" style="float: right;" title="WooThemes Ninja" src="http://www.woothemes.com/wp-content/uploads/2008/09/woo_ninja.png" alt="" width="128" height="128" /><strong>This tutorial was written by one our awesome forum ninjas &#8211; Jordan Hatch.</strong></p>
<p>Both <a href="http://www.woothemes.com/2008/06/vibrantcms/">VibrantCMS</a> and <a href="http://www.woothemes.com/2008/10/overeasy/">Over Easy</a> are themes which turn WordPress into a Content Management System. Using a plugin and some template hacking, we&#8217;re going to integrate breadcrumbs into these themes.</p>
<p>First, you&#8217;ll need to download and install the <a href="http://wordpress.org/extend/plugins/breadcrumbs/">Yoast Breadcrumbs</a> plugin, and you can configure it in the Settings menu. It&#8217;s quite simple, and gives you a lot of customisation over what is displayed on your site. Time to get into some coding.</p>
<h3>Adding the Breadcrumbs</h3>
<p>There are quite a few files we will need to modify to add in the breadcrumbs. We will be adding the same lines of code to each of the following files:</p>
<ul>
<li>archive.php</li>
<li>page.php</li>
<li>single.php</li>
<li>tag.php</li>
</ul>
<p>Let&#8217;s open <em>archive.php</em> and add the breadcrumbs to that file. </p>
<p>If you are using <strong>VibrantCMS</strong>, you will need to find this line:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;leftcontent&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;grid_10&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

<p>If you are using <strong>OverEasy</strong>, then you will need to look for this line:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;spacer&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

<p>After, add:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;breadcrumbs&quot;&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'yoast_breadcrumb'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> yoast_breadcrumb<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;p id=&quot;breadcrumbs&quot;&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
&lt;/div&gt;</pre></div></div>

<p>Upload to your site and view any category or archive page, and you should see the breadcrumbs showing at the top of your page. If not, go back and check that you have done the steps correctly.</p>
<p>Now, you will need to add the breadcrumbs code to the other three files mentioned above. You should add it in the same place as before.</p>
<h3>Styling the Breadcrumbs</h3>
<p>At this point, the breadcrumbs have no styling at all. However, we have given our code we added a <em>class</em> attribute, and so we can add styling to change the link colours, the font size, positioning, and lots more.</p>
<p>To do this, we will need to change <em>style.css</em> and add the following lines to the end:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* ---- BREADCRUMBS ---- */</span>
&nbsp;
<span style="color: #6666ff;">.breadcrumbs</span> <span style="color: #00AA00;">&#123;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>For example, if we would like to change the size of the text to 12px, we would change the CSS to this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.breadcrumbs</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>You could even add a border to your breadcrumbs:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.breadcrumbs</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ccccff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>You can experiment with CSS styling to completely transform how your breadcrumbs look. The plugin is completely flexible too, and so you can change what text is displayed and where the breadcrumbs are shown.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2008/12/adding-breadcrumbs-to-vibrantcms-and-overeasy/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>WP-PageNavi Integration</title>
		<link>http://www.woothemes.com/2008/12/wp-pagenavi-integration/</link>
		<comments>http://www.woothemes.com/2008/12/wp-pagenavi-integration/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 08:29:14 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[All Themes]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=378</guid>
		<description><![CDATA[One common request on our WooThemes Forums is how to integrate the popular &#60;a href="http://wordpress.org/extend/plugins/wp-pagenavi/"&#62;WP-PageNavi plugin with one of our themes. Using this quick and simple tutorial, it is really easy.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-207" style="float: right;" title="WooThemes Ninja" src="http://www.woothemes.com/wp-content/uploads/2008/09/woo_ninja.png" alt="" width="128" height="128" /><strong>This tutorial was written by one our awesome forum ninjas &#8211; Jordan Hatch.</strong></p>
<p>One common request on our WooThemes Forums is how to integrate the popular <a href="http://wordpress.org/extend/plugins/wp-pagenavi/">WP-PageNavi plugin</a> with one of our themes. Using this quick and simple tutorial, it is really easy.</p>
<h3>Installing the Plugin</h3>
<p>The first thing you need to do is to grab the latest copy of the plugin from the <a href="http://wordpress.org/extend/plugins/wp-pagenavi/">WordPress.org Plugin Directory</a> , and install it on your site. You can configure how the pages are displayed by going to the &#8216;Settings&#8217; -> &#8216;WP-PageNavi&#8217; section of your WordPress Admin Panel, although for this tutorial the defaults should work fine.</p>
<p>For this tutorial, we will be adding the plugin to the category and archive pages. The actual file editing will vary between themes, but the editing will need to be done to the following files, if they exist, inside your theme folder:</p>
<ul>
<li>archive.php</li>
<li>tag.php</li>
<li>search.php</li>
</ul>
<p>You will need to find the following code in the files:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;laquo; Previous Entries'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
&lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Next Entries &amp;raquo;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;</pre></div></div>

<p>and replace it with:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_pagenavi'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> wp_pagenavi<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><em>Note: If you have trouble finding the code, you should try to find the block of code where the &#8216;next_posts_link&#8217; is in your file. It should be very similar to the code above.</em></p>
<p>Save and upload the files to your blog, you will find pagination automatically generated depending on how many posts you have on your site. If you like the links how they currently appear, then you&#8217;re done, but if you&#8217;d like to style them a bit, read on!</p>
<h3>Styling the Links</h3>
<p>The WP-PageNavi plugin comes with the ability to style the navigation links to your liking. The default blue colour, for example, may not suit some designs. Now we are going to look at how we can create custom styles for our links.</p>
<p>First, you will need to create a file named &#8216;pagenavi-css.css&#8217; in your theme folder. The plugin will automatically look for this, and will load it instead of the default if it is present.</p>
<p>For this example, we are going to style the links brown. First, lets copy the default CSS code from WP-PageNavi into our custom CSS file.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">wp-pagenavi a<span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.wp-pagenavi</span> a<span style="color: #3333ff;">:link </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#0066cc</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0066cc</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wp-pagenavi</span> a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#0066cc</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0066cc</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wp-pagenavi</span> a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wp-pagenavi</span> a<span style="color: #3333ff;">:active </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#0066cc</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0066cc</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wp-pagenavi</span> span<span style="color: #6666ff;">.pages</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wp-pagenavi</span> span<span style="color: #6666ff;">.current</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wp-pagenavi</span> span<span style="color: #6666ff;">.extend</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span> <span style="color: #933;">2px</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Don&#8217;t let the amount of CSS we&#8217;re pasting into the file seem daunting &#8211; if you&#8217;re good with CSS then you&#8217;ll find this a breeze. However if you don&#8217;t know CSS much, it&#8217;s not a problem. We&#8217;re going to change the border colour of the links and I&#8217;ll show you what you need to change to do that.</p>
<p>First, let&#8217;s have a quick look at what each class means:</p>
<ul>
<li><strong>.wp-pagenavi a, .wp-pagenavi a:link:</strong> This is the class for what the user sees when the item is not selected &#8211; so it&#8217;s the default state.</li>
<li><strong>.wp-pagenavi a:visited</strong> This is the class for what the user sees when the page has already been visited, but when the user is on a different page.</li>
<li><strong>.wp-pagenavi a:hover</strong> This is the class for what the user sees when they hover over an item.</li>
<li><strong>.wp-pagenavi span.pages</strong> This is the class for the box which contains the text &#8220;Page 1 of X&#8221;.</li>
<li><strong>.wp-pagenavi span.current</strong> This is the class for the box which contains the current page. There is no link here.</li>
<li><strong>.wp-pagenavi span.extend</strong> This is the class used for the box found on the far right with &#8216;&#8230;&#8217; (only shown when there is a lot of pages)</li>
</ul>
<p>The colour we are going to change the border to is &#8216;#993300&#8242;. (If you&#8217;d like to use a different colour, head on over to <a href="http://ficml.org/jemimap/style/color/wheel.html">this colour wheel</a> which will pick out the code for you.)</p>
<p>This is the line which we will need to change &#8211; the CSS &#8216;border:&#8217; attribute.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#0066cc</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>The current colour is &#8216;#0066cc&#8217;, but we want to change that to our colour &#8211; &#8216;#993300&#8242;. It&#8217;s as simple as replacing one with the other. So, it should look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#993300</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>Replace all three occurrances with our updated border code and upload to your server. You should now find your pagination borders brown. You can experiment with this to use background colours and hover states, it&#8217;s all up to you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2008/12/wp-pagenavi-integration/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Troubleshooting Image Resizer (thumb.php)</title>
		<link>http://www.woothemes.com/2008/10/troubleshooting-image-resizer-thumbphp/</link>
		<comments>http://www.woothemes.com/2008/10/troubleshooting-image-resizer-thumbphp/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 11:26:20 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[All Themes]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=215</guid>
		<description><![CDATA[In the WooThemes Support Forums, we often find that many problems relate to thumb.php, the automatic image resizer found in  most of our themes. To help you with these common problems, we've put together a  troubleshooting guide to help you find a solution quicker. We will try to add solutions to the most common problems here as they appear in the forum.]]></description>
			<content:encoded><![CDATA[<p>We have included <a href="http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/">TimThumb</a> (thumb.php) in all our themes, which is an open source image resizer. In our support forums, we often find that many problems relate to thumb.php. To help you with these common problems, we&#8217;ve put together a  troubleshooting guide to help you find a solution quicker. We will try to add solutions to the most common problems here as they appear in the forum.</p>
<p><strong>Before starting the troubleshooter, make sure you followed the documentation which tells you to <a href="http://www.woothemes.com/2008/10/troubleshooting-image-resizer-thumbphp/#2">CHMOD the cache folder</a>.<br />
</strong></p>
<h3>Table of Contents</h3>
<ol>
<li><a href="#1">Finding the problem</a></li>
<li><a href="#2">Cache Folder</a></li>
<li><a href="#3">Path Problems</a></li>
<li><a href="#4">PHP GD Library</a></li>
<li><a href="#5">404 page not found</a></li>
<li><a href="#6">Issies with WPMU</a></li>
<li><a href="#7">Large image files (PNG)?</a></li>
<li><a href="#8">Still having problems?</a></li>
</ol>
<p><a name="1"></a></p>
<h3>1. Finding the problem</h3>
<div class="info-box">Make sure you have the latest version of this script. <a href="http://www.woothemes.com/u/thumb.phps">Save this file</a> and replace your thumb.php.</div>
<p>Before you start looking for problems you should be aware of these limitations of thumb.php:</p>
<ul>
<li><strong>External Images</strong>. You can now use external images (in version 1.11), but you need to add the domain in thumb.php for security purposes. Search for &#8220;Flickr.com&#8221; to see where to add your domain.</li>
<li>It <strong>can&#8217;t resize huge files</strong>. If your image is very large in megabytes (1-3mb), the resizer will not be able to resize it for you, depending on your hosts capabilities. Always make your images smaller in size before you upload.</li>
<li>It <strong>won&#8217;t work on a temporary site</strong>. If your site is on a local dns or some other temporary state i.e. not live on your proper domain, the resizer will probably not work until you go live with your site.</li>
</ul>
<p>Are your thumbnails not showing up? If the image resizer doesn&#8217;t work it will just <strong>show the post title</strong> instead of the image where the image was supposed to be. If you are using a theme with a javascript slider you will not see this, but only the slider trying to load an image.</p>
<p>First thing you should check is the <strong>thumbnail URL</strong>. It will normally tell you what&#8217;s wrong quite easily. Here are a few ways to find the URL to your thumbnail:</p>
<ul>
<li>Right-click on your image and open/view it in a new browser tab</li>
<li>Do a view source on your website and look in your source code for the image URL (search for thumb.php) and paste it into your address bar. This is useful on themes</li>
<li>Install <a href="http://www.getfirebug.com">FireBug</a> and, right-click on the image and select &#8220;Inspect Element&#8221;. You will then get a window below which will show the source code and you can copy the image url (just click on the http:// part and it will become selected so you can copy)</li>
</ul>
<p>Once you have the image URL it should look something like this (click this link to see the image being resized)</p>
<p><a href="http://www.woothemes.com/demo/freshnews/wp-content/themes/freshnews/thumb.php?src=http://www.woothemes.com/wp-content/uploads/2008/09/cff5b9107da40103bfe2951e42ee6c51.jpg&amp;h=195&amp;w=540&amp;zc=1&amp;q=95">http://www.woothemes.com/demo/freshnews/wp-content/themes/freshnews/thumb.php?src=http://www.woothemes.com/wp-content/uploads/2008/09/cff5b9107da40103bfe2951e42ee6c51.jpg&amp;h=195&amp;w=540&amp;zc=1&amp;q=95</a></p>
<p>If your image does not show, you will probably get any of these errors explained below&#8230;</p>
<p><a name="2"></a></p>
<h3>2. Cache Folder</h3>
<p>One of the most common errors is that the cache/ folder does not have write permissions. If your error message is something along the lines of <strong>&#8220;Permission denied&#8230;&#8221;</strong> and you can see it referencing you /cache folder, then you probably have not set write permissions to it.</p>
<p>To do this, you will need to &#8220;CHMOD&#8221; the folder in your FTP client to 777 (or 755 or full write permissions). Check out <a href="http://www.woothemes.com/2008/10/how-to-chmod-the-cache-folder/">this tutorial</a> on how to do that. <strong>The folder you will need to change the permissions is &#8220;/wp-content/themes/yourthemename/cache&#8221;.</strong> This is the folder where the thumbnail generator stores cached images.</p>
<p><a name="3"></a></p>
<h3>3. Path Problems</h3>
<p>If your script is showing a message similar to <strong>&#8220;/var/www//wp-content/uploads/2008/10/featured.jpg not found.&#8221;</strong>, then this is your problem. This should not happen with the updated version of TimThumb. If you get a similar message to this, please post in our forum so we can investigate.</p>
<p><a name="4"></a></p>
<h3>4. PHP GD Library</h3>
<p>The thumb.php script uses PHP GD Library to resize the images, which is usually included with PHP and should be installed on your web host. Some small web hosts haven&#8217;t done this and you will then get a error like <strong>&#8220;GD Library Error: imagecreatetruecolor does not exist&#8221;</strong>. You should ask your web host to activate PHP GD or find a better hosting provider, since this should be included and is not a hassle to setup for them.</p>
<p><a name="5"></a></p>
<h3>5. 404 page not found / hosting problems</h3>
<p>Some users have experienced that images suddenly stop working. If your image URL (<a href="http://www.woothemes.com/2008/10/troubleshooting-image-resizer-thumbphp/#1">see part 1</a>) is giving you a 404 page, then it could mean that thumb.php doesn&#8217;t have permission to run on your server. Contact your host and give them the image link and ask why your thumb.php isn&#8217;t allowed to run.</p>
<p>Is your host running Apache 2 or recently upgraded? We know for a fact that <strong>Hostgator </strong>users have had this, and that is because they upgraded their <strong>Apache</strong> to version 2, and need to turn of the <strong>mod_security</strong> setting on your site. <a href="http://forum.woothemes.com/topic.php?id=1735#post-11705">Here are details on what to ask Hostgator about</a>. Contact your host if this happens and ask them about the permission on thumb.php.</p>
<p><a name="6"></a></p>
<h3>6. Issues with WPMU (WordPress Multi User)</h3>
<p>The latest versions of our themes work out of the box with WPMU. If you have any issues, please make sure you have the latest version of the theme, and post your problem in the forum.</p>
<p><a name="7"></a></p>
<h3>7. Large image files (PNG)?</h3>
<p>Get the <a href="http://www.woothemes.com/u/thumb.phps">latest version of TimThumb</a> and replace your thumb.php which resizes to JPG.</p>
<p><a name="8"></a></p>
<h3>8. Still having problems?</h3>
<p>If you still can&#8217;t get your thumb.php to work, then drop us a line in the forums, where one of our ninjas will be happy to help you resolve the problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2008/10/troubleshooting-image-resizer-thumbphp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To CHMOD the cache folder</title>
		<link>http://www.woothemes.com/2008/10/how-to-chmod-the-cache-folder/</link>
		<comments>http://www.woothemes.com/2008/10/how-to-chmod-the-cache-folder/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 14:37:34 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[All Themes]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=236</guid>
		<description><![CDATA[<p>In order for the image resizer to be able to write resized images to the wp-content/themes/theme-name/cache/ folder you have to CHMOD the cache folder within your theme folder. CHMOD 777 (or 755 depending on your server) means simply setting write permission so the script is able to write.</p>
]]></description>
			<content:encoded><![CDATA[<p>In order for the image resizer to be able to show resized images, it needs to have permission to store the resized files in a cache folder. This folder is located in your theme folder for example:</p>
<pre>wp-content/themes/freshnews/cache/</pre>
<p>To allow the image resizer to write to this folder, you have to CHMOD the cache folder.</p>
<h3>What is CHMOD?</h3>
<p>CHMOD means simply setting write permission so the script is able to write to the cache folder. We need to set the permissions to 777 (or 755 depending on your server).</p>
<p>You need to connect via FTP and locate the theme folder mentioned above. You then use your FTP program to set the permissions set permission to 777 on the cache folder.</p>
<p><strong>Tutorials to help you out</strong><a href=" http://php.about.com/od/phpbasics/ht/chmod.htm"><br />
</a></p>
<ul>
<li><a href=" http://php.about.com/od/phpbasics/ht/chmod.htm">About.com: How to CHMOD from FTP</a></li>
<li><a href="http://www.siteground.com/tutorials/ftp/ftp_chmod.htm">Siteground: CHMOD with FTP</a></li>
</ul>
<p><strong>FTP programs</strong></p>
<p>If you already have an FTP program installed, search the help file or try to google it (ex. &#8220;cuteftp how to chmod&#8221;).</p>
<ul>
<li><a href="http://www.smartftp.com">SmartFTP</a> is a free FTP program and it is very easy to <a href="http://www.smartftp.com/support/kb/how-to-chmod-file-folders-f13.html ">CHMOD</a>.</li>
<li><a href="http://fireftp.mozdev.org/">FireFTP</a> is a free addon to Firefox</li>
</ul>
<p>If you don&#8217;t have the required connection details to connect to your host, you need to ask your hosting provider for the host name, username and password.</p>
<h3>Images still not showing?</h3>
<p>If you are still having trouble showing the images after doing this, please refer to our <a href="http://www.woothemes.com/2008/10/troubleshooting-image-resizer-thumbphp/">Image Resizer Troubleshooter</a>, and then make a new post in our forum if that doesn&#8217;t help you solve the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2008/10/how-to-chmod-the-cache-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with ads</title>
		<link>http://www.woothemes.com/2008/09/working-with-ads/</link>
		<comments>http://www.woothemes.com/2008/09/working-with-ads/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 11:34:59 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[All Themes]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=216</guid>
		<description><![CDATA[This tutorial will guide you through setting up various types of ads on WooThemes. Some themes may need a little extra tweaking but it shouldn't be too complex.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-207" style="float: right;" title="WooThemes Ninja" src="http://www.woothemes.com/wp-content/uploads/2008/09/woo_ninja.png" alt="" width="128" height="128" /><strong>This tutorial was written by one our awesome forum ninjas &#8211; Kirstin Pauk.</strong></p>
<p>This tutorial will guide you through setting up various types of ads on WooThemes. Some themes may need a little extra tweaking but it shouldn&#8217;t be too complex.</p>
<p>In this tutorial you&#8217;ll learn:</p>
<p>• How to ad in adsense or flash based ad codes<br />
• How to insert an ad into the header<br />
• How to add in image ads (alternate way) and add more ads to the sidebar</p>
<p>Most themes use 2 or 3 types of ads:</p>
<p>• 300&#215;250 (sidebar)<br />
• 125&#215;125 (top and bottom &#8211; in the sidebar)<br />
• 468&#215;60 (currently Gazette only &#8211; in the header)</p>
<h3>Part 1 &#8211; Using flash or adsense ads</h3>
<p>Flash and adsense ads can&#8217;t be applied via the admin menu but it&#8217;s relatively easy to set them up.</p>
<ol>
<li>Make sure you&#8217;re using the latest versions of wordpress and of the theme itself</li>
<li>All sidebar ads are located in the /ads/ folder.</li>
<li>To insert your code, look at the coding examples below:</li>
</ol>
<p><strong>300&#215;250</strong> &#8211; Remove all the coding between the div commands:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mpu_banner&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
ADD IN YOU CODE HERE<span style="color: #339933;">!</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p><strong>125&#215;125</strong> (repeat the same for both the top and bottom ads)</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ads&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	ADD IN YOUR CODE HERE<span style="color: #339933;">!</span>
&nbsp;
	ADD IN YOUR CODE HERE<span style="color: #339933;">!</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>It&#8217;s as simple as that!</p>
<p><strong>468&#215;60</strong> &#8211; You need to open header.php (this is for Gazette only!)</p>
<p>Find this code located at the bottom of header.php:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;topbanner&quot;&gt;
&nbsp;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
				<span style="color: #666666; font-style: italic;">// Get banner code //</span>
				<span style="color: #000088;">$banner_img</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'woo_banner_image'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$banner_url</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'woo_banner_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			&lt;a <span style="color: #000000; font-weight: bold;">&lt;?php</span> do_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'woo_external_ad_link'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$banner_url</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$banner_img</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
&nbsp;
&lt;/div&gt;</pre></div></div>

<p>And simple remove the coding and add in your code as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;topbanner&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
ADD IN YOUR CODE HERE<span style="color: #339933;">!</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<h3>Part 2 &#8211; Adding an ad into the header</h3>
<p>Let&#8217;s say you want to a 728&#215;90 ad in the header:</p>
<div class="tutorial-image">
<a href="http://www.woothemes.com/wp-content/uploads/2008/09/screen011.jpg"><img class="alignnone size-medium wp-image-217" title="screen011" src="http://www.woothemes.com/wp-content/uploads/2008/09/screen011-550x87.jpg" alt="" width="550" height="87" /></a></div>
<p>Simply open up header.php and ad in your code in either the &#8216;top&#8217; or &#8216;navigation&#8217; sections. To center, simply place the ad in center commands:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>center<span style="color: #339933;">&gt;</span> ADD YOU CODE HERE<span style="color: #339933;">!</span> <span style="color: #339933;">&lt;/</span>center<span style="color: #339933;">&gt;</span></pre></div></div>

<p>This will push down the main navigation, and all you need to do to resolve this is alter the background image. You can read my other tutorial on how to do this <a href="http://www.woothemes.com/2008/09/customizing-fresh-news-background/">here</a>.</p>
<p>You can apply these techniques to any theme <img src='http://www.woothemes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Part 3 &#8211; Alternate way to use image ads</h3>
<p>Coding the ads yourself instead of using the admin menu is easier than you think. It also allows for you to add more if needed. For this example we&#8217;re going to add in 2 new ads into the top ads section. You need to open ads-top.php (although this will work for all the ad files).</p>
<p>The technique is the same as above but you substitute the &#8216;ADD YOUR CODE HERE&#8217; with this code (make sure to change the link and image urls)</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>a  href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;LINK URL&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;IMAGE URL&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span></pre></div></div>

<p>So you should end up with this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ads&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>a  href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;LINK URL&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;IMAGE URL&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>a  href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;LINK URL&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;IMAGE URL&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>That will give you 2 ads. To include more, simply copy the all 4 lines of code, and change the link and image urls to suit:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ads&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>a  href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;LINK URL&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;IMAGE URL&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>a  href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;LINK URL&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;IMAGE URL&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ads&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>a  href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;LINK URL&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;IMAGE URL&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>a  href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;LINK URL&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;IMAGE URL&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>And it&#8217;s as simple as that. You can have as many ads as your require.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2008/09/working-with-ads/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Customizing Fresh News background</title>
		<link>http://www.woothemes.com/2008/09/customizing-fresh-news-background/</link>
		<comments>http://www.woothemes.com/2008/09/customizing-fresh-news-background/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 11:33:11 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[Fresh News]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=208</guid>
		<description><![CDATA[Making radical changes to the design of Fresh news can be as simple as editing images, style.css and header.php. It's important when planning to customize the header, that you decide what elements to keep. All elements except for the logo can be successfully placed elsewhere in your site so you're not confined to keeping elements the same.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-207" style="float: right;" title="WooThemes Ninja" src="http://www.woothemes.com/wp-content/uploads/2008/09/woo_ninja.png" alt="" width="128" height="128" /><strong>This tutorial was written by one our awesome forum ninjas &#8211; Kirstin Pauk.</strong></p>
<p>Making radical changes to the design of Fresh news can be as simple as editing images, style.css and header.php. It&#8217;s important when planning to customize the header, that you decide what elements to keep. All elements except for the logo can be successfully placed elsewhere in your site so you&#8217;re not confined to keeping elements the same.</p>
<p>For this tutorial, we&#8217;re going to create a site based on holiday experiences, called &#8216;Wish you were here&#8217;.</p>
<p><a href='http://www.woothemes.com/wp-content/uploads/2008/09/screen01.jpg'><img class="tutorial-image" src="http://www.woothemes.com/wp-content/uploads/2008/09/screen01-550x239.jpg" alt="" title="screen01" width="550" height="239" class="alignnone size-medium wp-image-209" /></a></p>
<p>As you can see, I decided to remove unwanted elements such as the rss links and categories which can be moved to the sidebar. I also decided to change the category dropdowns to page dropdowns. This tutorial allows you to pick out certain techniques if you don&#8217;t want to follow it literally.</p>
<h3>Step 1</h3>
<p>Make sure that you have the latest versions of wordpress and the Fresh news theme.</p>
<h3>Step 2</h3>
<p>To create a full width image as your background, use the guide below when designing the image. The width of the image can be any size, but remember to keep the main elements into 960px box in the middle (see the whitened area) and the logo and search box should be in the &#8216;header image&#8217; section.</p>
<p><a href='http://www.woothemes.com/wp-content/uploads/2008/09/screen02.jpg'><img class="tutorial-image" src="http://www.woothemes.com/wp-content/uploads/2008/09/screen02-550x124.jpg" alt="" title="screen02" width="550" height="124" class="alignnone size-medium wp-image-210" /></a></p>
<p>Save your image as bgr.jpg. For the logo, you could either make it a separate image same size as the logo in the fresh news theme or just keep it on the bgr.jpg. You won&#8217;t need to use the admin menu for you logo to appear and the area will still be linked to the home page just like the logo.</p>
<h3>Step 3</h3>
<p>Before we continue, we need to remove any unwanted coding from header.php. You can use either wordpress&#8217; built in editor or a text editor.</p>
<p>Because in this tutorial we&#8217;re removing the page and rss links at the top, find and remove this coding:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	&lt;div class=&quot;grid_12&quot;&gt;
        &lt;ul class=&quot;nav1&quot;&gt;
            &lt;li <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> class=&quot;current_page_item&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=menu_order&amp;title_li=&amp;depth=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;/ul&gt;
	    &lt;!--/nav1--&gt;
	&lt;/div&gt;
	&lt;!-- end .grid_12 --&gt;
&nbsp;
	&lt;div class=&quot;grid_4&quot;&gt;
        &lt;span class=&quot;subscribe&quot;&gt;Subscribe:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'woo_feedburner_url'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&gt;</span> <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'woo_feedburner_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> get_bloginfo_rss<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Posts&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments_rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Comments&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;|&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.feedburner.com/fb/a/emailverifySubmit?feedId=<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$feedburner_id</span> <span style="color: #339933;">=</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'woo_feedburner_id'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$feedburner_id</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; target=&quot;_blank&quot;&gt;Email&lt;/a&gt;&lt;/span&gt;
	&lt;/div&gt;
	&lt;!-- end .grid_4 --&gt;</pre></div></div>

<p>To remove the rss image from the navbar, find this code and remove it:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">		&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'woo_feedburner_url'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;&gt;</span> <span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'woo_feedburner_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> get_bloginfo_rss<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/images/ico-rss-trans.png&quot; alt=&quot;RSS&quot; /&gt;&lt;/a&gt;
   &lt;/div&gt;&lt;!--/rss --&gt;</pre></div></div>

<p>Finally, to change the navbar from categories to pages, find this coding:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	&lt;ul id=&quot;nav&quot; class=&quot;grid_15&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/includes/version.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;exclude='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$ex_aside</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;li&gt;&amp;nbsp;&lt;/li&gt;
	&lt;/ul&gt;</pre></div></div>

<p>and change it to the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul id=&quot;nav&quot; class=&quot;grid_15&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/includes/version.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;exclude='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$ex_aside</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
            &lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p>You can exclude pages you don&#8217;t want in the navbar by changing the text in the brackets to the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">		<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'exclude=17'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Once you&#8217;ve edited header.php, save and upload (if necessary).</p>
<h3>Step 04</h3>
<p>Now upload your background image into the default folder (found in /styles/default/). Open up style.css (in the main theme directory) and change the following:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#top</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> ADD IN YOUR TOP MENU HEIGHT<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">11px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#header</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">109px</span><span style="color: #00AA00;">;</span> - make sure you leave this as it!
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<h3>Step 05</h3>
<p>To finish you may want to have the image behind the nav menu duplicated in the actual drop downs. To do this, first save a section that can be repeated as nav.jpg, making sure it&#8217;s the same height as the header (the width can be anything). Upload into the /images folder (in the main directory).</p>
<p>Now open up default.css (located in the /styles folder) and change #nav command url to nav.jpg:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</span> li ul li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../images/nav.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And that&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2008/09/customizing-fresh-news-background/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Customizing The Featured Panel</title>
		<link>http://www.woothemes.com/2008/08/customizing-the-featured-panel/</link>
		<comments>http://www.woothemes.com/2008/08/customizing-the-featured-panel/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 21:48:51 +0000</pubDate>
		<dc:creator>Magnus</dc:creator>
				<category><![CDATA[VibrantCMS]]></category>

		<guid isPermaLink="false">http://www.woothemes.com/?p=176</guid>
		<description><![CDATA[This is a guest post by Josh Farkas, King Ninja at Cubicle Ninjas. It has been modified from it&#8217;s original version to suit the newest version (v1.1) of VibrantCMS.

 
WooThemes are wonderful because they look beautiful out of the box.&#8230;]]></description>
			<content:encoded><![CDATA[<p><em>This is a guest post by Josh Farkas, King Ninja at <a href="http://cubicleninjas.com/">Cubicle Ninjas</a>. It has been modified from it&#8217;s original version to suit the newest version (v1.1) of VibrantCMS.</em></p>
<p style="text-align: center;"><a href="http://cubicleninjas.com/wp-content/uploads/2008/08/cubicleninjaswebdesignillustration.jpg"><img class="tutorial-image" title="cubicleninjaswebdesignillustration" src="http://cubicleninjas.com/wp-content/uploads/2008/08/cubicleninjaswebdesignillustration.jpg" alt="" width="450" height="353" /></a></p>
<p><a href="http://cubicleninjas.com/wp-content/uploads/2008/08/cubicleninjasdesignillustration.jpg"> </a></p>
<p><strong>WooThemes are wonderful because they look beautiful out of the box.</strong> But if you&#8217;d prefer to customize them to your taste they&#8217;ve built-in the tools to make that very easy. Here are a few tips I learned first-hand when I built our new <a href="http://cubicleninjas.com" target="_blank">Cubicle Ninja&#8217;s website</a> with the VibrantCMS theme.</p>
<p><strong>Let&#8217;s pretend we&#8217;re launching a fun new website about an upcoming war between kittens and mankind.</strong> We&#8217;ve installed Wordpress, <a href="http://www.woothemes.com/support/theme-documentation/vibrantcms/#4">followed the detailed directions</a> provided by the WooThemes team to install the VibrantCMS theme, and we were ready to add in our own imagery.</p>
<p style="text-align: center;"><a href="http://cubicleninjas.com/wp-content/uploads/2008/08/overflow.jpg"><img class="tutorial-image" title="overflow" src="http://cubicleninjas.com/wp-content/uploads/2008/08/overflow.jpg" alt="" width="450" height="378" /></a></p>
<p><strong>Using Large Images</strong></p>
<p>By default the featured post area will grow vertically to match your image, <em>but horizontally, your image will overflow into the next featured panel</em>. Take a look at the left side of the image above as an example.<strong></strong></p>
<p><strong>Is there an easy way to add in image greater then 340 pixels wide without this issue?</strong></p>
<p>1. Go to Manage > Pages and locate the page with the problem image.</p>
<p>2. Find &#8220;VibrantCMS Custom Settings&#8221; where we&#8217;d originally placed our image URL. Located here are two fields, &#8220;Top&#8221; and &#8220;Left&#8221;. We will use these to adjust where our image is located.</p>
<p style="text-align: center;"><a href="http://cubicleninjas.com/wp-content/uploads/2008/08/left.jpg"><img class="tutorial-image" title="left" src="http://www.woothemes.com/wp-content/uploads/2008/08/custom-vibrant.gif" alt="" /></a></p>
<p>3. Place a value you&#8217;d like to move your image into the field labeled &#8220;Left&#8221;. For example -50 moves your image 50 pixels to the left.</p>
<p>4. Hit save to update this featured panel.</p>
<p>5. View your page to see how you did. You can keep guessing and checking until your image fits perfectly.</p>
<p style="text-align: center;"><a href="http://cubicleninjas.com/wp-content/uploads/2008/08/top.jpg"><img class="tutorial-image" title="top" src="http://cubicleninjas.com/wp-content/uploads/2008/08/top.jpg" alt="</p>
<p>&#8221; width=&#8221;450&#8243; height=&#8221;325&#8243; /></a></p>
<p><strong>Using Small Images</strong></p>
<p>What if we have the opposite problem: We want to use a very small image but don&#8217;t want it placed against the top?</p>
<p>1. Go to Manage > Pages and locate the page with the problem image.</p>
<p>2. Find &#8220;VibrantCMS Custom Settings&#8221;   where we&#8217;d originally placed our image URL. Located here are two fields, &#8220;Top&#8221; and &#8220;Left&#8221;. We will use these to adjust where our image is located.</p>
<p>3. Place a value you&#8217;d like to move your image down into the field labeled &#8220;Top&#8221;. Using -50 moves your image up, 50 moves your image down.</p>
<p>4 . Hit save to update this featured panel.</p>
<p>5. View your page to see how you did. You can keep guessing and checking until your image floats where you like it.</p>
<p>We can even combine using &#8220;Top&#8221; and &#8220;Left to move the image to the center. If we were to place an image in the center it will overlap your text, but it will be behind your buttons.</p>
<p style="text-align: center;"><a href="http://cubicleninjas.com/wp-content/uploads/2008/08/bg.jpg"><img class="tutorial-image" title="bg" src="http://cubicleninjas.com/wp-content/uploads/2008/08/bg.jpg" alt="" width="450" height="378" /></a></p>
<p><strong>Editing the Background</strong></p>
<p>We now have our custom images snuggly in place.   Would it be possible to customize our background color or image?</p>
<p>Absolutely. As a matter of fact, if you can customize this you&#8217;ve learned how to customize any element of your theme &#8211; the same rules apply. We&#8217;ll be using an amazing plug-in for Firefox that helps us see what we&#8217;ll need to edit. This tool is called Firebug. <a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">Click here to install your copy before we begin.</a></p>
<p>1. With Firebug, finding out what the code is behind any part of our website is as easy as clicking. Let&#8217;s open Firebug by going to Tool>Firebug>Open in New Window within Firefox.</p>
<p style="text-align: center;"><a href="http://cubicleninjas.com/wp-content/uploads/2008/08/inspect.jpg"><img class="tutorial-image" title="inspect" src="http://cubicleninjas.com/wp-content/uploads/2008/08/inspect.jpg" alt="" width="450" height="157" /></a></p>
<p>2. At the top-left of Firebug there is an menu item called &#8220;Inspect&#8221;. Let&#8217;s click this.</p>
<p>3. As we run our mouse over the page we can see a blue outline appearing. These are the hidden elements of your webpage. If we mouse-over the top of our background and click, we see the specific code that controls this area.</p>
<p style="text-align: center;"><a href="http://cubicleninjas.com/wp-content/uploads/2008/08/firebug.jpg"><img class="tutorial-image" title="firebug" src="http://cubicleninjas.com/wp-content/uploads/2008/08/firebug.jpg" alt="" width="450" height="256" /></a></p>
<p>4. In Firebug&#8217;s top right corner it displays where this code is located. This class is located in a file called &#8220;pink.css&#8221;. All of the template variations have their own CSS file. This controls the look and feel for that specific style. Use a FTP program to find the folder where these CSS files are located.</p>
<p>It should look close to this:<br />
www.yourwebsitehere.com/wp-content/themes/vibrantcms/styles/</p>
<p>5. Next, use a text editor to open the &#8220;pink.css&#8221; file.</p>
<p>6. Once inside look for an entry that matches our Firebug name, &#8220;#featured&#8221;. It should look like this:</p>
<p>#featured  {<br />
background: #ffc0d4 url(pink/featuredbg.jpg) repeat-x top left;<br />
}</p>
<p>7. Looking at this class we can see how quickly we can modify our featured area:<strong><br />
&#8220;#FFC0D4&#8243;</strong> is the pink in our background, by changing this value we will modify the color<br />
<strong>&#8220;url(pink/featuredbg.jpg)&#8221;</strong> is referencing the gradient image across the top of the featured area<br />
<strong>&#8220;repeat-x scroll left top&#8221;</strong> tells the image to repeat horizontally and start at the top left</p>
<p>8. Let&#8217;s say we like our background gradient image, but we&#8217;d like there to be repeating text in this area. This would be as simple as finding the referenced image above and replacing it. (If you&#8217;re using a different style then Pink, your featured background image will be located in the folder name of that style.)</p>
<p>9. We can find this image at:<br />
www.yourwebsitehere.com/wp-content/themes/vibrantcms/styles/pink/featuredbg.jpg</p>
<p>10. Edit  and replace the old version of &#8220;featuredbg.jpg&#8221;. Your website now has a new repeating background image.</p>
<p style="text-align: center;"><a href="http://cubicleninjas.com/wp-content/uploads/2008/08/background.jpg"><img class="tutorial-image" title="background" src="http://cubicleninjas.com/wp-content/uploads/2008/08/background.jpg" alt="" width="450" height="359" /></a></p>
<p><strong>And that&#8217;s it! </strong>We&#8217;ve only begun editing our <em>Kitten Wars</em> website, and it looks very rough, but you can see how quickly we could change almost every aspect of the featured panel. And with your knowledge of Firebug exploring the remainder of your website should be that much easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.woothemes.com/2008/08/customizing-the-featured-panel/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
