<?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>AmberWeinberg.com &#187; php</title> <atom:link href="http://www.amberweinberg.com/tag/php/feed/" rel="self" type="application/rss+xml" /><link>http://www.amberweinberg.com</link> <description>Design, Development and Freelance Articles and Tutorials</description> <lastBuildDate>Fri, 03 Feb 2012 15:14:56 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Step-By-Step: Turning A Design Responsive in WordPress, Part 3</title><link>http://www.amberweinberg.com/step-by-step-turning-a-design-responsive-in-wordpress-part-3/</link> <comments>http://www.amberweinberg.com/step-by-step-turning-a-design-responsive-in-wordpress-part-3/#comments</comments> <pubDate>Wed, 12 Oct 2011 16:37:12 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[HTML5]]></category> <category><![CDATA[php]]></category> <category><![CDATA[responsive]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=4844</guid> <description><![CDATA[Back for another week? In the first week, we got our design ready and coded the header. Last week, we coded the homepage content. This week we&#8217;ll be finishing up the homepage and the footer, and doing some testing. Maybe we&#8217;ll even get into one of the sub page designs, maybe not. Other Posts In [...]]]></description> <content:encoded><![CDATA[<p>Back for another week? In the first week, we got our design ready and coded the header. Last week, we coded the homepage content. This week we&#8217;ll be finishing up the homepage and the footer, and doing some testing. Maybe we&#8217;ll even get into one of the sub page designs, maybe not.</p><h3>Other Posts In This Series</h3><ul><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L3N0ZXAtYnktc3RlcC10dXJuaW5nLWEtZGVzaWduLXJlc3BvbnNpdmUtaW4td29yZHByZXNzLXBhcnQtMQ==">Part 1</a></li><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L3N0ZXAtYnktc3RlcC10dXJuaW5nLWEtZGVzaWduLXJlc3BvbnNpdmUtaW4td29yZHByZXNzLXBhcnQtMg==">Part 2</a></li><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L3N0ZXAtYnktc3RlcC10dXJuaW5nLWEtZGVzaWduLXJlc3BvbnNpdmUtaW4td29yZHByZXNzLXBhcnQtNA==">Part 4</a></li><li><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=L3N0ZXAtYnktc3RlcC10dXJuaW5nLWEtZGVzaWduLXJlc3BvbnNpdmUtaW4td29yZHByZXNzLXBhcnQtNQ==">Part 5</a></li></ul><h3>The Footer</h3><p>The footer is probably the easiest part of the whole design. We simply need to float the footer 100% and add the background and the centering container.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #339933;">&lt;</span>footer<span style="color: #339933;">&gt;</span>
			<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;container&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>footer<span style="color: #339933;">&gt;</span></pre></div></div><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;">footer <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</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;">15px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>I went ahead and added a widget bar to the footer, so I wouldn&#8217;t need to go into the code to update the content.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&lt;footer&gt;
			&lt;ul class=&quot;container&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: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Footer'</span><span style="color: #009900;">&#41;</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> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/ul&gt;
		&lt;/footer&gt;</pre></div></div><p>This time, while we have four different columns, they&#8217;re all different widths and style, so it&#8217;s time to break out the maths again. The first widget&#8217;s target width is 255px, and with the parent being, of course, 960px that makes it 26.5625% wide. The second column is 192px so 20% width, third column is 212px, 22.083333%, and the fourth is 130px, 13.541667%. This leaves us with 5.9375% of right margins for the first three columns. Broken down, the equation comes to:</p><p>26.5625 + 20 + 22.083333 + 13.541667 (the width of the columns) = 82.1875 (total width of columns) &#8211; 100 (percent) = 17.8125 (space left over before we hit 100%) / 3 (number of columns needing margins) = 5.9375 (amount each column can have as a margin).</p><p>It seems more complicated than it is, I promise.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;">footer <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#222</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</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;">15px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
footer li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5.9375%</span><span style="color: #00AA00;">;</span>  <span style="color: #00AA00;">&#125;</span>
footer <span style="color: #cc00cc;">#text-14</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">26.5625%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
footer <span style="color: #cc00cc;">#text-15</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
footer <span style="color: #6666ff;">.widget_twitter_vjck</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">22.083333%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
footer <span style="color: #cc00cc;">#text-17</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13.541667%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>Let&#8217;s check it in IE7-9 now. A few styling bugs in IE7, but nothing that wasn&#8217;t easily fixed. Now for the devices. iPad landscape and portrait look great. Not so much with the iPhone in both portrait and landscape. We&#8217;ll need to make the columns on their own line, like we did with the content above.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media only screen and (max-width: 480px) {</span>
		<span style="color: #cc00cc;">#slider</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;">41.5%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
		<span style="color: #6666ff;">.column</span><span style="color: #00AA00;">,</span> footer li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p>I wasn&#8217;t happy with the way the hero area was displaying across resolutions. The circle background and border just wouldn&#8217;t match up correctly. Finally realized that by removing the border from the background and making it an actual border, I could make it match in sizes. For IE, I just specified it&#8217;s old image with the PNG border, because I didn&#8217;t want to compromise on the style. The new slider area now looks like:</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#sliderBkg</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'images/sliderBkg.png'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> background-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</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> <span style="color: #933;">100%</span><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: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">max-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">328px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">max-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1099px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#slider</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">229</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">118</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">61</span><span style="color: #00AA00;">,</span>.2<span style="color: #00AA00;">&#41;</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> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">183</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">91</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">43</span><span style="color: #00AA00;">,</span>.2<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">60.670732%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6%</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">6.1%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">max-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">199px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">max-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">960px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">87.591241%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#slider</span> a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">max-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">199px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#slider</span> img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">max-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.no-backgroundsize</span> <span style="color: #cc00cc;">#sliderBkg</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.no-textshadow</span> <span style="color: #cc00cc;">#sliderBkg</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;">328px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1096px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.no-backgroundsize</span> <span style="color: #cc00cc;">#sliderBkg</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'images/sliderBkgIE.png'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.no-backgroundsize</span> <span style="color: #cc00cc;">#slider</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>Now that we&#8217;ve finished the homepage, it&#8217;s time to do some extra testing. First, we need to validate the doc. It may not seem important anymore, but I believe that it&#8217;s essential to help find bugs and issues, as well as promoting standards.</p><p>And ouch..there&#8217;s a lot&#8230;31 errors which is more errors than I&#8217;ve ever had in my entire life&#8230;on closer inspection it looks like they&#8217;re mostly due to the HTML5 boilerplate being implemented correctly. Simply by moving the IE if statements below the doctype (I coulda sworn that&#8217;s how they where in the example!), our errors get cut down to 8. These were easily fixed, except for one created by a plugin and a standard WP validation error (hoping they fix that soon!).</p><p>What about Android? It&#8217;s time we fired up the simulator for that as well.</p><p>And woot! Perfect as well. Let&#8217;s move on.</p><h3>The Portfolio Landing Page</h3><p>The portfolio landing page displays all of the portfolio pieces, separated by category. I&#8217;m also going to include some neat rollover effects here.</p><p>This section is pretty basic. We&#8217;ll be looping through each category, and displaying the thumbnails to the right, with the title to the left:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;?php get_header(); ?&gt;
&nbsp;
	&lt;div class=&quot;container&quot;&gt;
		&lt;section id=&quot;heading&quot;&gt;
			&lt;h1&gt;Client Portfolio&lt;/h1&gt;
			&lt;p&gt;&lt;?php category_description();?&gt;&lt;/p&gt;
		&lt;/section&gt;
&nbsp;
		&lt;section&gt;
			&lt;h2&gt;WordPress&lt;/h2&gt;
&nbsp;
			&lt;div class=&quot;items&quot;&gt;
				&lt;?php query_posts('work=wordpress-development&amp;posts_per_page=-1'); if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
					&lt;a title=&quot;&lt;?php the_title();?&gt;&quot; href=&quot;&lt;?php the_permalink();?&gt;&quot;&gt;&lt;?php the_post_thumbnail('portfoliolanding');?&gt;&lt;/a&gt;
				&lt;?php endwhile; wp_reset_query(); ?&gt;
			&lt;/div&gt;	
		&lt;/section&gt;
&nbsp;
		&lt;section&gt;
			&lt;h2&gt;Mobile&lt;/h2&gt;
&nbsp;
			&lt;div class=&quot;items&quot;&gt;
				&lt;?php query_posts('work=mobile-development&amp;posts_per_page=-1'); if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
					&lt;a title=&quot;&lt;?php the_title();?&gt;&quot; href=&quot;&lt;?php the_permalink();?&gt;&quot;&gt;&lt;?php the_post_thumbnail('portfoliolanding');?&gt;&lt;/a&gt;
				&lt;?php endwhile; wp_reset_query(); ?&gt;
			&lt;/div&gt;	
		&lt;/section&gt;
&nbsp;
		&lt;section&gt;
			&lt;h2&gt;CoreCommerce&lt;/h2&gt;
&nbsp;
			&lt;div class=&quot;items&quot;&gt;
				&lt;?php query_posts('work=corecommerce&amp;posts_per_page=-1'); if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
					&lt;a title=&quot;&lt;?php the_title();?&gt;&quot; href=&quot;&lt;?php the_permalink();?&gt;&quot;&gt;&lt;?php the_post_thumbnail('portfoliolanding');?&gt;&lt;/a&gt;
				&lt;?php endwhile; wp_reset_query(); ?&gt;
			&lt;/div&gt;	
		&lt;/section&gt;
&nbsp;
		&lt;section&gt;
			&lt;h2&gt;Static&lt;/h2&gt;
