<?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>Miralize.com&#187; Wordpress Theme  &#8211; Miralize Design</title>
	<atom:link href="http://miralize.com/category/web-design/wordpress-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://miralize.com</link>
	<description>The blog/portfolio of Sean O&#039; Grady</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:31:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Design a WordPress 2.7 Theme – Day 3 : Dynamic Sidebar and Functional Footer</title>
		<link>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-3-dynamic-sidebar-and-functional-footer/</link>
		<comments>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-3-dynamic-sidebar-and-functional-footer/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 11:07:51 +0000</pubDate>
		<dc:creator>Sean O'Grady</dc:creator>
				<category><![CDATA[Wordpress Theme]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[designs]]></category>
		<category><![CDATA[followers]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-3-dynamic-sidebar-and-functional-footer/</guid>
		<description><![CDATA[Introduction Although the main content is always the most important part of a web design, the secondary content plays a fundamental role in guiding the user through the website. The sidebar helps direct the flow of the page, gives it useful information, and can display some of the most important aspects of your website. Seeing [...]]]></description>
			<content:encoded><![CDATA[<h4>Introduction</h4>
<p>Although the main content is always the most important part of a web design, the secondary content plays a fundamental role in guiding the user through the website. The sidebar helps direct the flow of the page, gives it useful information, and can display some of the most important aspects of your website.</p>
<p>Seeing as these tutorials are based off of WordPress 2.7, there is no need to go into detail about static sidebars. You can easily add these in, with your knowledge of XHTML and the use of the very detailed WordPress Codex.</p>
<p>Footers are also a very important feature of your site. Because they are at the bottom, they are often overlooked. Many people don’t realise how important it is to have something to look at once you finish reading a post and so the footer is an ideal opportunity to maintain readership.<br />
<span id="more-556"></span></p>
<h4>Functions.php</h4>
<p><strong>Functions.php</strong> is used to add the dynamic sidebars and to format it. For this design, I am adding two widgetized sidebars, one for the right of the content and one for the footer .Add the following into your functions.php</p>
<p><a class="downloadlink" href="http://miralize.com/wp-content/uploads/2009/03/day3/functions.php.txt">Download the functions.php text</a></p>
<p><strong>name</strong> – The name we give our sidebars</p>
<p><strong>before_widget</strong> – This allows us to structure our widgets</p>
<p><strong>after_widget</strong> – This closes the tags opened in the before_widget</p>
<p><strong>before_title – </strong>Lets us add a heading before the widget content</p>
<p><strong>after_title</strong> – Closes the heading tag</p>
<p>We also added classes called ‘<strong>widget</strong>’ , ‘<strong>footerbox</strong>’ , and ‘<strong>%2$s</strong>’. The ‘<strong>%2$s</strong>’ is used to allow plugins to give their own class so we can customise each widget separately.</p>
<h4>Adding the Sidebar</h4>
<p>So now we have two sidebars</p>
<p><a href="http://miralize.com/wp-content/uploads/2009/03/image4.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" src="http://miralize.com/wp-content/uploads/2009/03/image-thumb3.png" border="0" alt="image" width="240" height="64" /></a></p>
<p>This is what they look like in the admin panel. The only problem  is that we have nothing in our template files to show our widgets. This can be rectified easily</p>
<p>Go into <strong>sidebar.php</strong> and copy in the following lines of code in between the <strong>‘secondary’ div tag</strong></p>
<p><a class="downloadlink" href="http://miralize.com/miralize.com/wp-content/uploads/2009/03/day3/dynamicwidgets.txt">Download dynamicwidgets.txt</a></p>
<p>Now upload <strong>sidebar.php</strong> and you should see your widgets underneath your posts</p>
<p><a href="http://miralize.com/wp-content/uploads/2009/03/image5.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" src="http://miralize.com/wp-content/uploads/2009/03/image-thumb4.png" border="0" alt="image" width="600" height="375" /></a></p>
<h4>Add Functionality To The Footer</h4>
<p>Now we are going to add the exact same code, in a different manner and in a different place, to add functions to the sidebar.</p>
<p>Add the following just after <strong>&lt;div id=”footer”&gt;</strong></p>
<p><a class="downloadlink" href="http://miralize.com/miralize.com/wp-content/uploads/2009/03/day3/footerwidgets.txt">Download footerwidgets.txt here</a><strong></strong></p>
<p>This places in an unordered list, with the dynamic sidebar “footer” enclosed. I’ve also added a div around the footer text “Copyright etc.. “ to make it easier to style.</p>
<h4>Conclusion</h4>
<p>So at the end of this lesson your files should be along the lines of these</p>
<p><a class="downloadlink" href="http://miralize.com/miralize.com/wp-content/uploads/2009/03/day3/sidebar.php.txt">Download the sidebar.php text</a></p>
<p><a class="downloadlink" href="http://miralize.com/miralize.com/wp-content/uploads/2009/03/day3/footer.php.txt">Download the footer.php text</a></p>
<p>It&#8217;s not much of a design but we are getting there. On Day 4 of Design a WordPress 2.7 Theme, we will be adding CSS (Finally!) just to structure our page a bit. Remember to <a href="http://miralize.com/rss">Subscribe to my RSS Feed</a> for daily updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-3-dynamic-sidebar-and-functional-footer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design a WordPress 2.7 Theme – Day 2 : File Separating and The Loop</title>
		<link>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-2-file-separating-and-the-loop/</link>
		<comments>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-2-file-separating-and-the-loop/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 00:00:38 +0000</pubDate>
		<dc:creator>Sean O'Grady</dc:creator>
				<category><![CDATA[Wordpress Theme]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[designs]]></category>
		<category><![CDATA[followers]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://miralize.com/?p=525</guid>
		<description><![CDATA[Introduction You have your basic page structure, but there are none of your posts visible. Because there is a lot of PHP needed, and because it can get messy some times, WordPress give you an easier way to separate your template theme pages into different files. With WordPress, you can and it is extreemly easy! [...]]]></description>
			<content:encoded><![CDATA[<h4>Introduction</h4>
<p>You have your basic page structure, but there are none of your posts visible. Because there is a lot of PHP needed, and because it can get messy some times, WordPress give you an easier way to separate your template theme pages into different files. With WordPress, you can and it is extreemly easy!</p>
<p><span id="more-525"></span></p>
<h4>File Separation</h4>
<p>Open  any IDE, and make five new pages</p>
<ul>
<li><strong>header.php</strong></li>
<li><strong>sidebar.php</strong></li>
<li><strong>footer.php</strong></li>
<li><strong>page.php</strong></li>
<li><strong>single.php</strong></li>
</ul>
<p>Now go into you<strong> index.php, </strong>cut everything from the top to the end of <strong>&lt;div id=”primary”,</strong> and place it in the <strong>header.php</strong>. Then go back into your index.php and type <strong>&lt;?php get_header(); ?&gt;. </strong>This tells your index,php to import the header file</p>
<p>We are now going to do the same for the sidebar and the footer. Cut from <strong>&lt;!&#8211;END PRIMARY –&gt;</strong> to <strong>&lt;!&#8211;END CONTENT &#8211;&gt;&lt;/div&gt;</strong> and place it  into sidebar.php. Then in<strong> index.php</strong> type<strong> &lt;?php get_sidebar(); ?&gt;.</strong></p>
<p>And finally from <strong>&lt;div id=&#8221;footer&#8221;&gt;</strong> to <strong>&lt;/html&gt; </strong>place everything into <strong>footer.php</strong>, and in <strong>index.php</strong> finally type <strong>&lt;?php get_footer(); ?&gt;</strong></p>
<p>Your index.php should now have three lines of PHP code. You now have the basis of a WordPress themes, without the post or pages, or sidebar, ooh and your missing all your styling. Basically you have most of the grunt work done. You should be so proud. Lets move onto more interesting things shall we?</p>
<p><strong>NOTE: These are proprietary tags i.e. if you type in &lt;?php get_menu(); ?&gt; and hope to have menu.php imported, this will not work.</strong></p>
<h4>The Loop</h4>
<p>The loop is where your posts are displayed. It is called The Loop because it loops a script to display several posts dynamically.</p>
<p>Add the following between your header and sidebar import</p>
<p><strong>&lt;?php if(have_posts()) : ?&gt;</strong><strong>&lt;?php while(have_posts()) : the_post(); ?&gt;</strong></p>
<p><strong>&lt;?php endwhile; ?&gt;</strong></p>
<p><strong>&lt;?php endif; ?&gt;</strong></p>
<p>This code checks for posts, repeats the number of posts until finished, then it ends the script. Simple enough. Now in between <strong>&lt;?php while(have_posts()) : the_post(); ?&gt;</strong> and <strong>&lt;?php endwhile; ?&gt;</strong> type in the following code</p>
<p><a class="downloadlink" href="http://miralize.com/wp-content/uploads/2009/03/day2/loopentry.txt">Download loopentry.txt here</a></p>
<h4>Conclusion</h4>
<p>So at the end of this lesson you should:</p>
<ul>
<li>Have six files with<strong> index.php</strong>, <strong>single.php</strong> and <strong>page.php</strong> importing the header, sidebar and footer.</li>
<li>The loop displaying your posts</li>
<li>A navigation at the bottom to get you go backwards and forwards.</li>
</ul>
<h4>Next</h4>
<p>On Day 3 of our Design a WordPress 2.7 Theme, we will be covering the dynamic sidebar and other adding functionality to our footer. Make sure you <a href="http://miralize.com/rss">Subscribe  to my RSS</a>, if you don’t want to miss the rest of these posts.</p>
<p>Also please <a href="http://miralize.com/web-design/wordpress-theme/">go back</a> and have a look at the other tutorials in the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-2-file-separating-and-the-loop/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Design a WordPress 2.7 Theme – Day 1 : Structure and Heading</title>
		<link>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-1-structure-and-heading/</link>
		<comments>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-1-structure-and-heading/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 23:06:23 +0000</pubDate>
		<dc:creator>Sean O'Grady</dc:creator>
				<category><![CDATA[Wordpress Theme]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[colour]]></category>
		<category><![CDATA[colours]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[day1]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[designs]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[followers]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[miralize]]></category>
		<category><![CDATA[s]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://miralize.com/?p=471</guid>
		<description><![CDATA[Introduction The first thing to consider when designing a WordPress theme is to think about the layout of site. Who is it for, why do they need it, how many columns, what colours? For this tutorial, I will be working on something to give away for free on this site ( a sort of follow-up [...]]]></description>
			<content:encoded><![CDATA[<h4>Introduction</h4>
<p>The first thing to consider when designing a WordPress theme is to think about the layout of site. Who is it for, why do they need it, how many columns, what colours? For this tutorial, I will be working on something to give away for free on this site ( a sort of follow-up to the series).  I cant decide on your design, so you will have to get all of these beforehand.<span id="more-471"></span></p>
<h4>The Heading</h4>
<p>So to start, open up Dreamweaver (or any other IDE) and create a PHP file and name it <strong>index.php</strong>. Then create a CSS file and name it<strong> style.css</strong>. In you <strong>index.php,</strong> there will be some text already in your code. Take every thing out of the <strong>&lt;head&gt;</strong> tag and substitute it for the following:</p>
<p><a href="http://miralize.com/wp-content/uploads/2009/03/day1/head.txt" class="downloadlink">Download head.txt here</a></p>
<p><strong>&lt;?php wp_title (); ?&gt;  – </strong>This gives dynamic info as the Page Title. This is extremely useful for SEO as it changes for every post.</p>
<p><strong>&lt;?php bloginfo(&#8216;template_directory&#8217;); ?&gt; &amp; &lt;?php bloginfo(&#8216;stylesheet_url&#8217;); ?&gt; – </strong>This just gives the location of the template directory and stylesheet. The first one is useful if you need to add a second CSS file (like I will be doing soon), JavaScript file, or an image. <strong></strong></p>
<p><strong>&lt;?php wp_head(); ?&gt; – </strong>This exports the files WordPress and its plug-ins needs to the HTML. Some of this include widget specific CSS, J-Query embedding, or just  new title-bar text.</p>
<h4>Stylesheet setup</h4>
<p>Head into style.css and remove everything inside it.  Now because WP uses the stylesheet for all the template metadata (Useful Information), it is vital that you write this code correctly.</p>
<p><a href="http://miralize.com/wp-content/uploads/2009/03/day1/stylemeta.txt" class="downloadlink">Download stylemeta.txt here</a></p>
<p>This just gives data, like the version of the template, template name etc… You can edit it accordingly. This is all we will be doing in the CSS today, we will not go that far so soon. For now, we will just work on the HTML.</p>
<h4>The Basic Structure.</h4>
<p>Ok now we are going to write the basic structure of our theme. We are not going to be implementing CSS just yet. I like to use a blank file with all this code already written but you can see it all here. Put all of this into the <strong>&lt;body&gt;</strong> tag.</p>
<p><a href="http://http://miralize.com/wp-content/uploads/2009/03/day1/body.txt" class="downloadlink">Download body.txt here</a></p>
<p>This is just basic formatting, feel free to change it around as much as you like, just remember what id’s you use to make sure you don’t get confused with mine. Most of it is self-explanatory. However you will notice I have added a few PHP phrases <strong>&lt;? wp_list_pages(&#8216;title_li=&amp;depth=1&#8242;); ?&gt;</strong> &#8211; This prints out links for our menu. This is often an overlooked part of designing a WordPress theme, but it makes things easier in the long run. “depth=1” Makes sure that no sub-pages are seen. If you want to remove that go ahead but for this theme, I’m leaving it out <strong>&lt;? bloginfo(&#8216;url&#8217;);?&gt;</strong> &amp;<strong> &lt;? bloginfo(&#8216;name&#8217;);?&gt; –</strong> This are handy tags to print out the URL and Name of the blog.</p>
<h4>Testing</h4>
<p>Now upload these files onto your web server in a folder in your <strong>wp-content/themes/</strong> folder. Now enable your theme in the Backend and see if things are correct. You should see a page with your site name and a list of your pages, with no styling, and a footer with copyright information.</p>
<h4>Conclusion</h4>
<p>So at the end of this lesson you should:</p>
<ul>
<li>Be familiar with the <strong>PHP</strong> involved in the <strong>&lt;head&gt;</strong> tag</li>
<li>Have the metadata implemented in the <strong>CSS</strong></li>
<li>Have a basic webpage structure ready for CSS Styling</li>
</ul>
<p>Your HTML Page should look like this</p>
<p><a href="http://http://miralize.com/wp-content/uploads/2009/03/day1/day1.txt" class="downloadlink">Download day1.txt here</a></p>
<h4>Next</h4>
<p>On Day 2 of our Design a WordPress 2.7 Theme, we will be covering the loop and other php snippets to go into our theme. Make sure you S<a href="http://miralize.com/rss">ubscribe  to my RSS</a>, if you don’t want to miss the rest of these posts. Also please <a href="http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme/ ">go back</a> and have a look at the other tutorials in the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-1-structure-and-heading/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Design a WordPress 2.7 Theme</title>
		<link>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme/</link>
		<comments>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 22:44:35 +0000</pubDate>
		<dc:creator>Sean O'Grady</dc:creator>
				<category><![CDATA[Wordpress Theme]]></category>
		<category><![CDATA[ambitious series]]></category>
		<category><![CDATA[basic knowledge]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[coda]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[designs]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[expression]]></category>
		<category><![CDATA[Favourites]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[header design]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[web designer]]></category>
		<category><![CDATA[web developer]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress themes]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://miralize.com/?p=448</guid>
		<description><![CDATA[Ok so I&#8217;m a fan of tutorials that show you step by step as to how to accomplish something. One of my favourites, and one that has helped me in my quest in becoming a Web Designer is WPDesigners.com&#8217;s &#8211; So you want to create WordPress themes huh?. It was so detailed and informative, but [...]]]></description>
			<content:encoded><![CDATA[<p>Ok so I&#8217;m a fan of tutorials that show you step by step as to how to accomplish something. One of my favourites, and one that has helped me in my quest in becoming a Web Designer is <a href="http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/">WPDesigners.com&#8217;s &#8211; So you want to create WordPress themes huh?</a>. It was so detailed and informative, but sadly that was 2007, and now it&#8217;s time for a refresh.</p>
<p>Seeing as he doesn&#8217;t seem to be doing so, I thought I might give it a shot. This is an extremely ambitious series of posts, as this is a fairly new blog, from a fairly new blogger/web designer. So please, don&#8217;t treat my words as gospel, and always strive for improvement. I shall be doing these posts every two -three days so please stick around. If you have any trouble you can find me <a href="http://twitter.com/miralize">here</a> <a href="http://twitter.com/miralize"></a><span id="more-448"></span></p>
<h4>You will need</h4>
<ul>
<li>A Self-hosted <a href="http://wordpress.org">WordPress</a> blog</li>
<li>Basic Knowledge of xHTML and CSS</li>
<li>A IDE (Dreamweaver, Expression, Coda etc&#8230;)</li>
<li>A inline browser tool such as <a href="http://www.getfirebug.com">Firebug</a> and <a href="http://https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer Toolbar</a></li>
</ul>
<h4>Lessons</h4>
<ul>
<li><a href="http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-1-structure-and-heading/">Day 1 &#8211; The Basic Structure and Header</a></li>
<li><a href="http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-2-file-separating-and-the-loop/">Day 2 &#8211; File Separating And The Loop</a></li>
<li><a href="http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme-day-3-dynamic-sidebar-and-functional-footer/"Day 3 - Dynamic Sidebar and Functional Footer</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://miralize.com/web-design/wordpress-theme/design-a-wordpress-27-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