&nbsp;
			&lt;div class=&quot;items&quot;&gt;
				&lt;?php query_posts('work=static-development&amp;posts_per_page=-1'); if ( have_posts() ) while ( have_posts() ) : the_post(); ?&gt;
					&lt;a title=&quot;&lt;?php the_title();?&gt;&quot; href=&quot;&lt;?php the_permalink();?&gt;&quot;&gt;&lt;?php the_post_thumbnail('portfoliolanding');?&gt;&lt;/a&gt;
				&lt;?php endwhile; wp_reset_query(); ?&gt;
			&lt;/div&gt;	
		&lt;/section&gt;
	&lt;/div&gt;
&nbsp;
&lt;?php get_footer(); ?&gt;</pre></div></div><p>We&#8217;ll need to start out styling the heading section first. This is simple to get working responsively, by just giving it 100% width and allowing the browser to resize at will.</p><p>The circle headings and thumbnails will remain a fixed size however, to preserve the integrity of the layout.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#heading</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'images/divider.png'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'images/divider.png'</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">22px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#heading</span> h1 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">165</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">206</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">205</span><span style="color: #00AA00;">,</span>.6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">81px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fbfed6</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">93px</span><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: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">70px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">163px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.items</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</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;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">80%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.items</span> img<span style="color: #6666ff;">.wp-post-image</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">229</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">118</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">61</span><span style="color: #00AA00;">,</span>.2<span style="color: #00AA00;">&#41;</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> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">183</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">91</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">43</span><span style="color: #00AA00;">,</span>.2<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><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: #933;">6px</span> <span style="color: #933;">6px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.items</span> a<span style="color: #3333ff;">:nth-of-</span>type<span style="color: #00AA00;">&#40;</span>3n<span style="color: #00AA00;">+</span><span style="color: #cc66cc;">3</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>When the window is reduced, the thumbnails fall below the circle nicely, but the circle itself is left in the top left corner, so we&#8217;ll add a rule to a media query to position in the middle and give it a bit of space at the bottom.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><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: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> <span style="color: #6666ff;">.items</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> <span style="color: #6666ff;">.items</span> img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><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: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>Now for the hovers. I wanted the the titles in the circle to disappear and a short description to appear when the user hovered over any item in that section. I also wanted to do this in CSS only. Here&#8217;s my solution:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;h2&gt;&lt;span class=&quot;title&quot;&gt;Mobile&lt;/span&gt;&lt;span class=&quot;desc&quot;&gt;mobile web sites built in CSS3, HTML &amp;amp; JS&lt;/span&gt;&lt;/h2&gt;</pre></div></div><p>I put the description and title into seperate spans in HTML, which I hide with display none in CSS. Then when the user hovered over the items div, it would display the span.desc and hide the span.title</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">165</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">206</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">205</span><span style="color: #00AA00;">,</span>.6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">81px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fbfed6</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">93px</span><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: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">70px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">163px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span><span style="color: #3333ff;">:nth-of-</span>type<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #00AA00;">&#41;</span> h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">229</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">118</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">61</span><span style="color: #00AA00;">,</span>.6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span><span style="color: #3333ff;">:nth-of-</span>type<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">4</span><span style="color: #00AA00;">&#41;</span> h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">238</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">142</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">104</span><span style="color: #00AA00;">,</span>.6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> h2 span<span style="color: #6666ff;">.desc</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;">#222</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;">.7125em</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;">normal</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.55em</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-10px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> h2 span<span style="color: #6666ff;">.desc</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span><span style="color: #3333ff;">:hover </span>h2 span<span style="color: #6666ff;">.title</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: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span><span style="color: #3333ff;">:hover </span>h2 span<span style="color: #6666ff;">.desc</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;">block</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.items</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</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;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">80%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.items</span> a<span style="color: #3333ff;">:nth-of-</span>type<span style="color: #00AA00;">&#40;</span>3n<span style="color: #00AA00;">+</span><span style="color: #cc66cc;">3</span><span style="color: #00AA00;">&#41;</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.items</span> img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">229</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">118</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">61</span><span style="color: #00AA00;">,</span>.2<span style="color: #00AA00;">&#41;</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> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">183</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">91</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">43</span><span style="color: #00AA00;">,</span>.2<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><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: #933;">6px</span> <span style="color: #933;">6px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.items</span> img<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> opacity<span style="color: #00AA00;">:</span> .5<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>Nothing to it! Doing a quick check in the iPhone and iPad, the iPhone looks great but we have a few issues on the iPad. We basically just need to move our statements around.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media only screen and (max-width: 960px) {</span>
	header <span style="color: #6666ff;">.container</span> <span style="color: #00AA00;">&gt;</span> a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</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: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	header ul <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;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	header ul li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	header li<span style="color: #6666ff;">.menu-item-4780</span><span style="color: #00AA00;">,</span> header li<span style="color: #6666ff;">.menu-item-4782</span><span style="color: #00AA00;">,</span> header li<span style="color: #6666ff;">.menu-item-4781</span><span style="color: #00AA00;">,</span> header li<span style="color: #6666ff;">.menu-item-4783</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">9px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #cc00cc;">#slider</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;">14.70732%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><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: #933;">20px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> <span style="color: #6666ff;">.items</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: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.tax-work</span> <span style="color: #6666ff;">.portfolio</span> <span style="color: #6666ff;">.items</span> img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p>This results in the circle on top and rows of two thumbnails on portrait mode of the iPad, full regular display on landscape mode of the iPad, and then the circles on top and rows of one thumbnail on both views of the iPod (and Android of course!).</p><p>Now it&#8217;s time to take a quick peek at IE&#8230;which needs fall backs for the circles and the borders since IE8 and below doesn&#8217;t support RGBA.</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.no-rgba</span> <span style="color: #6666ff;">.portfolio</span> h2 <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">165</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">206</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">205</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.no-rgba</span> <span style="color: #6666ff;">.items</span> img <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">229</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">118</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">61</span><span style="color: #00AA00;">&#41;</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: #993333;">rgb</span><span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">183</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">91</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">43</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></pre></div></div><p>While not the prettiest, having rounded corners and opacity just isn&#8217;t a big enough issue for me to make image fallbacks&#8230;plus the amount of IE8 and below users I have is less than 2% of my total traffic.</p><h3>Another End!</h3><p>We&#8217;ll be back next time for some more responsive goodness!</p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=4844" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/step-by-step-turning-a-design-responsive-in-wordpress-part-3/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Hijinks: A Developer&#8217;s Blank WordPress Theme</title><link>http://www.amberweinberg.com/hijinks-a-wordpress-basic-framework/</link> <comments>http://www.amberweinberg.com/hijinks-a-wordpress-basic-framework/#comments</comments> <pubDate>Tue, 13 Sep 2011 14:30:57 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[extras]]></category> <category><![CDATA[projects]]></category> <category><![CDATA[development]]></category> <category><![CDATA[download]]></category> <category><![CDATA[php]]></category> <category><![CDATA[tools]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=3415</guid> <description><![CDATA[A lot of people have been asking if I use a framework for WordPress. I use my own custom blankish framework that allows me to quickly get started on projects. I&#8217;ve recently cleaned it up with the launch of WordPress 3.0 and thought I&#8217;d give it to you guys for free. It&#8217;s basically the core [...]]]></description> <content:encoded><![CDATA[<p>A lot of people have been asking if I use a framework for WordPress. I use my own custom blankish framework that allows me to quickly get started on projects.</p><p>I&#8217;ve recently cleaned it up with the launch of WordPress 3.0 and thought I&#8217;d give it to you guys for free. It&#8217;s basically the core files, cleaned up, with all the nonsense divs removed, a basic structure and some basic CSS.</p><p>Have fun!</p><p><strong>You can now <a
title=\"HIjinks Custom Blank Developer's WordPress Theme\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cHM6Ly9naXRodWIuY29tL2FtYmVyd2VpbmJlcmcvSGlqaW5rcy0tQS1EZXZlbG9wZXItcy1CbGFuay1Xb3JkUHJlc3MtVGhlbWUvdHJlZS9tYXN0ZXIvaGlqaW5rcw==">Download Hijinks Version 2.6</a> from Github</strong></p><p>Any requests or bugs? Let me know and I&#8217;ll get on it <img
src='http://www.amberweinberg.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><h3>Old Changelog</h3><p><strong>Features in V 2.6</strong></p><ul><li>Cleaned up CSS</li><li>Removed extra HTML</li><li>Indented head elements for easier reading</li><li>Added sample custom post types w/ sample custom taxonomies applied</li></ul><p><strong>Features in V 2.5</strong></p><ul><li>Removed Timthumb</li><li>Added Post Thumbnails</li><li>Cleaned up CSS</li></ul><p><strong>Features in V 2.4</strong></p><ul><li>Fixed error in search.php template</li><li>Cleaned up comments.php code</li></ul><p><strong>Features in V 2.3</strong></p><ul><li>Added comments template into single.php</li><li>Cleaned up/shortened CSS reset</li></ul><p><strong>Features in V 2.2</strong></p><ul><li>Basic Comments Styling (Avoids the ugly stock styling)</li><li>Alphabetical ordering of declarations in CSS</li></ul><p><strong>Features in V 2.1</strong></p><ul><li>Removal of container div &#8211; now harnessing HTML/Body tags as container &amp; cleaner code!</li><li>Shortening of  CSS Reset</li><li>Added more elements to CSS</li></ul><p><strong>Features in V 2.0</strong></p><ul><li>HTML5 compliant!</li><li>HTML5 header components</li><li>Cleaned up code</li><li>Removal of some branded areas</li><li>Timthumb support</li><li>WordPress 3 menu support (functions file)</li></ul><p><strong>Features in V 1.1</strong></p><ul><li>Bug Fix &#8211; PHP errors in Search template</li></ul><p><strong>Features in V 1.0</strong></p><ul><li>XHTML 1.0 compliant</li><li>CSS Reset</li><li>Stripped Loops, Divs</li><li>Custom search form w/ javascript text remove on click</li><li>Built-in functions: Multiple excerpt lengths, except removed [...],  sidebar</li></ul> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=3415" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/hijinks-a-wordpress-basic-framework/feed/</wfw:commentRss> <slash:comments>66</slash:comments> </item> <item><title>Think Vitamin Membership Review–Great Way to Expand Your Web Knowledge</title><link>http://www.amberweinberg.com/think-vitamin-membership-review%e2%80%93great-way-to-expand-your-web-knowledge/</link> <comments>http://www.amberweinberg.com/think-vitamin-membership-review%e2%80%93great-way-to-expand-your-web-knowledge/#comments</comments> <pubDate>Tue, 26 Jul 2011 13:30:33 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[design]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[HTML5]]></category> <category><![CDATA[iphone]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[objective c]]></category> <category><![CDATA[php]]></category> <category><![CDATA[reviews]]></category> <category><![CDATA[tools]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=4564</guid> <description><![CDATA[I’ve been investing a lot of my time lately on learning new things. I prefer to stay a front-end developer, but I’ve always wanted to play in different languages and keep up to date with design trends. Following long how-to books really isn’t my thing, as I usually end up falling asleep before the first [...]]]></description> <content:encoded><![CDATA[<p>I’ve been investing a lot of my time lately on learning new things. I prefer to stay a front-end developer, but I’ve always wanted to play in different languages and keep up to date with design trends. Following long how-to books really isn’t my thing, as I usually end up falling asleep before the first chapter ends.</p><p>I’ve never been a big fan of video on the web either, since I’m never at my computer unless I’m working so I never have time to watch. However, upon learning that Think Vitamin created a new membership service, called Think Vitamin Membership, I was immediately interested.</p><p><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2ZyZWVsYW5jZWZvbGRlci5jb20vZXhwYW5kaW5nLXlvdXItd2ViLWtub3dsZWRnZS13aXRoLWEtdGhpbmstdml0YW1pbi1tZW1iZXJzaGlwLw==" target=\"_blank\">Read the rest of my post on FreelanceFolder</a></p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=4564" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/think-vitamin-membership-review%e2%80%93great-way-to-expand-your-web-knowledge/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CoreCommerce Token Guide eBook</title><link>http://www.amberweinberg.com/corecommerce-token-guide-ebook/</link> <comments>http://www.amberweinberg.com/corecommerce-token-guide-ebook/#comments</comments> <pubDate>Thu, 21 Jul 2011 15:52:27 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[extras]]></category> <category><![CDATA[ebook]]></category> <category><![CDATA[eCommerce]]></category> <category><![CDATA[php]]></category> <category><![CDATA[tutorial]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=4549</guid> <description><![CDATA[Just finished writing a new guide for CoreCommerce&#8216;s new php-less token system. Enjoy! View &#38; Download the eBook]]></description> <content:encoded><![CDATA[<p>Just finished writing a new guide for <a
title=\"CoreCommerce\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5zaGFyZWFzYWxlLmNvbS9yLmNmbT9iPTIwNTE4OSZhbXA7dT0zOTU4ODcmYW1wO209MjQ3NzUmYW1wO3VybGxpbms9JmFtcDthZmZ0cmFjaz0=" target=\"_blank\">CoreCommerce</a>&#8216;s new php-less token system. Enjoy!</p><p><a
title=\"CoreCommerce Token Guide\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cHM6Ly93d3cuY29yZWNvbW1lcmNlLmNvbS9jb3JlY29tbWVyY2VfY3VzdG9tX2d1aWRlLnBkZg==" target=\"_blank\">View &amp; Download the eBook</a></p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=4549" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/corecommerce-token-guide-ebook/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>How To Build A WordPress CMS Theme – Part 7: Subpages, Finale and an eBook!</title><link>http://www.amberweinberg.com/how-to-build-a-wordpress-cms-theme-%e2%80%93-part-7-subpages-finale-and-an-ebook/</link> <comments>http://www.amberweinberg.com/how-to-build-a-wordpress-cms-theme-%e2%80%93-part-7-subpages-finale-and-an-ebook/#comments</comments> <pubDate>Fri, 24 Jun 2011 15:19:12 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[php]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=4437</guid> <description><![CDATA[We&#8217;ve come a long way through the series, and sadly, it&#8217;s time to finish up! All we&#8217;ve got left is a couple of subpages, so let&#8217;s go! PART 1: Theme Basics PART 2: Let’s Get Started PART 3: Built In Functions PART 4: Coding The Header PART 5: Coding The Homepage PART 6: Coding The [...]]]></description> <content:encoded><![CDATA[<p>We&#8217;ve come a long way through the series, and sadly, it&#8217;s time to finish up! All we&#8217;ve got left is a couple of subpages, so let&#8217;s go!</p><ul><li><a
title=\"How To Build A WordPress CMS Theme – Part 1: Theme Basics\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLXBhcnQtMS10aGVtZS1iYXNpY3Mv">PART 1: Theme Basics</a></li><li><a
title=\"How To Build A WordPress CMS Theme – Part 2: Let’s Get Started\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTItbGV0cy1nZXQtc3RhcnRlZC8=">PART 2: Let’s Get Started</a></li><li><a
title=\"How To Build A WordPress CMS Theme – Part 3: Built In Functions\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTMtYnVpbHQtaW4tZnVuY3Rpb25zLw==">PART 3: Built In Functions</a></li><li><a
title=\"How To Build A WordPress CMS Theme – Part 4: Coding The Header\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTQtY29kaW5nLXRoZS1oZWFkZXIv">PART 4: Coding The Header</a></li><li><a
title=\"How To Build A WordPress CMS Theme – Part 5: Coding The Homepage\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTUtY29kaW5nLXRoZS1ob21lcGFnZS8=">PART 5: Coding The Homepage</a></li><li><a
title=\"How To Build A WordPress CMS Theme – Part 6: The Footer!\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTYtdGhlLWZvb3Rlci8=">PART 6: Coding The Footer</a></li></ul><p>Remember you can see the <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9kZW1vcy93b3JkcHJlc3NDTVM=">demo of the WordPress version here</a>, and see the <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL290dGF3YWNha2Vjb21wYW55LmNvbS8=">regular HTML/CSS site</a> here. You can also download everything in <a
title=\"How To Build A WordPress CMS Theme – Part 4: Coding The Header\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTQtY29kaW5nLXRoZS1oZWFkZXIv">Part 4</a> . Let&#8217;s get it started!</p><h3>Chapter 18: The About Page</h3><p>Here&#8217;s the regular HTML content for the about page:</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;main&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;title&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>h2<span style="color: #339933;">&gt;</span>About<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
		<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;about&quot;</span><span style="color: #339933;">&gt;</span>
			<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;aboutHeader&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Discovery<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<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;aboutText&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Sophie discovered the sweet art of cake design when the search <span style="color: #b1b100;">for</span> her own	wedding cake ended in disappointment<span style="color: #339933;">.</span> Sophie believes that a cake should not only taste great<span style="color: #339933;">,</span> but should be a spectacular centerpiece that captures both the style and mood of an event<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<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;about&quot;</span><span style="color: #339933;">&gt;</span>
			<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;aboutHeader&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>So the story goes<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
			<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;aboutText&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Trained by some of the most prestigious cake designers in the country<span style="color: #339933;">,</span> Sophie brings a combination of education<span style="color: #339933;">,</span> natural artistic talents<span style="color: #339933;">,</span> a meticulous eye <span style="color: #b1b100;">for</span> detail and an eye <span style="color: #b1b100;">for</span> colour to every custom cake she creates<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Inspired by the endless possibilities of the edible arts<span style="color: #339933;">,</span> Sophie works with her clients imaginations to bring their vision to cake<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>		
		<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;about&quot;</span><span style="color: #339933;">&gt;</span>
			<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;aboutHeader borderBottom fixed&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Contact<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<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;aboutText borderBottom&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>For more information<span style="color: #339933;">,</span> contact us via email at <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailto:info@sophiebifieldcakecompany.com&quot;</span><span style="color: #339933;">&gt;</span>info<span style="color: #339933;">@</span>sophiebifieldcakecompany<span style="color: #339933;">.</span>com<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span> or by telephone at <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">613</span><span style="color: #009900;">&#41;</span> <span style="color: #cc66cc;">869</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">7674</span><span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>		
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div><p>The about page is easy and mostly just a content dump. Open up that page inside of the WordPress admin and dump the following content in</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;about&quot;</span><span style="color: #339933;">&gt;</span>
			<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;aboutHeader&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Discovery<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<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;aboutText&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Sophie discovered the sweet art of cake design when the search <span style="color: #b1b100;">for</span> her own	wedding cake ended in disappointment<span style="color: #339933;">.</span> Sophie believes that a cake should not only taste great<span style="color: #339933;">,</span> but should be a spectacular centerpiece that captures both the style and mood of an event<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<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;about&quot;</span><span style="color: #339933;">&gt;</span>
			<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;aboutHeader&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>So the story goes<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
			<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;aboutText&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Trained by some of the most prestigious cake designers in the country<span style="color: #339933;">,</span> Sophie brings a combination of education<span style="color: #339933;">,</span> natural artistic talents<span style="color: #339933;">,</span> a meticulous eye <span style="color: #b1b100;">for</span> detail and an eye <span style="color: #b1b100;">for</span> colour to every custom cake she creates<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Inspired by the endless possibilities of the edible arts<span style="color: #339933;">,</span> Sophie works with her clients imaginations to bring their vision to cake<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>		
		<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;about&quot;</span><span style="color: #339933;">&gt;</span>
			<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;aboutHeader borderBottom fixed&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Contact<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
			<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;aboutText borderBottom&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>For more information<span style="color: #339933;">,</span> contact us via email at <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mailto:info@sophiebifieldcakecompany.com&quot;</span><span style="color: #339933;">&gt;</span>info<span style="color: #339933;">@</span>sophiebifieldcakecompany<span style="color: #339933;">.</span>com<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span> or by telephone at <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">613</span><span style="color: #009900;">&#41;</span> <span style="color: #cc66cc;">869</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">7674</span><span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div><p>Now, depending on how savvy your client is, you may want to break this done into custom fields, since it includes a lot of divs. I don&#8217;t think it&#8217;s too necessary here, because when the client views the regular WYSIWYG, they&#8217;ll be able to edit the content without messing with the layout too much.</p><p> Check out the about page right now, and you&#8217;ll see it&#8217;s a mess of ugliness. We need to add the #main container and the #title div to our page template &#8211; page.php:</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> get_header<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>
&nbsp;
	&lt;div id=&quot;main&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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>
			&lt;div id=&quot;title&quot;&gt;&lt;h2&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/h2&gt;&lt;/div&gt;
			<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>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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>Refresh and ta da!</p><h3>Chapter 19: The Menu Page</h3><p>Here&#8217;s another easy page to that&#8217;s mostly a content dump. For the sake of the tutorial, I&#8217;m going to pretend that the client doesn&#8217;t want to do any layout in the WYSIWYG on this page, besides normal styling tags, so we&#8217;ll need to create two custom fields, one for the left column and another for the right. Here&#8217;s the original HTML:</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;column1&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Sussex <span style="color: #009900;">&#40;</span>Chocolate Buttercream<span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Our signature flavour <span style="color: #339933;">-</span> a combination of chocolate cake and buttermilk that be a hit at your <span style="color: #990000;">next</span> event<span style="color: #339933;">.</span> Available with chocolate and vanilla buttercream<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>The Byward <span style="color: #009900;">&#40;</span>Chocolate Fudge<span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>If chocolate cake wasn’t enough<span style="color: #339933;">,</span> we just added a chocolate fudge into the mix<span style="color: #339933;">.</span> Available with chocolate buttercream<span style="color: #339933;">,</span> vanilla buttercream<span style="color: #339933;">,</span> chocolate or vanilla ganache<span style="color: #339933;">.</span> <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>The Village <span style="color: #009900;">&#40;</span>Vanilla Bean<span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Maybe your not such a chocolate person<span style="color: #339933;">.</span> Why not give our vanilla bean a go<span style="color: #339933;">.</span> Made with Madagascar Vanilla and moist to the last drop<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Available Buttercream Flavours<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Vanilla<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
				Chocolate<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
				Chocolate chip<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
				Strawberry<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;column2&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Banana Boat <span style="color: #009900;">&#40;</span>Banana Yogurt<span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>P<span style="color: #339933;">&gt;</span>A take on traditional banana bread <span style="color: #339933;">-</span> this is a great option <span style="color: #b1b100;">for</span> the health conscious<span style="color: #339933;">.</span> Available with chocolate<span style="color: #339933;">,</span> vanilla or chocolate chip buttercream<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Over the Rainbow <span style="color: #009900;">&#40;</span>Rainbow Carrot<span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Available seasonally this carrot cake uses the freshest of ingredients from local farms in Ottawa<span style="color: #339933;">.</span> Available with vanilla buttercream or cream cheese frosting <span style="color: #b1b100;">for</span> a more traditional approach<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Lemon Meringue<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Sweet with just a <span style="color: #990000;">touch</span> of tart<span style="color: #339933;">,</span> our lemon cake uses an italian buttercream to offer a refreshing flavour that would make any mouth water<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Available Ganache Flavours<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Milk Chocolate<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
				Dark Chocolate<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
				White Chocolate<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div><p>First, let&#8217;s dump the content into the admin area. Open up the menu page, and scroll down to the &#8220;Custom Fields&#8221; section. Add a new custom field called &#8220;Left Column&#8221; and dump it&#8217;s content into the value field. Do the same for the right column, naming it &#8220;Right Column&#8221;.</p><p>Then open up your page.php template file. Instead of creating a whole new template page just for these two columns, we&#8217;ll make it easy on ourselves (and the client), by just adding a conditional &#8211; if the client is using these two fields, then show the correct HTML, if not, then don&#8217;t. This makes it easy to also add double columns to other pages as well.</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> get_header<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>
&nbsp;
	&lt;div id=&quot;main&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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>
			&lt;div id=&quot;title&quot;&gt;&lt;h2&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/h2&gt;&lt;/div&gt;
			<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>
&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: #000088;">$myImageFileName</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Left Column'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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>&lt;div id=&quot;column1&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Left Column'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;<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>
			<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: #000088;">$myImageFileName</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Right Column'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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>&lt;div id=&quot;column2&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Right Column'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;<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>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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><h3>Chapter 20: The Challenge!</h3><p>The last page I&#8217;m going to show you how to do is the gallery page. If you look on the original site, you&#8217;ll see it includes a gallery that switches between several thumbnails, and then can slide left to right to show different projects.</p><p>This is another layout that can be done in different ways, but I&#8217;m going to use a custom post type for this one. Open up your functions.php file and add the code for a custom post type:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">register_post_type<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'gallery'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Gallery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'singular_label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Gallery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'public'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'show_ui'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'capability_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'hierarchical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'rewrite'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'query_var'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'supports'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'editor'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'author'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom-fields'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Refresh your WordPress admin area, and you should now see a &#8220;Gallery&#8221; section in the left hand nav. Now let&#8217;s look at the HTML required for that page:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&nbsp;
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;slideshow&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;slideshowContainer&quot;</span><span style="color: #339933;">&gt;</span>
				<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;slide&quot;</span><span style="color: #339933;">&gt;</span>
					<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;images&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady1&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/lady_spot_main.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady_spot_main&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady2&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/lady_spot_001.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady_spot_001&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady3&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/lady_spot_002.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady_spot_002&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady4&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/lady_spot_003.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady_spot_003&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
					<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;slideText&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Lady Lace<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>With a hint of elegance and a <span style="color: #990000;">touch</span> of romanticism this golden lady cake has it all<span style="color: #339933;">.</span> A startling centerpiece at any event<span style="color: #339933;">,</span> this lady of lace will truly be the belle of the ball<span style="color: #339933;">!</span> Featuring a golden bust with sugar flowers<span style="color: #339933;">,</span> rice paper fans and a stunning silver brooch<span style="color: #339933;">,</span> this cake is almost too good to eat<span style="color: #339933;">.</span> Speaking of eating<span style="color: #339933;">,</span> our golden lady would be delicious in our trademark Sussex <span style="color: #009900;">&#40;</span>chocolate butter cream<span style="color: #009900;">&#41;</span> flavor<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
						<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;thumbnail&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;#lady1&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/lady_thumb_main.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady_thumb_main&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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;#lady2&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/lady_thumb_001.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady_thumb_001&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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;#lady3&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/lady_thumb_002.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady_thumb_002&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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;#lady4&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/lady_thumb_003.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lady_thumb_003&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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>
					<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #990000;">END</span> Lady Lace <span style="color: #339933;">-</span> Slide <span style="color: #cc66cc;">1</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
&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;slide&quot;</span><span style="color: #339933;">&gt;</span>
					<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;images&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask1&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/mask_spot_main.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask_spot_main&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask2&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/mask_spot_001.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask_spot_001&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask3&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/mask_spot_002.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask_spot_002&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask4&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/mask_spot_003.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask_spot_003&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
					<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
					<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;slideText&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Mysterious Masquerade<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Everyone needs a bit of mystery in their life<span style="color: #339933;">.</span> Our stunningly dramatic red<span style="color: #339933;">,</span> white<span style="color: #339933;">,</span> and black masquerade cake is one of our leading cake designs<span style="color: #339933;">.</span> The elegance of the feathers and finely detailed hand<span style="color: #339933;">-</span>ruffled ribbons give this cake its flair<span style="color: #339933;">.</span> Attention to detail is what this cake is all about with the red ruffled sugar mask<span style="color: #339933;">,</span> the delicately painted edges and the hand placed sugar dragees<span style="color: #339933;">.</span> To make the event complete<span style="color: #339933;">,</span> hand <span style="color: #990000;">each</span> guest a red mask to wear <span style="color: #b1b100;">for</span> the night<span style="color: #339933;">!&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
						<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;thumbnail&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;#mask1&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/mask_thumb_main.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask_thumb_main&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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;#mask2&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/mask_thumb_001.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask_thumb_001&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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;#mask3&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/mask_thumb_002.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask_thumb_002&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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;#mask4&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/mask_thumb_003.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;mask_thumb_003&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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>
					<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #990000;">END</span> Maskquerade <span style="color: #339933;">-</span> Slide <span style="color: #cc66cc;">2</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
&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;slide&quot;</span><span style="color: #339933;">&gt;</span>
					<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;images&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;music1&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/music_spot_main.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;music_spot_main&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;music2&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/music_spot_001.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;music_spot_001&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;music3&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/music_spot_002.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;music_spot_002&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;music4&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/music_spot_003.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;music_spot_003&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
					<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
					<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;slideText&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Music Staff<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Everyone has a favorite song<span style="color: #339933;">.</span> Our five<span style="color: #339933;">-</span>tiered black and white musical cake brings the spirit and vibe of your favorite song to your party<span style="color: #339933;">,</span> wedding or event<span style="color: #339933;">.</span> Featuring detailed sheet music wraps<span style="color: #339933;">,</span> romantic purple butterflies and flowers<span style="color: #339933;">,</span> this cake will leave you and your guests singing and dancing<span style="color: #339933;">.</span> The perfect cake to celebrate a recent graduation<span style="color: #339933;">,</span> engagement or even to welcome summer<span style="color: #339933;">!</span> There won<span style="color: #0000ff;">'t be a wrong note with this stunning cake. (This design was inspired by Young Designs holiday party. &lt;a href=&quot;http://youngjewelrydesigns.com&quot;&gt;http://www.youngjewelrydesigns.com/)&lt;/a&gt; &lt;/p&gt;
&nbsp;
						&lt;ul class=&quot;thumbnail&quot;&gt;
							&lt;li&gt;&lt;a href=&quot;#music1&quot;&gt;&lt;img src=&quot;images/slideshow/music_thumb_main.png&quot; alt=&quot;music_thumb_main&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#music2&quot;&gt;&lt;img src=&quot;images/slideshow/music_thumb_001.png&quot; alt=&quot;music_thumb_001&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#music3&quot;&gt;&lt;img src=&quot;images/slideshow/music_thumb_002.png&quot; alt=&quot;music_thumb_002&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#music4&quot;&gt;&lt;img src=&quot;images/slideshow/music_thumb_003.png&quot; alt=&quot;music_thumb_003&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/div&gt;
				&lt;/div&gt;&lt;!-- END Music - Slide 3 --&gt;
&nbsp;
&nbsp;
				&lt;div class=&quot;slide&quot;&gt;
					&lt;div class=&quot;images&quot;&gt;
						&lt;a name=&quot;white1&quot;&gt;&lt;/a&gt;&lt;img src=&quot;images/slideshow/white_spot_main.png&quot; alt=&quot;white_spot_main&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;
						&lt;a name=&quot;white2&quot;&gt;&lt;/a&gt;&lt;img src=&quot;images/slideshow/white_spot_001.png&quot; alt=&quot;white_spot_001&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;
						&lt;a name=&quot;white3&quot;&gt;&lt;/a&gt;&lt;img src=&quot;images/slideshow/white_spot_002.png&quot; alt=&quot;white_spot_002&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;
						&lt;a name=&quot;white4&quot;&gt;&lt;/a&gt;&lt;img src=&quot;images/slideshow/white_spot_003.png&quot; alt=&quot;white_spot_003&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;
					&lt;/div&gt;
					&lt;div class=&quot;slideText&quot;&gt;
						&lt;h3&gt;Vintage Glam&lt;/h3&gt;
						&lt;p&gt;There is nothing quite like the image of a beautiful bride in a flowing white gown on her wedding day. Inspired by a bridal gown at Luxe Bridal Boutique, our six tier white wedding cake tastes as good as it looks. The entire cake is edible from the silver bird in the golden bird cage to the flowers, lace and feathers. Mmm, perfect in our vanilla bean flavor (The Village), this cake will have your guests coming back for one more slice.&lt;/p&gt;
&nbsp;
						&lt;ul class=&quot;thumbnail&quot;&gt;
							&lt;li&gt;&lt;a href=&quot;#white1&quot;&gt;&lt;img src=&quot;images/slideshow/white_thumb_main.png&quot; alt=&quot;white_thumb_main&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#white2&quot;&gt;&lt;img src=&quot;images/slideshow/white_thumb_001.png&quot; alt=&quot;white_thumb_001&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#white3&quot;&gt;&lt;img src=&quot;images/slideshow/white_thumb_002.png&quot; alt=&quot;white_thumb_002&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#white4&quot;&gt;&lt;img src=&quot;images/slideshow/white_thumb_003.png&quot; alt=&quot;white_thumb_003&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/div&gt;
				&lt;/div&gt; &lt;!-- END White - Slide 4 --&gt;
&nbsp;
&nbsp;
				&lt;div class=&quot;slide&quot;&gt;
					&lt;div class=&quot;images&quot;&gt;
						&lt;a name=&quot;blue1&quot;&gt;&lt;img src=&quot;images/slideshow/blue-spot-main.png&quot; alt=&quot;blue-spot-main&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;&lt;/a&gt;					
						&lt;a name=&quot;blue2&quot;&gt;&lt;img src=&quot;images/slideshow/blue-spot-001.png&quot; alt=&quot;blue-spot-001&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;&lt;/a&gt;
						&lt;a name=&quot;blue3&quot;&gt;&lt;img src=&quot;images/slideshow/blue-spot-002.png&quot; alt=&quot;blue-spot-002&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;&lt;/a&gt;
						&lt;a name=&quot;blue4&quot;&gt;&lt;img src=&quot;images/slideshow/blue-spot-003.png&quot; alt=&quot;blue-spot-003&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;&lt;/a&gt;
					&lt;/div&gt;
&nbsp;
					&lt;div class=&quot;slideText&quot;&gt;
						&lt;h3&gt;Something Blue&lt;/h3&gt;
						&lt;p&gt;Make your wedding day complete with our Something Borrowed, Something Blue cake. This simple yet sophisticated cake brings with it that final touch of class that you want on your wedding day. The feather and sugar ruffles highlight the fun and laughter that is sure to be part of your big day. For a rich tasting cake, we suggest our signature chocolate fudge flavor (The Byward) with chocolate ganache.&lt;/p&gt;
&nbsp;
						&lt;ul class=&quot;thumbnail&quot;&gt;
							&lt;li&gt;&lt;a href=&quot;#blue1&quot;&gt;&lt;img src=&quot;images/slideshow/blue-thumb-main.png&quot; alt=&quot;blue-thumb-main&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#blue2&quot;&gt;&lt;img src=&quot;images/slideshow/blue-thumb-001.png&quot; alt=&quot;blue-thumb-001&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt; &lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#blue3&quot;&gt;&lt;img src=&quot;images/slideshow/blue-thumb-002.png&quot; alt=&quot;blue-thumb-002&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#blue4&quot;&gt;&lt;img src=&quot;images/slideshow/blue-thumb-003.png&quot; alt=&quot;blue-thumb-003&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;/li&gt;						
						&lt;/ul&gt;
					&lt;/div&gt;
				&lt;/div&gt; &lt;!-- END Blue - Slide 5 --&gt;
&nbsp;
&nbsp;
				&lt;div class=&quot;slide&quot;&gt;
					&lt;div class=&quot;images&quot;&gt;
						&lt;a name=&quot;pink1&quot;&gt;&lt;/a&gt;&lt;img src=&quot;images/slideshow/pink_spot_main.png&quot; alt=&quot;pink_spot_main&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;
						&lt;a name=&quot;pink2&quot;&gt;&lt;/a&gt;&lt;img src=&quot;images/slideshow/pink_spot_001.png&quot; alt=&quot;pink_spot_001&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;
						&lt;a name=&quot;pink3&quot;&gt;&lt;/a&gt;&lt;img src=&quot;images/slideshow/pink_spot_002.png&quot; alt=&quot;pink_spot_002&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;
						&lt;a name=&quot;pink4&quot;&gt;&lt;/a&gt;&lt;img src=&quot;images/slideshow/pink_spot_003.png&quot; alt=&quot;pink_spot_003&quot; width=&quot;319&quot; height=&quot;387&quot; /&gt;
					&lt;/div&gt;
					&lt;div class=&quot;slideText&quot;&gt;
						&lt;h3&gt;Sugar and Swarovski Crystals&lt;/h3&gt;
						&lt;p&gt;Next to diamonds, pearls and Swarovski crystals are definitely a girl'</span>s best friend<span style="color: #339933;">.</span> This cake is <span style="color: #000000; font-weight: bold;">class</span> and elegance<span style="color: #339933;">.</span> Decorated with sugar pearls<span style="color: #339933;">,</span> a flowing edible script and a sugar crown<span style="color: #339933;">,</span> this cake will leave your groom eating out of your hand<span style="color: #339933;">.&lt;/</span>p<span style="color: #339933;">&gt;</span>
&nbsp;
						<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;thumbnail&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;#pink1&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/pink_thumb_main.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pink_thumb_main&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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;#pink2&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/pink_thumb_001.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pink_thumb_001&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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;#pink3&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/pink_thumb_002.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pink_thumb_002&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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;#pink4&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/pink_thumb_003.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pink_thumb_003&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;85&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;&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>
					<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;!--</span> <span style="color: #990000;">END</span> Pink Cake <span style="color: #339933;">-</span> Slide <span style="color: #cc66cc;">6</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
&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;slide&quot;</span><span style="color: #339933;">&gt;</span>
					<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;images&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;elephant1&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/elephant_spot_main.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;elephant_spot_main&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;elephant2&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/elephant_spot_001.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;elephant_spot_001&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;elephant3&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/elephant_spot_002.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;elephant_spot_002&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
						<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;elephant4&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/slideshow/elephant_spot_003.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;elephant_spot_003&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;319&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;387&quot;</span> <span style="color: #339933;">/&gt;</span>
					<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
					<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;slideText&quot;</span><span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Lucky Elephant<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
						<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Wisdom<span style="color: #339933;">.</span> Good luck<span style="color: #339933;">.</span> Strength<span style="color: #339933;">.</span> Power<span style="color: #339933;">.</span> Bring the spirit of the lucky elephant to your big day<span style="color: #339933;">.</span> Featuring detailed accents in red<span style="color: #339933;">,</span> white and blue with a golden necklace<span style="color: #339933;">,</span> this lucky elephant is just the cake you<span style="color: #0000ff;">'ve been looking for. Bringing with it a sense of confidence and fun, our edible elephant cake will bring the good luck you want to your life.&lt;/p&gt;
&nbsp;
						&lt;ul class=&quot;thumbnail&quot;&gt;
							&lt;li&gt;&lt;a href=&quot;#elephant1&quot;&gt;&lt;img src=&quot;images/slideshow/elephant_thumb_main.png&quot; alt=&quot;elephant_thumb_main&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#elephant2&quot;&gt;&lt;img src=&quot;images/slideshow/elephant_thumb_001.png&quot; alt=&quot;elephant_thumb_001&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#elephant3&quot;&gt;&lt;img src=&quot;images/slideshow/elephant_thumb_002.png&quot; alt=&quot;elephant_thumb_002&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
							&lt;li&gt;&lt;a href=&quot;#elephant4&quot;&gt;&lt;img src=&quot;images/slideshow/elephant_thumb_003.png&quot; alt=&quot;elephant_thumb_003&quot; width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/div&gt;
				&lt;/div&gt;
			&lt;/div&gt;&lt;!-- END SlideshowContainer --&gt;
		&lt;/div&gt;&lt;!-- END Slideshow --&gt;</span></pre></div></div><p>WHOA quite a lot isn&#8217;t it? Let&#8217;s make this easier by breaking it down. Each &#8220;slide&#8221; container is going to be a new post inside of gallery.  The h3 will be the title of the gallery post, the p tags will be content in the WYSIWYG, the large photos will be added via custom fields called &#8220;Slide&#8221;, and the thumbnails will be added the same way, although I recommend using something like TimThumb to get sizes proportional. Let&#8217;s get started!</p><p>Now, let&#8217;s get content out of the way before the structure.</p><p>Create a new post underneath the Gallery custom post type for each slide, and add the content where I stated above. (I&#8217;m gonna be lazy and only do one <img
src='http://www.amberweinberg.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</p><p>Now, open up your page.php file. The code is pretty complicated, so let me go ahead and show you the completed code, and I&#8217;ll explain what I did:</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> get_header<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>
&nbsp;
	&lt;div id=&quot;main&quot;&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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>
			&lt;div id=&quot;title&quot;&gt;&lt;h2&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/h2&gt;&lt;/div&gt;
			<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>
&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: #000088;">$myImageFileName</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Left Column'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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>&lt;div id=&quot;column1&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Left Column'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;<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>
			<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: #000088;">$myImageFileName</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Right Column'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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>&lt;div id=&quot;column2&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Right Column'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;<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>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> wp_reset_query<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>
&nbsp;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'The Gallery'</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>
			&lt;div id=&quot;slideshow&quot;&gt;
				&lt;div id=&quot;slideshowContainer&quot;&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_type=gallery&amp;posts_per_page=-1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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>
						&lt;div class=&quot;slide&quot;&gt;
							&lt;div class=&quot;images&quot;&gt;
								<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$lang</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Slide'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</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> <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lang</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$lang</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;a name=&quot;slide'</span><span style="color: #339933;">.</span><span style="color: #000088;">$i</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;/a&gt;&lt;img src=&quot;'</span><span style="color: #339933;">.</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/wp-content/themes/sophie/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$lang</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; alt=&quot;&quot;/&gt;'</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
							&lt;/div&gt;
&nbsp;
							&lt;div class=&quot;slideText&quot;&gt;
								&lt;h3&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/h3&gt;
								<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>
&nbsp;
								&lt;ul class=&quot;thumbnail&quot;&gt;
									<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$d</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000088;">$thumb</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Slide'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</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> <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$thumb</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$thumb</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;li&gt;&lt;a href=&quot;#slide'</span><span style="color: #339933;">.</span><span style="color: #000088;">$d</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;img src=&quot;'</span><span style="color: #339933;">.</span> get_bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/wp-content/themes/sophie/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$thumb</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; alt=&quot;&quot;width=&quot;85&quot; height=&quot;98&quot; /&gt;&lt;/a&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span> <span style="color: #000088;">$d</span><span style="color: #339933;">++;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
								&lt;/ul&gt;
							&lt;/div&gt;
						&lt;/div&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> wp_reset_query<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>
				&lt;/div&gt;
			&lt;/div&gt;
		<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>
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<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>First, I added the wp_reset_query since we needed to close the loop for that page, and begin one to pull the custom posts in. Then, I created a conditional to only show the slider code if we were on the gallery page.</p><p>After pasting in the bones of the HTML, I replaced the content with WordPress functions. Then, I replace the large images with a foreach loop that will grab each &#8220;Slide&#8221; custom field&#8221;. Lastly, you&#8217;ll need to include the correct JS files for the slider and slideshow to work, which you can do by viewing the source of the demo site.</p><h3>Chapter 21: Conclusion</h3><p>In conclusion, WordPress is actually really easy to learn versus other CMS&#8217;s. It&#8217;s fun and versatile to work in, and there&#8217;s pretty much nothing you can&#8217;t do in it. After you&#8217;ve made it through this series and you want to learn more, I suggest checking out <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2RpZ3dwLmNvbS9ib29rLw==" target=\"_blank\">Digging into WordPress by Chris Coyier</a>.</p><p><a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS8/cD00NDQ0"><strong>Enjoy this book and want to purchase a PDF version to keep with you?</strong></a></p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=4437" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/how-to-build-a-wordpress-cms-theme-%e2%80%93-part-7-subpages-finale-and-an-ebook/feed/</wfw:commentRss> <slash:comments>18</slash:comments> </item> <item><title>How To Build A WordPress CMS Theme – Part 6: The Footer!</title><link>http://www.amberweinberg.com/how-to-build-a-wordpress-cms-theme-%e2%80%93-part-6-the-footer/</link> <comments>http://www.amberweinberg.com/how-to-build-a-wordpress-cms-theme-%e2%80%93-part-6-the-footer/#comments</comments> <pubDate>Wed, 15 Jun 2011 15:44:07 +0000</pubDate> <dc:creator>Amber Weinberg</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[development]]></category> <category><![CDATA[php]]></category> <category><![CDATA[tutorial]]></category> <category><![CDATA[wordpress]]></category><guid
isPermaLink="false">http://www.amberweinberg.com/?p=4423</guid> <description><![CDATA[We&#8217;ve come a long way in such a short series, haven&#8217;t we? In today&#8217;s post, we&#8217;ll be finishing up the homepage by doing the footer. Normally footers are pretty easy, but we&#8217;ve got an extra large one for you today, just full of goodies waiting to be WP functionalized (ok enough with the nerdness). Anyways, [...]]]></description> <content:encoded><![CDATA[<p>We&#8217;ve come a long way in such a short series, haven&#8217;t we? In today&#8217;s post, we&#8217;ll be finishing up the homepage by doing the footer. Normally footers are pretty easy, but we&#8217;ve got an extra large one for you today, just full of goodies waiting to be WP functionalized (ok enough with the nerdness). Anyways, if you&#8217;re just joining us, here are the previous parts to this series:</p><ul><li><a
title=\"How To Build A WordPress CMS Theme – Part 1: Theme Basics\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLXBhcnQtMS10aGVtZS1iYXNpY3Mv">PART 1: Theme Basics</a></li><li><a
title=\"How To Build A WordPress CMS Theme – Part 2: Let’s Get Started\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTItbGV0cy1nZXQtc3RhcnRlZC8=">PART 2: Let’s Get Started</a></li><li><a
title=\"How To Build A WordPress CMS Theme – Part 3: Built In Functions\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTMtYnVpbHQtaW4tZnVuY3Rpb25zLw==">PART 3: Built In Functions</a></li><li><a
title=\"How To Build A WordPress CMS Theme – Part 4: Coding The Header\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTQtY29kaW5nLXRoZS1oZWFkZXIv">PART 4: Coding The Header</a></li><li><a
title=\"How To Build A WordPress CMS Theme – Part 5: Coding The Homepage\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTUtY29kaW5nLXRoZS1ob21lcGFnZS8=">PART 5: Coding The Homepage</a></li></ul><p>Remember you can see the <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9kZW1vcy93b3JkcHJlc3NDTVM=">demo of the WordPress version here</a>, and see the <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL290dGF3YWNha2Vjb21wYW55LmNvbS8=">regular HTML/CSS site</a>here. You can also download everything in <a
title=\"How To Build A WordPress CMS Theme – Part 4: Coding The Header\" href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9ob3ctdG8tYnVpbGQtYS13b3JkcHJlc3MtY21zLXRoZW1lLSVlMiU4MCU5My1wYXJ0LTQtY29kaW5nLXRoZS1oZWFkZXIv">Part 4</a> . Let&#8217;s get it started!</p><h3>Chapter 17: The Footer</h3><p>Not much goes on in most footers, you&#8217;ve normally got some links and copyright info and that&#8217;s it. In WordPress land, the same goes, and the only real piece of required functionality is the wp_footer() function before your body tag.</p><p>However, the latest trend seems to be in having even more complicated footers. In our project site, you can see that the footer is from the featured articles &#038; conversation sections all the way down. Let&#8217;s take a look at the plain HTML of our footer:</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;footerWrap&quot;</span><span style="color: #339933;">&gt;</span>
	<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;footerfix&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footerTop&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Featured Articles<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://sophiebifieldcakecompany.wordpress.com&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/blog1.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;The wedding palace bridal show&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;140&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;98&quot;</span> <span style="color: #339933;">/&gt;</span>The Wedding Palace Bridal Show<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;gallery.html&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/blog2.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;National Flag Day Cake&quot;</span> <span style="color: #339933;">/&gt;</span>National Flag Day Cake<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;gallery.html&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;images/blog3.jpg&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Winterlude Fare &amp; Flare Cake&quot;</span> <span style="color: #339933;">/&gt;</span>Winterlude Fare <span style="color: #339933;">&amp;</span> Flare Cake<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>h3<span style="color: #339933;">&gt;</span>Our Conversation<span style="color: #339933;">&lt;/</span>h3<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter_div&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>ul id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;twitter_update_list&quot;</span><span style="color: #339933;">&gt;&lt;/</span>ul<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footerBottom&quot;</span><span style="color: #339933;">&gt;</span>
	<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;footerfix&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;us&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>h4<span style="color: #339933;">&gt;</span>Site Links<span style="color: #339933;">&lt;/</span>h4<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>ul<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;index.html&quot;</span><span style="color: #339933;">&gt;</span>Home<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;http://sophiebifieldcakecompany.wordpress.com&quot;</span><span style="color: #339933;">&gt;</span>Blog<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;about.html&quot;</span><span style="color: #339933;">&gt;</span>FAQ<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;order.html&quot;</span><span style="color: #339933;">&gt;</span>Ordering<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>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;cakes&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>h4<span style="color: #339933;">&gt;</span>Company Information<span style="color: #339933;">&lt;/</span>h4<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>ul<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;about.html&quot;</span><span style="color: #339933;">&gt;</span>About Sophie<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;about.html&quot;</span><span style="color: #339933;">&gt;</span>Careers<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;http://www.twitter.com/ottawacake&quot;</span><span style="color: #339933;">&gt;</span>Follow on Twitter<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;http://www.facebook.com/ottawacake&quot;</span><span style="color: #339933;">&gt;</span>Fan on Facebook<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;contact.html&quot;</span><span style="color: #339933;">&gt;</span>Contact Us<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>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;blog&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>h4<span style="color: #339933;">&gt;</span>From The Blog<span style="color: #339933;">&lt;/</span>h4<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>ul<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;http://sophiebifieldcakecompany.wordpress.com&quot;</span><span style="color: #339933;">&gt;</span>Recent Articles<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;http://sophiebifieldcakecompany.wordpress.com&quot;</span><span style="color: #339933;">&gt;</span>Events<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>
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;newsletter&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>h4<span style="color: #339933;">&gt;</span>Sign up <span style="color: #b1b100;">for</span> our newsletter<span style="color: #339933;">&lt;/</span>h4<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>var host <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;https:&quot;</span> <span style="color: #339933;">==</span> document<span style="color: #339933;">.</span>location<span style="color: #339933;">.</span>protocol<span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">&quot;https://secure.&quot;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;http://&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span>unescape<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;%3Cscript src='&quot;</span> <span style="color: #339933;">+</span> host <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;wufoo.com/scripts/embed/form.js' type='text/javascript'%3E%3C/script%3E&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;&lt;/</span>script<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">var</span> q7x3s5 <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WufooForm<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
q7x3s5<span style="color: #339933;">.</span>initialize<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
<span style="color: #0000ff;">'userName'</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'gelias'</span><span style="color: #339933;">,</span> 
<span style="color: #0000ff;">'formHash'</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'q7x3s5'</span><span style="color: #339933;">,</span> 
<span style="color: #0000ff;">'autoResize'</span><span style="color: #339933;">:</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'height'</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'307'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
q7x3s5<span style="color: #339933;">.</span>display<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;copyright&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Copyright <span style="color: #339933;">&amp;</span>copy<span style="color: #339933;">;</span> <span style="color: #cc66cc;">2011</span> <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;index.html&quot;</span><span style="color: #339933;">&gt;</span>Sophie Bifield Cake Company<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>p<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://twitter.com/javascripts/blogger.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://twitter.com/statuses/user_timeline/ottawacake.json?callback=twitterCallback2&amp;count=3&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">var</span> _gaq <span style="color: #339933;">=</span> _gaq <span style="color: #339933;">||</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  _gaq<span style="color: #339933;">.</span>push<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'_setAccount'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'UA-21625812-1'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  _gaq<span style="color: #339933;">.</span>push<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'_trackPageview'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">var</span> ga <span style="color: #339933;">=</span> document<span style="color: #339933;">.</span>createElement<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'script'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> ga<span style="color: #339933;">.</span>type <span style="color: #339933;">=</span> <span style="color: #0000ff;">'text/javascript'</span><span style="color: #339933;">;</span> ga<span style="color: #339933;">.</span>async <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
    ga<span style="color: #339933;">.</span>src <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'https:'</span> <span style="color: #339933;">==</span> document<span style="color: #339933;">.</span>location<span style="color: #339933;">.</span>protocol ? <span style="color: #0000ff;">'https://ssl'</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">'http://www'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'.google-analytics.com/ga.js'</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> s <span style="color: #339933;">=</span> document<span style="color: #339933;">.</span>getElementsByTagName<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'script'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> s<span style="color: #339933;">.</span>parentNode<span style="color: #339933;">.</span>insertBefore<span style="color: #009900;">&#40;</span>ga<span style="color: #339933;">,</span> s<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div><p>Holy cow that&#8217;s a lot of stuff! What I love about WordPress (and any CMS really) is that we&#8217;re able to separate all of the junk (the content for us developers, lol) and let the code shine.)</p><p>Let&#8217;s start at the top and make our way down, shall we? We first see that there&#8217;s a featured article div and some thumbnail images. Let&#8217;s change that into a WordPress loop that grabs the 3 newest article that are in a category called &#8220;Featured&#8221; and automatically pull in a thumbnail.</p><p>First, you need to open up your functions.php file and add this line:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">add_theme_support<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post-thumbnails'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Now, the size of our thumbnails are 140&#215;98, so we need to let WordPress know that that&#8217;s how we want them returned:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">add_theme_support<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post-thumbnails'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
set_post_thumbnail_size<span style="color: #009900;">&#40;</span> <span style="color: #cc66cc;">140</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">98</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Make sure you add the &#8220;true&#8221; statement to the end of the post thumbnail size function, otherwise your thumbnails will be sized proportionally, instead of cropped to the exact dimensions. Also note, if you&#8217;ve uploaded images and then decide to change the post thumbnail size, you&#8217;ll have to reupload them again for the changes to take place (stinks I know).</p><p>Now that the functions file is take care of, let&#8217;s open up the standard footer.php file from <a
href="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hbWJlcndlaW5iZXJnLmNvbS9oaWppbmtzLWEtd29yZHByZXNzLWJhc2ljLWZyYW1ld29yay8=">Hijinks</a> (the starter theme I&#8217;m using here):</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&nbsp;
	&lt;/div&gt; &lt;!--our container div closer--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<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>
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div><p>Fantastic, let&#8217;s copy and paste the &#8220;featured&#8221; part of the Sophie site over:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;footerWrap&quot;&gt;
	&lt;div class=&quot;footerfix&quot;&gt;
		&lt;div id=&quot;footerTop&quot;&gt;
			&lt;h3&gt;Featured Articles&lt;/h3&gt;
			&lt;ul&gt;
				&lt;li&gt;
					&lt;a href=&quot;http://sophiebifieldcakecompany.wordpress.com&quot;&gt;&lt;img src=&quot;images/blog1.jpg&quot; alt=&quot;The wedding palace bridal show&quot; width=&quot;140&quot; height=&quot;98&quot; /&gt;The Wedding Palace Bridal Show&lt;/a&gt;
				&lt;/li&gt;
				&lt;li&gt;
					&lt;a href=&quot;gallery.html&quot;&gt;&lt;img src=&quot;images/blog2.jpg&quot; alt=&quot;National Flag Day Cake&quot; /&gt;National Flag Day Cake&lt;/a&gt;
				&lt;/li&gt;
				&lt;li&gt;
					&lt;a href=&quot;gallery.html&quot;&gt;&lt;img src=&quot;images/blog3.jpg&quot; alt=&quot;Winterlude Fare &amp; Flare Cake&quot; /&gt;Winterlude Fare &amp; Flare Cake&lt;/a&gt;
				&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/div&gt;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<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>
&nbsp;
&lt;/body&gt;</pre></div></div><p>And now replace it with our standard loop (you should be familiar with this by now!) and use query_posts to pull posts only categorized in &#8220;featured&#8221; and only the newest three:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;footerWrap&quot;&gt;
	&lt;div class=&quot;footerfix&quot;&gt;
		&lt;div id=&quot;footerTop&quot;&gt;
			&lt;h3&gt;Featured Articles&lt;/h3&gt;
&nbsp;
			&lt;ul&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category_name=Featured&amp;posts_per_page=3'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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>
					&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<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>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_post_thumbnail<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><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/a&gt;&lt;/li&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> wp_reset_query<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>
			&lt;/ul&gt;
		&lt;/div&gt;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<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>
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div><p>If you notice, I&#8217;ve added a new function to the end of the loop, wp_reset_query(), this function is a MUST when using multiple loops on one page, or everything gets wonky. Go ahead and open up your index.php page and add it to that loop as well.</p><p>Now, go ahead and create 3 posts, categorize them as &#8216;Featured&#8217; and give them featured thumbnails. Refresh the page and look! Let&#8217;s move on (this is the p90x of tutorials, buddy).</p><p>Let&#8217;s move the everything else into our footer.php file</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">&lt;p id=&quot;topbar&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_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>/images/footerTopBar.jpg&quot; alt=&quot;footerTopBar&quot; width=&quot;332&quot; height=&quot;4&quot;&gt;&lt;/p&gt;
&nbsp;
&lt;div id=&quot;footerWrap&quot;&gt;
	&lt;div class=&quot;footerfix&quot;&gt;
		&lt;div id=&quot;footerTop&quot;&gt;
			&lt;h3&gt;Featured Articles&lt;/h3&gt;
&nbsp;
			&lt;ul&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category_name=Featured&amp;posts_per_page=3'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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>
					&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<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>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_post_thumbnail<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><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/a&gt;&lt;/li&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> wp_reset_query<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>
			&lt;/ul&gt;
		&lt;/div&gt;
				&lt;div id=&quot;twitter&quot;&gt;
			&lt;h3&gt;Our Conversation&lt;/h3&gt;
			&lt;div id=&quot;twitter_div&quot;&gt;
				&lt;ul id=&quot;twitter_update_list&quot;&gt;&lt;/ul&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&lt;div id=&quot;footerBottom&quot;&gt;
	&lt;div class=&quot;footerfix&quot;&gt;
		&lt;div id=&quot;us&quot;&gt;
			&lt;h4&gt;Site Links&lt;/h4&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;http://sophiebifieldcakecompany.wordpress.com&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;about.html&quot;&gt;FAQ&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;order.html&quot;&gt;Ordering&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/div&gt;
		&lt;div id=&quot;cakes&quot;&gt;
			&lt;h4&gt;Company Information&lt;/h4&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a href=&quot;about.html&quot;&gt;About Sophie&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;about.html&quot;&gt;Careers&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;http://www.twitter.com/ottawacake&quot;&gt;Follow on Twitter&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;http://www.facebook.com/ottawacake&quot;&gt;Fan on Facebook&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;contact.html&quot;&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/div&gt;
		&lt;div id=&quot;blog&quot;&gt;
			&lt;h4&gt;From The Blog&lt;/h4&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a href=&quot;http://sophiebifieldcakecompany.wordpress.com&quot;&gt;Recent Articles&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a href=&quot;http://sophiebifieldcakecompany.wordpress.com&quot;&gt;Events&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&nbsp;
	&lt;div id=&quot;newsletter&quot;&gt;
		&lt;h4&gt;Sign up for our newsletter&lt;/h4&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;var host = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://secure.&quot; : &quot;http://&quot;);document.write(unescape(&quot;%3Cscript src='&quot; + host + &quot;wufoo.com/scripts/embed/form.js' type='text/javascript'%3E%3C/script%3E&quot;));&lt;/script&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
var q7x3s5 = new WufooForm();
q7x3s5.initialize({
'userName':'gelias', 
'formHash':'q7x3s5', 
'autoResize':true,
'height':'307'});
q7x3s5.display();
&lt;/script&gt;
	&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&lt;div id=&quot;copyright&quot;&gt;
	&lt;p&gt;Copyright &amp;copy; 2011 &lt;a href=&quot;index.html&quot;&gt;Sophie Bifield Cake Company&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&nbsp;
&nbsp;
&lt;script src=&quot;http://twitter.com/javascripts/blogger.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://twitter.com/statuses/user_timeline/ottawacake.json?callback=twitterCallback2&amp;count=3&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
&nbsp;
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21625812-1']);
  _gaq.push(['_trackPageview']);
&nbsp;
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
&nbsp;
&lt;/script&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<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>
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div><p>As you can see, the next section &#8216;Conversations&#8217; (twitter) isn&#8217;t something we need to touch, so let&#8217;s skip that. We now come to the footer site links. We can do this section in one of three ways: we can either make each section a different WordPress menu, we can make the whole area a widget section, or we can say screw the client and make it static (let&#8217;s hope you don&#8217;t do this one!) For our tutorial, let&#8217;s make them each a different WordPress menu.</p><p>Set up your menus under the Admin > Appearance section. And then switch over to your footer.php and add in the new menus:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">	&lt;p id=&quot;topbar&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_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>/images/footerTopBar.jpg&quot; alt=&quot;footerTopBar&quot; width=&quot;332&quot; height=&quot;4&quot;&gt;&lt;/p&gt;
&lt;/div&gt; 
&nbsp;
&lt;div id=&quot;footerWrap&quot;&gt;
	&lt;div class=&quot;footerfix&quot;&gt;
		&lt;div id=&quot;footerTop&quot;&gt;
			&lt;h3&gt;Featured Articles&lt;/h3&gt;
&nbsp;
			&lt;ul&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category_name=Featured&amp;posts_per_page=3'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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>
					&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<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>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_post_thumbnail<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><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/a&gt;&lt;/li&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> wp_reset_query<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>
			&lt;/ul&gt;
		&lt;/div&gt;
				&lt;div id=&quot;twitter&quot;&gt;
			&lt;h3&gt;Our Conversation&lt;/h3&gt;
			&lt;div id=&quot;twitter_div&quot;&gt;
				&lt;ul id=&quot;twitter_update_list&quot;&gt;&lt;/ul&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&lt;div id=&quot;footerBottom&quot;&gt;
	&lt;div class=&quot;footerfix&quot;&gt;
		&lt;div id=&quot;us&quot;&gt;
			&lt;h4&gt;Site Links&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'menu'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Site Links'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'container'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
		&lt;div id=&quot;cakes&quot;&gt;
			&lt;h4&gt;Company Information&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'menu'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Company Info'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'container'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
		&lt;div id=&quot;blog&quot;&gt;
			&lt;h4&gt;From The Blog&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'menu'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'From the Blog'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'container'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
	&lt;/div&gt;
&nbsp;
	&lt;div id=&quot;newsletter&quot;&gt;
		&lt;h4&gt;Sign up for our newsletter&lt;/h4&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;var host = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://secure.&quot; : &quot;http://&quot;);document.write(unescape(&quot;%3Cscript src='&quot; + host + &quot;wufoo.com/scripts/embed/form.js' type='text/javascript'%3E%3C/script%3E&quot;));&lt;/script&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
var q7x3s5 = new WufooForm();
q7x3s5.initialize({
'userName':'gelias', 
'formHash':'q7x3s5', 
'autoResize':true,
'height':'307'});
q7x3s5.display();
&lt;/script&gt;
	&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&lt;div id=&quot;copyright&quot;&gt;
	&lt;p&gt;Copyright &amp;copy; 2011 &lt;a href=&quot;index.html&quot;&gt;Sophie Bifield Cake Company&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&nbsp;
&nbsp;
&lt;script src=&quot;http://twitter.com/javascripts/blogger.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://twitter.com/statuses/user_timeline/ottawacake.json?callback=twitterCallback2&amp;count=3&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
&nbsp;
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21625812-1']);
  _gaq.push(['_trackPageview']);
&nbsp;
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
&nbsp;
&lt;/script&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<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>
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div><p>Now to be good stewarts of web standards, let&#8217;s clean up the bottom some. The ID newsletter is hidden, so let&#8217;s delete it and it&#8217;s JS. Then, let&#8217;s move all of the rest of JS to a functions.js file:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">	&lt;p id=&quot;topbar&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_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>/images/footerTopBar.jpg&quot; alt=&quot;footerTopBar&quot; width=&quot;332&quot; height=&quot;4&quot;&gt;&lt;/p&gt;
&lt;/div&gt; 
&nbsp;
&lt;div id=&quot;footerWrap&quot;&gt;
	&lt;div class=&quot;footerfix&quot;&gt;
		&lt;div id=&quot;footerTop&quot;&gt;
			&lt;h3&gt;Featured Articles&lt;/h3&gt;
&nbsp;
			&lt;ul&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category_name=Featured&amp;posts_per_page=3'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<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>
					&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<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>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_post_thumbnail<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><span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<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>&lt;/a&gt;&lt;/li&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> wp_reset_query<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>
			&lt;/ul&gt;
		&lt;/div&gt;
				&lt;div id=&quot;twitter&quot;&gt;
			&lt;h3&gt;Our Conversation&lt;/h3&gt;
			&lt;div id=&quot;twitter_div&quot;&gt;
				&lt;ul id=&quot;twitter_update_list&quot;&gt;&lt;/ul&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&lt;div id=&quot;footerBottom&quot;&gt;
	&lt;div class=&quot;footerfix&quot;&gt;
		&lt;div id=&quot;us&quot;&gt;
			&lt;h4&gt;Site Links&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'menu'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Site Links'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'container'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
		&lt;div id=&quot;cakes&quot;&gt;
			&lt;h4&gt;Company Information&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'menu'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Company Info'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'container'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
		&lt;div id=&quot;blog&quot;&gt;
			&lt;h4&gt;From The Blog&lt;/h4&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_nav_menu<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'menu'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'From the Blog'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'container'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
&nbsp;
&lt;div id=&quot;copyright&quot;&gt;
	&lt;p&gt;Copyright &amp;copy; 2011 &lt;a href=&quot;index.html&quot;&gt;Sophie Bifield Cake Company&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&nbsp;
&nbsp;
&lt;script src=&quot;http://twitter.com/javascripts/blogger.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://twitter.com/statuses/user_timeline/ottawacake.json?callback=twitterCallback2&amp;count=3&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>/js/functions.js&quot;&gt;&lt;/script&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<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>
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div><p>Look how much prettier that is!</p><h3>Next Time</h3><p>As this point, reach around and pat yourself on the back! The hardest part is now over! In the coming weeks, we&#8217;ll finish up by doing the sub pages (the easy part, I promise!). Join me then!</p> <img
src="http://www.amberweinberg.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=4423" width="1" height="1" style="display: none;" />]]></content:encoded> <wfw:commentRss>http://www.amberweinberg.com/how-to-build-a-wordpress-cms-theme-%e2%80%93-part-6-the-footer/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/26 queries in 0.023 seconds using disk: basic
Object Caching 481/533 objects using disk: basic

Served from: www.amberweinberg.com @ 2012-02-04 02:27:31 -->
