<?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>Scott Nix</title>
	<atom:link href="http://scottnix.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://scottnix.com</link>
	<description>Just another Front-End Developer</description>
	<lastBuildDate>Wed, 15 May 2013 07:47:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Placement of Media Queries</title>
		<link>http://scottnix.com/placement-of-media-queries/</link>
		<comments>http://scottnix.com/placement-of-media-queries/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 05:32:50 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front-End]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1618</guid>
		<description><![CDATA[<p>While going through a redesign of my website, I forced myself to place the media queries inside each #id and .class using SASS, instead of at the bottom in a huge clump. The idea of this isn&#8217;t something new and if you are using gzip there are no performance drawbacks. However, I couldn&#8217;t in my .... <a href="http://scottnix.com/placement-of-media-queries/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/placement-of-media-queries/">Placement of Media Queries</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>While going through a redesign of my website, I forced myself to place the media queries inside each <code>#id and .class</code> using <a href="http://sass-lang.com/">SASS</a>, instead of at the bottom in a huge clump. The idea of this isn&#8217;t something new and if you are using gzip there are no performance drawbacks. However, I couldn&#8217;t in my mind rationalize why having media queries spread all through the document would be better than having them in a nice organized block at the bottom of the CSS.</p>
<p>Using SASS/Compass can make adding media queries easier, I adopted using Chris Coyier&#8217;s handy <a href="http://css-tricks.com/media-queries-sass-3-2-and-codekit/">SASS Breakpoint</a> mixin. It didn&#8217;t take long for me to start modifying it, especially since I almost never use max width breakpoints. It didn&#8217;t &#8220;feel&#8221; very mobile-first to me, so I converted that portion of it. </p>
<p>Shortly after, I needed a custom breakpoint and again modified it. The concept of being able to add a breakpoint of any value whenever you need one is very refreshing and is best summed up by <a href="https://twitter.com/brad_frost/status/191977076000161793">Stephen Hay</a>.</p>
<blockquote><p>Start with the small screen first, then expand until it looks like shit. Time to insert a breakpoint!</p></blockquote>
<p>The revelation of not being so bound to set media query breakpoints is very powerful and adding them in the class they pertain to ended up not being an issue with organization at all. Using the SASS mixin has definitely increased my overall workflow speed which is probably the greatest benefit.</p>
<h2>SASS Media Query Breakpoint Mixin</h2>
<pre class="scss"><code>
@mixin breakpoint($point) {
    @if $point == medium {
        @media (min-width: 30em)  { @content; }
    }
    @else if $point == large {
        @media (min-width: 50em) { @content; }
    }
    @else if $point { // allows custom breakpoints
        @media (min-width: $point) { @content; }
    }
}
</code></pre>
<h3>SASS Breakpoint Usage</h3>
<pre class="scss"><code>
.content {
    // mobile-first styles here
    // the idea is styles here will work for mobile all the way to desktop
    // you then override the styles with the breakpoints below as things get more complex or additional functionality is needed

    @include breakpoint(medium) {
        // medium defined breakpoint styles
        // this is where you put styles that are applied to medium and large
    }
    @include breakpoint(large) {
        // large defined breakpoint styles
        // this is where you put styles that are only applied to large
    }
    @include breakpoint(80em) {
        // custom defined breakpoint styles
        // this is where you can add any value and create any additional media query you need
    }
}
</code></pre>
<h3>Why Medium and Large?</h3>
<p>Someone might wonder why I chose to use medium and large as breakpoints instead of only custom variations. It has to do with I like to have multiple things happen at the same time and felt safer to have things like the layout and fonts in media queries change at specific width, doing a custom width for everything is overkill, but having the option is awesome.</p>
<p>Yes, you can convert these to pixels if you haven&#8217;t made the leap into using em units for media queries.</p>
<h3>Simple Breakpoint Example</h3>
<p>This is a very simple example of changing the font size for the whole site as it scales up from mobile to desktop.</p>
<pre class="SCSS"><code>
body {
    background: $background;
    font-family: $body-font;
    font-size: 100%;
    line-height: 1.625;
    color: $body-color;

    @include breakpoint(medium) {
        font-size: 112.5%;
    }
    @include breakpoint(large) {
        font-size: 125%;
    }
}
</code></pre>
<h2>SublimeText Breakpoint Snippet</h2>
<p>Hopefully you are using SublimeText as a text editor, if so Chris Coyier posted a <a href="http://css-tricks.com/video-screencasts/120-a-sublime-text-snippet-for-media-query-mixins/">video showing usage</a> of a Sublime Snippet by <a href="https://gist.github.com/jnowland/5151162">James Nowland</a> so you can output the breakpoint by just typing &#8220;mq + Tab&#8221; (or &#8220;mq + Enter&#8221; if you use Enter instead of the Tab trigger like I do to avoid conflicts with <a href="http://docs.emmet.io/">Emmet</a>).</p>
<p>This snippet has been modfied to use my version of the SASS Breakpoint Mixin above, which I prefer. <a href="http://joshnh.com/">Josh Hibbert</a> mentioned in comments on the video that you can insert a tab trigger after the snippet to get the cursor to tab to a new line, small optimization but very handy.</p>
<pre class="sublime-snippet"><code>
&lt;snippet&gt;
    &lt;content&gt;&lt;![CDATA[
    @include breakpoint($1) {
        $2
    }
    $3
    ]]&gt;&lt;/content&gt;
    
    &lt;tabTrigger&gt;mq&lt;/tabTrigger&gt;
    &lt;scope&gt;source.css, source.scss&lt;/scope&gt;
&lt;/snippet&gt;
</code></pre>
<p>The post <a href="http://scottnix.com/placement-of-media-queries/">Placement of Media Queries</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/placement-of-media-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thematic and Grid Systems</title>
		<link>http://scottnix.com/thematic-and-grid-systems/</link>
		<comments>http://scottnix.com/thematic-and-grid-systems/#comments</comments>
		<pubDate>Tue, 29 Jan 2013 08:27:02 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[Thematic]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1565</guid>
		<description><![CDATA[<p>So you are wanting to add a grid system to the Thematic Theme Framework for WordPress. Grid systems make theme development super easy right? Not necessarily. Occasionally a question will pop up on the forum involving incorporating a gird into Thematic. Most of the questions involve adding classes like grid_6, span-5 to the HTML Thematic .... <a href="http://scottnix.com/thematic-and-grid-systems/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/thematic-and-grid-systems/">Thematic and Grid Systems</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>So you are wanting to add a grid system to the Thematic Theme Framework for WordPress. Grid systems make theme development super easy right? Not necessarily. </p>
<p>Occasionally a question will pop up on the forum involving incorporating a gird into Thematic. Most of the questions involve adding classes like <code>grid_6, span-5</code> to the HTML Thematic outputs to add the styling for their framework of choice. You can do that by adding functions and filters to your <code>functions.php</code> file, but this is the wrong way to do it and causes a lot of code bloat.</p>
<p>Grids are suppose to make things easy, once you step into the realm of having to add classes to the existing markup to match whatever syntax the grid system is using, you are already making things harder than they need to be.</p>
<p><a href="http://scottnix.com/themes/zen-grids/" target="_blank"><img src="http://scottnix.com/blog/wp-content/uploads/2013/01/zen-grids-example.png" alt="zen-grids-example" class="aligncenter size-full wp-image-1647" /></a></p>
<p><a href="http://scottnix.com/themes/zen-grids/" class="demo" target="_blank">View Demo</a></p>
<p>This example is going to be a little complicated for some and super easy for others already familiar with <a href="http://sass-lang.com/">SASS</a> and <a href="http://compass-style.org/">Compass</a>. If you don&#8217;t know what SASS and Compass are, <a href="http://vimeo.com/24278115">watch this first</a> for a little bit of a background. This post isn&#8217;t really a tutorial, but more of a visualization of how easy it can be to work with a grid system in Thematic. You will obviously need SASS and Compass for this to work.</p>
<p>The code is specifically set up for using the <a href="http://scottnix.com/responsive-base-a-child-theme-for-thematic/">Responsive Base Theme</a> I have created for Thematic and the grid system style I will be aiming for is the default Thematic layout.</p>
<h2>Zen Grids and Thematic</h2>
<p>Zen Grids is a responsive grid system built to work with SASS and Compass, in my opinion it is one of the easier ones out there to understand. You will have to most likely visit the <a href="http://zengrids.com/">Zen Grids site</a> and follow the simple setup tutorials, once setup though, it is a breeze.</p>
<p>The first thing we need to do is import Zen Grids in the top of the style.scss file. If you are on PC and using <a href="http://mhs.github.com/scout-app/">Scout</a>, there is no real setup, Zen Grids is built in, you need to change the import to just <code><a href="https://github.com/zdennis/scout-app-examples/blob/master/zen-grids/app/stylesheets/app.sass">@import &quot;zen&quot;;</a></code>.</p>
<pre class="scss"><code>
@import &quot;zen-grids&quot;;
</code></pre>
<p>Next we need to set a couple SASS variables so the grid system knows how many columns we are using and the width of the gutters.</p>
<pre class="scss"><code>
$zen-column-count: 12; // grid columns
$zen-gutter-width: 2em; // gutter width
</code></pre>
<p>Since the responsive base theme I have created is a &#8220;mobile-first&#8221; structure, all the base CSS is already set and only things that need to be changed are in the media queries. So we need to swap out the previous media queries at the bottom of the <code>style.scss</code> file with the new Zen Grids setup.</p>
<pre class="scss"><code>
@media only screen and (min-width: 45em) {
    #wrapper {
        @include zen-grid-container;
        max-width: 1140px;
        margin: 0 auto;
    }
    #branding {
        @include zen-grid-item(12, 1);
        width: 100%;
    }
    #access .menu {
        @include zen-grid-item(12, 1);
        @include zen-clear(both);
        width: 100%;
    }
    #container { @include zen-grid-item(8, 1); }
    #main {
        @include pie-clearfix;
        width: 100%;
    }
    .main-aside { @include zen-grid-item(4, 1, right); }
    #secondary { @include zen-clear(right); }
    #subsidiary {
        @include pie-clearfix;
        width: 100%;
    }
    #first { @include zen-grid-item(4, 1); }
    #second { @include zen-grid-item(4, 5); }
    #third { @include zen-grid-item(4, 9); }
    #footer-widget { @include zen-grid-item(12, 1); }
    #siteinfo {
        @include zen-grid-item(12, 1);
        width: 100%;
    }
    blockquote {
        &amp;.left {
            float: left;
            width: 33%;
            margin-left: 0;
            margin-right: 1.5em;
            text-align: right;
        }
        &amp;.right {
            float: right;
            width: 33%;
            margin-left: 1.5em;
            margin-right: 0;
            text-align: left;
        }
    }
    .sf-menu li { float: left; }
    .content-column {
        float: left;
        width: 45%;
        margin: 0 0 1.625em;
    }
    .navigation {
        margin: 0 0 1.625em;
        overflow: hidden;
    }
    .nav-previous {
        float: left;
        width: 50%;
    }
    .nav-next {
        float: right;
        width: 50%;
        text-align: right;
    }
    .page-template-template-page-fullwidth-php #comments { @include zen-grid-flow-item( 8, 12); }
}
</code></pre>
<p>That is it, there is a little bit of extra markup in there for additional elements, but only because I wanted to recreate the exact same layout as the Responsive Base theme, but with the added benefit of Zen Grids.</p>
<p>If you need help understanding the code, I would recommend checking the <a href="http://zengrids.com/help/">Zen Grids help</a> page which is well documented.</p>
<p>This is by no means the &#8220;optimized&#8221; way to add Zen Grids, there a a few things that can be done to cut the code down a bit and make things &#8220;<acronym title="Don't Repeat Yourself">DRY</acronym>&#8220;, but the idea is to see a simple example of the power SASS and Compass can add to your projects. Keep in mind that a grid system is not always required, but if you are creating sites over and over it may be beneficial to your workflow.</p>
<p>With all that said, personally I have dropped playing with Zen Grids and focused my attention on another grid system that seems to be the best I have found so far, it is called <a href="http://susy.oddbird.net/">Susy</a> and if you are going to go the grid route, I highly suggest looking into it.</p>
<p><ins datetime="2013-3-16"><strong>Update:</strong> This site is now built using Susy Grids, so far they are awesome.</ins></p>
<p>The post <a href="http://scottnix.com/thematic-and-grid-systems/">Thematic and Grid Systems</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/thematic-and-grid-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thematic and Icon Fonts</title>
		<link>http://scottnix.com/thematic-and-icon-fonts/</link>
		<comments>http://scottnix.com/thematic-and-icon-fonts/#comments</comments>
		<pubDate>Thu, 17 Jan 2013 06:08:25 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[Thematic]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1525</guid>
		<description><![CDATA[<p>There are plenty of tutorials and oodles of information floating around about icon fonts, they are all the rage right now. There are awesome things achievable with icon fonts and they can provide a lot of flexibility in your development workflow. It seems some people get the impression that using fonts as icons is overly .... <a href="http://scottnix.com/thematic-and-icon-fonts/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/thematic-and-icon-fonts/">Thematic and Icon Fonts</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>There are plenty of tutorials and oodles of information floating around about icon fonts, they are all the rage right now. There are awesome things achievable with icon fonts and they can provide a lot of flexibility in your development workflow. It seems some people get the impression that using fonts as icons is overly complicated, so my goal is to provide a few simple examples of using icon fonts with the <a href="http://thematictheme.com">Thematic Theme Framework</a> for WordPress.</p>
<p>I am going to show you how to use fonts for icons the easiest way possible, then explain a even better way afterwards, but currently the goal is just to get you setup using icon fonts with your Thematic child themes. We are going to be using a handy little API from <a href="http://weloveiconfonts.com/">We Love Icon Fonts</a>.</p>
<h2>We Love Icon Fonts with WordPress</h2>
<p>We are going to be using the Entypo set of icons for now, but you can swap these out later for a different set. The We Love Icon Fonts sites example uses an <code>@import</code>, while easier, I usually avoid using <code>@import</code> in stylehseets for performance reasons. So lets load that instead in the header as is best practice with any stylesheets when using WordPress.</p>
<h3>Enqueue Icon Fonts Styles</h3>
<p>This snippet will register and enqueue the weloveiconfonts.com API styes for use in the theme, this will work for any WordPress theme, not just Thematic. Just drop this into the functions.php of your child theme, or theme if you aren&#8217;t using a child.</p>
<pre class="php"><code>
// enqueue font icons
function childtheme_icon_fonts() {
    // registers weloveiconfonts.com icon font api styles
    wp_register_style('icon-fonts-css', 'http://weloveiconfonts.com/api/?family=entypo');
    // enqueue the scripts for use in theme
    wp_enqueue_style ('icon-fonts-css');
}
add_action('wp_enqueue_scripts', 'childtheme_icon_fonts');
</code></pre>
<h3>Required CSS to call Icon Fonts</h3>
<p>Just drop this CSS in your style sheet.</p>
<pre class="css"><code>
[class*=&quot;entypo-&quot;]:before { font-family: 'entypo', sans-serif; }
</code></pre>
<p>That&#8217;s it. Now all that is needed is to add a specific class with a name on the element to call the icon, for example <code>.icon-home</code>.</p>
<p>The CSS included in the demos is very basic, they are styled with just enough structure to get you started on making them your own. The demos were set up in SASS, so if you prefer that you can grab it off the SCSS section tab in the demo.</p>
<h2>Social Icon Font Example</h2>
<pre class="codepen" data-height="200" data-type="result" data-href="orekA" data-user="scottnix" data-safe="true"><code></code><a href="http://codepen.io/scottnix/pen/orekA">Check out this Pen!</a></pre>
<p><script async src="http://codepen.io/assets/embed/ei.js"></script></p>
<p>One of the most popular uses is social icons, sure you can use images, but icon fonts are cooler. This is a basic setup using Thematic&#8217;s existing structure for providing a few links to your social networks in the sidebar. :)</p>
<h3>Social Icon Font PHP</h3>
<p>This snippet will go in the functions.php of the child theme. We are using some existing CSS classes to keep the same structure from Thematic to keep things uniform in the sidebar, hooking the function on to the <code>thematic_belowmainasides</code> hook. </p>
<pre class="php"><code>
function childtheme_social_icon_fonts() { ?&gt;
    &lt;div id=&quot;tertiary&quot; class=&quot;aside main-aside&quot;&gt;
        &lt;ul class=&quot;xoxo social-icons&quot;&gt;
          &lt;li&gt;&lt;a class=&quot;entypo-twitter&quot; href=&quot;#&quot; title=&quot;Twitter&quot;&gt;&lt;span&gt;Twitter&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a class=&quot;entypo-facebook&quot; href=&quot;#&quot; title=&quot;Facebook&quot;&gt;&lt;span&gt;Facebook&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a class=&quot;entypo-github&quot; href=&quot;#&quot; title=&quot;Github&quot;&gt;&lt;span&gt;Github&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a class=&quot;entypo-rss&quot; href=&quot;#&quot; title=&quot;RSS&quot;&gt;&lt;span&gt;RSS&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;?php }
add_action('thematic_belowmainasides', 'childtheme_social_icon_fonts');
</code></pre>
<h3>Social Icon Font CSS</h3>
<pre class="css"><code>
#tertiary { clear: right; }
.social-icons { list-style: none; }
.social-icons li { float: left; }
.social-icons li a {
    padding: 0 0.5em;
    font-size: 2em;
    text-decoration: none;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.4), 
        1px 1px 2px rgba(0, 0, 0, 0.4);
}
.social-icons li a:hover {
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.6), 
        1px 1px 4px rgba(0, 0, 0, 0.4);
}
.social-icons span { display: none; }
</code></pre>
<p>This example uses Twitter, Facebook, Github and RSS, the actual text will be hidden, using the icons only, but it is good practice to include it anyway.</p>
<h2>WordPress Menu Font Icons</h2>
<pre class="codepen" data-height="200" data-type="result" data-href="akAyB" data-user="scottnix" data-safe="true"><code></code><a href="http://codepen.io/scottnix/pen/akAyB">Check out this Pen!</a></pre>
<p><script async src="http://codepen.io/assets/embed/ei.js"></script></p>
<p>Inserting font icons in the WordPress menu is pretty easy, the way to do it is to add a class through the WordPress Admin built in Custom Menu functionality. There is a section &#8220;CSS Classes&#8221; where you can add the icon class you want, if you don&#8217;t see this option in the menus, check the &#8220;Screen Options&#8221; in the right top and check that option to show. Since the classes are added through WP itself, there is no additional PHP needed. </p>
<h3>WordPress Menu Font Icons CSS</h3>
<pre class="css"><code>
.sf-menu [class*="entypo-"]:before {
    z-index: 3;
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 24px;
    color: #666666;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.4), 
        1px 1px 2px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
.sf-menu [class*="entypo-"]:hover:before {
    color: #FF4B33;
    text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.6), 
        1px 1px 4px rgba(0, 0, 0, 0.4);
}
.sf-menu [class*="entypo-"] a { padding: 9px 13px 9px 38px; }
.sf-menu [class*="entypo-"] li a { padding: 9px 13px; }
</code></pre>
<p>Just don&#8217;t forget you need to add the classes through the WP Admin Menu.</p>
<h2>Navigational Font Icons</h2>
<pre class="codepen" data-height="200" data-type="result" data-href="KujLd" data-user="scottnix" data-safe="true"><code></code><a href="http://codepen.io/scottnix/pen/KujLd">Check out this Pen!</a></pre>
<p><script async src="http://codepen.io/assets/embed/ei.js"></script></p>
<p>Thematic by default has two separate navigation structures, one is for navigating the Older/Newer posts and the other is on single post pages that show the title of the previous and next post. Most sites I work on do not include the navigation on the single posts. This example removes the single post page navigation and instead replaces the standard Older/Newer navigation in WordPress with some font icons to replace the default text.</p>
<h3>Navigational Font Icons PHP</h3>
<p>The first function completely removes the upper navigation (personal preference), instead we are only going to be using the lower navigation. The second function removes the navigation on single pages and changes the structure to give some better hooks for adding some font icons arrows instead. I also added a title in since there is no text, at least the title &#8220;Older posts&#8221; or &#8220;Newer posts&#8221; will show on hover, which is helpful.</p>
<pre class="php"><code>
// override nav_below functionality - remove it completely
function childtheme_override_nav_above() {
    // silence
}

// override nav_below functionality
function childtheme_override_nav_below() {
    if ( !is_single() ) { ?&gt;
        &lt;div id=&quot;nav-below&quot; class=&quot;navigation&quot;&gt;
            &lt;div class=&quot;nav-previous&quot;&gt;&lt;?php next_posts_link('&lt;i title=&quot;Older posts&quot; class=&quot;entypo-left&quot;&gt;&lt;/i&gt; &lt;span&gt;Older posts&lt;/span&gt;') ?&gt;&lt;/div&gt;
            &lt;div class=&quot;nav-next&quot;&gt;&lt;?php previous_posts_link('&lt;span&gt;Newer posts&lt;/span&gt; &lt;i title=&quot;Newer posts&quot; class=&quot;entypo-right&quot;&gt;&lt;/i&gt;') ?&gt;&lt;/div&gt;
        &lt;/div&gt; &lt;?php
    }
}
</code></pre>
<h3>Navigational Font Icons CSS</h3>
<pre class="css"><code>
.navigation {
    margin: 0 0 1.625em;
    overflow: hidden;
}
.navigation a {
    display: block;
    height: 5em;
    width: 5em;
    line-height: 5em;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}
.navigation i {
    font-size: 5em;
    color: #666666;
    font-style: normal;
}
.navigation .nav-previous {
    float: left;
    width: auto;
}
.navigation .nav-next {
    float: right;
    width: auto;
}
.navigation span { display: none; }
</code></pre>
<h2>Now the kicker.</h2>
<p>While this is a viable way to achieve font icons and is usable, there is a better way to do this if you are trying to keep everything optimized (as fast as possible). The idea is instead of letting <a href="http://weloveiconfonts.com/">We Love Icon Fonts</a> handle the loading of the fonts, you instead use a service to trim down the fonts to exactly what you need, so you load 4 icons in the font instead of 40 and handle the serving of the font files yourself. There are some great services out there like <a href="http://icomoon.io/">IcoMoon</a> and <a href="http://fontello.com/">Fontello</a> which make it a breeze. So hopefully this gives you a leg up on using font icons with Thematic.</p>
<h3>A few complex examples.</h3>
<ul>
<li><a href="http://css-tricks.com/examples/IconFont/">Icon Fonts are Awesome</a> &#8211; Easy to Understand Demo</li>
<li><a href="http://codepen.io/pedromsduarte/details/Jcqju">Codepen Demo</a> &#8211; Multicolored Font Icons</li>
<li><a href="http://codepen.io/baskwalla/details/raAKL">Codepen Demo</a> &#8211; Enhanced Lists</li>
<li><a href="http://codepen.io/impressivewebs/details/GzqId">Codepen Demo</a> &#8211; Minimal Circular 3D Buttons</li>
</ul>
<p>The post <a href="http://scottnix.com/thematic-and-icon-fonts/">Thematic and Icon Fonts</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/thematic-and-icon-fonts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Baby Under Construction</title>
		<link>http://scottnix.com/baby-under-construction/</link>
		<comments>http://scottnix.com/baby-under-construction/#comments</comments>
		<pubDate>Sun, 06 Jan 2013 02:56:44 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1510</guid>
		<description><![CDATA[<p>Tinkering with using CSS box shadows to create an image with 1 single HTML div element. This idea for what I created comes from a lazyweb request for the famous &#8220;Website Under Construction&#8221; GIF, but reproduced with just CSS. It is super easy, just a little tedious, the idea is you can essentially make little .... <a href="http://scottnix.com/baby-under-construction/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/baby-under-construction/">Baby Under Construction</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Tinkering with using CSS box shadows to create an image with 1 single HTML div element. This idea for what I created comes from a lazyweb request for the famous <a href="https://github.com/h5bp/lazyweb-requests/issues/99">&#8220;Website Under Construction&#8221; GIF</a>, but reproduced with just CSS. </p>
<p>It is super easy, just a little tedious, the idea is you can essentially make little &#8220;dots&#8221; with box-shadows, it is not exactly practical to do things like this, but it is a fun exercise just knowing how to do it.</p>
<h2>Single Element HTML</h2>
<pre class="codepen" data-height="100" data-type="html" data-href="nqrBp" data-user="scottnix" data-safe="true"><code>&lt;div class=&quot;construction&quot;&gt;&lt;/div&gt;</code></pre>
<h2>CSS, well technically SASS</h2>
<pre class="codepen" data-height="300" data-type="css" data-href="nqrBp" data-user="scottnix" data-safe="true"><code>body { padding: 2em; }
.construction {
    animation: work 1s steps(1, start) infinite;
    position: relative;
    height: 1em;
    width: 1em;
    margin-bottom: 37em;
    margin-left: 17em;
    font-size: 7px;
    &amp;:before {
        @include rotate(45deg);
        z-index: -1;
        position: absolute;
        top: 5em;
        left: -12em;
        height: 28em;
        width: 28em;
        content: '';
        background-color: #fdd400;
        border-radius: 3em;
    }
    &amp;:after {
        content: '';
        position: absolute;
        left: -17em;
        height: 1em;
        width: 1em;
        margin-left: 17em;
        background-color: #000;
        box-shadow:

            /* static parts */

            /* the sign border */

            /* row 1 */
            1em 0em,
            2em 0em,
            3em 0em,
            /* row 2 */
            -1em 1em,
            0em 1em,
            1em 1em,
            2em 1em,
            3em 1em,
            4em 1em,
            /* row 3 */
            -2em 2em,
            -1em 2em,
            4em 2em,
            5em 2em,
            /* row 4 */
            -3em 3em,
            -2em 3em,
            5em 3em,
            6em 3em,
            /* row 5 */
            -4em 4em,
            -3em 4em,
            6em 4em,
            7em 4em,
            /* row 6 */
            -5em 5em,
            -4em 5em,
            7em 5em,
            8em 5em,
            /* row 7 */
            -6em 6em,
            -5em 6em,
            8em 6em,
            9em 6em,
            /* row */
            -7em 7em,
            -6em 7em,
            9em 7em,
            10em 7em,
            /* row 9 */
            -8em 8em,
            -7em 8em,
            10em 8em,
            11em 8em,
            /* row 10 */
            -9em 9em,
            -8em 9em,
            11em 9em,
            12em 9em,
            /* row 11 */
            -10em 10em,
            -9em 10em,
            12em 10em,
            13em 10em,
            /* row 12 */
            -11em 11em,
            -10em 11em,
            13em 11em,
            14em 11em,
            /* row 13 */
            -12em 12em,
            -11em 12em,
            14em 12em,
            15em 12em,
            /* row 14 */
            -13em 13em,
            -12em 13em,
            15em 13em,
            16em 13em,
            /* row 15 */
            -14em 14em,
            -13em 14em,
            16em 14em,
            17em 14em,
            /* row 16 */
            -15em 15em,
            -14em 15em,
            17em 15em,
            18em 15em,
            /* row 17 */
            -16em 16em,
            -15em 16em,
            18em 16em,
            19em 16em,
            /* row 18 */
            -17em 17em,
            -16em 17em,
            19em 17em,
            20em 17em,
            /* row 19 */
            -17em 18em,
            -16em 18em,
            19em 18em,
            20em 18em,
            /* row 20 */
            -17em 19em,
            -16em 19em,
            19em 19em,
            20em 19em,
            /* row 21 */
            -17em 20em,
            -16em 20em,
            19em 20em,
            20em 20em,
            /* row 22 */
            -16em 21em,
            -15em 21em,
            18em 21em,
            19em 21em,
            /* row 23 */
            -15em 22em,
            -14em 22em,
            17em 22em,
            18em 22em,
            /* row 24 */
            -14em 23em,
            -13em 23em,
            16em 23em,
            17em 23em,
            /* row 25 */
            -13em 24em,
            -12em 24em,
            15em 24em,
            16em 24em,
            /* row 26 */
            -12em 25em,
            -11em 25em,
            14em 25em,
            15em 25em,
            /* row 27 */
            -11em 26em,
            -10em 26em,
            13em 26em,
            14em 26em,
            /* row 28 */
            -10em 27em,
            -9em 27em,
             12em 27em,
             13em 27em,
            /* row 29 */
            -9em 28em,
            -8em 28em,
            11em 28em,
            12em 28em,
            /* row 30 */
            -8em 29em,
            -7em 29em,
            10em 29em,
            11em 29em,
            /* row 31 */
            -7em 30em,
            -6em 30em,
            9em 30em,
            10em 30em,
            /* row 32 */
            -6em 31em,
            -5em 31em,
            8em 31em,
            9em 31em,
            /* row 33 */
            -5em 32em,
            -4em 32em,
            7em 32em,
            8em 32em,
            /* row 34 */
            -4em 33em,
            -3em 33em,
            6em 33em,
            7em 33em,
            /* row 35 */
            -3em 34em,
            -2em 34em,
            5em 34em,
            6em 34em,
            /* row 36 */
            -2em 35em,
            -1em 35em,
            4em 35em,
            5em 35em,
            /* row 37 */
            -1em 36em,
            0em 36em,
            1em 36em,
            2em 36em,
            3em 36em,
            4em 36em,
            /* row 38 */
            0em 37em,
            1em 37em,
            2em 37em,
            3em 37em,

            /* header (head) */

            /* row 8 */
            -3em 7em,
            -2em 7em,
            -1em 7em,
            0em 7em,
            /* row 9 */
            -4em 8em,
            -3em 8em,
            -2em 8em,
            -1em 8em,
            0em 8em,
            1em 8em,
            /* row 10 */
            -4em 9em,
            -3em 9em,
            -2em 9em,
            -1em 9em,
            0em 9em,
            1em 9em,
            /* row 11 */
            -4em 10em,
            -3em 10em,
            -2em 10em,
            -1em 10em,
            0em 10em,
            1em 10em,
            /* row 12 */
            -4em 11em,
            -3em 11em,
            -2em 11em,
            -1em 11em,
            0em 11em,
            1em 11em,
            /* row 13 */
            -3em 12em,
            -2em 12em,
            -1em 12em,
            0em 12em,

            /* body (body) */

            /* row 15 */
            -3em 14em,
            -2em 14em,
            -1em 14em,
            0em 14em,
            /* row 16 */
            -4em 15em,
            -3em 15em,
            -2em 15em,
            -1em 15em,
            0em 15em,
            1em 15em,
            /* row 17 */
            -4em 16em,
            -3em 16em,
            -2em 16em,
            -1em 16em,
            0em 16em,
            1em 16em,
            /* row 18 */
            -4em 17em,
            -3em 17em,
            -2em 17em,
            -1em 17em,
            0em 17em,
            1em 17em,
            /* row 19 */
            -4em 18em,
            -3em 18em,
            -2em 18em,
            -1em 18em,
            0em 18em,
            1em 18em,
            /* row 20 */
            -4em 19em,
            -3em 19em,
            -2em 19em,
            -1em 19em,
            0em 19em,
            1em 19em,
            /* row 21 */
            -4em 20em,
            -3em 20em,
            -2em 20em,
            -1em 20em,
            0em 20em,
            1em 20em,
            /* row 22 */
            -4em 21em,
            -3em 21em,
            -2em 21em,
            -1em 21em,
            0em 21em,
            1em 21em,
            /* row 23 */
            -4em 22em,
            -3em 22em,
            -2em 22em,
            -1em 22em,
            0em 22em,
            1em 22em,
            /* row 24 */
            -4em 23em,
            -3em 23em,
            -2em 23em,
            -1em 23em,
            0em 23em,
            1em 23em;
    }
}

/* baby making animation */

@keyframes work {
    50% {
        box-shadow:

        /* sidebar (arms) ***********************************/

        2em 15em,
        2em 16em,
        3em 16em,
        3em 17em,
        4em 17em,
        4em 18em,
        5em 18em,
        5em 19em,
        6em 19em,
        6em 20em,
        7em 20em,
        7em 21em,
        8em 21em,
        8em 22em,
        9em 22em,

        /* footer (legs) ***********************************/

        /* row 26 */
        -4em 25em,
        -3em 25em,
        -2em 25em,
        -1em 25em,
        0em 25em,
        1em 25em,
        /* row 27 */
        -4em 26em,
        -3em 26em,
        -2em 26em,
        -1em 26em,
        0em 26em,
        1em 26em,
        /* row 28 */
        -4em 27em,
        -3em 27em,
        -2em 27em,
        -1em 27em,
        0em 27em,
        1em 27em,

        /* peepee (wiener) ***********************************/

        2em 27em,
        3em 27em,
        4em 27em,
        5em 27em,

        /* row 29 */
        -4em 28em,
        -3em 28em,
        -2em 28em,
        -1em 28em,
        0em 28em,
        1em 28em,
        /* row 30 */
        -3em 29em,
        -2em 29em,
        -1em 29em,
        0em 29em,
        1em 29em,
        /* row 31 */
        -3em 30em,
        -2em 30em,
        -1em 30em,
        0em 30em,
        1em 30em,
        /* row 32 */
        -3em 31em,
        -2em 31em,
        -1em 31em,
        0em 31em,
        1em 31em,
        /* row 33 */
        -3em 32em,
        -2em 32em,
        -1em 32em,
        0em 32em,
        1em 32em,
        /* row 34 */
        -3em 33em,
        -2em 33em,
        -1em 33em,
        0em 33em,
        1em 33em,
        /* row 35 */
        -3em 34em,
        -2em 34em,
        -1em 34em,
        0em 34em,
        1em 34em,
        /* row 36 */

        -2em 35em,
        -1em 35em,
        0em 35em,
        1em 35em,

        /* partner (receiver) ***********************************/

        /* row 24 */
        7em 23em,
        8em 23em,
        9em 23em,
        10em 23em,
        11em 23em,
        12em 23em,
        13em 23em,
        14em 23em,
        15em 23em,
        /* row 25 */
        6em 24em,
        7em 24em,
        8em 24em,
        9em 24em,
        10em 24em,
        11em 24em,
        12em 24em,
        13em 24em,
        14em 24em,
        /* row 26 */
        6em 25em,
        7em 25em,
        8em 25em,
        9em 25em,
        10em 25em,
        11em 25em,
        12em 25em,
        13em 25em,
        /* row 27 */
        6em 26em,
        7em 26em,
        8em 26em,
        9em 26em,
        10em 26em,
        11em 26em,
        12em 26em,
        /* row 28 */
        6em 27em,
        7em 27em,
        8em 27em,
        9em 27em,
        10em 27em,
        11em 27em,
        /* row 29 */
        6em 28em,
        7em 28em,
        8em 28em,
        9em 28em,
        10em 28em,
        /* row 30 */
        7em 29em,
        8em 29em,
        9em 29em,
        /* row 31 */
        8em 30em;
    }
    100% {
        box-shadow:

        /* sidebar (arms) ***********************************/

        1em 15em,
        1em 16em,
        1em 17em,
        2em 17em,
        2em 18em,
        3em 18em,
        3em 19em,
        4em 19em,
        4em 20em,
        5em 20em,
        5em 21em,
        6em 21em,
        6em 22em,
        7em 22em,

        /* footer (legs) ***********************************/

        /* row 26 */
        -3em 25em,
        -2em 25em,
        -1em 25em,
        0em 25em,
        1em 25em,
        2em 25em,
        /* row 27 */
        -3em 26em,
        -2em 26em,
        -1em 26em,
        0em 26em,
        1em 26em,
        2em 26em,
        /* row 28 */
        -3em 27em,
        -2em 27em,
        -1em 27em,
        0em 27em,
        1em 27em,
        2em 27em,

        /* peepee (wiener) ***********************************/

        2em 27em,
        3em 27em,
        4em 27em,
        5em 27em,
        6em 27em,

        /* row 29 */
        -3em 28em,
        -2em 28em,
        -1em 28em,
        0em 28em,
        1em 28em,
        2em 28em,
        /* row 30 */
        -2em 29em,
        -1em 29em,
        0em 29em,
        1em 29em,
        2em 29em,
        /* row 31 */
        -2em 30em,
        -1em 30em,
        0em 30em,
        1em 30em,
        2em 30em,
        /* row 32 */
        -2em 31em,
        -1em 31em,
        0em 31em,
        1em 31em,
        2em 31em,
        /* row 33 */
        -2em 32em,
        -1em 32em,
        0em 32em,
        1em 32em,
        2em 32em,
        /* row 34 */
        -2em 33em,
        -1em 33em,
        0em 33em,
        1em 33em,
        2em 33em,
        /* row 35 */
        -1em 34em,
        0em 34em,
        1em 34em,
        2em 34em,
        /* row 36 */
        -2em 35em,
        -1em 35em,
        0em 35em,
        1em 35em,
        2em 35em,

        /* partner (receiver) ***********************************/

        /* row 24 */
        5em 23em,
        6em 23em,
        7em 23em,
        8em 23em,
        9em 23em,
        10em 23em,
        11em 23em,
        12em 23em,
        13em 23em,
        14em 23em,
        15em 23em,
        /* row 25 */
        4em 24em,
        5em 24em,
        6em 24em,
        7em 24em,
        8em 24em,
        9em 24em,
        10em 24em,
        11em 24em,
        12em 24em,
        13em 24em,
        14em 24em,
        /* row 26 */
        4em 25em,
        5em 25em,
        6em 25em,
        7em 25em,
        8em 25em,
        9em 25em,
        10em 25em,
        11em 25em,
        12em 25em,
        13em 25em,
        /* row 27 */
        4em 26em,
        5em 26em,
        6em 26em,
        7em 26em,
        8em 26em,
        9em 26em,
        10em 26em,
        11em 26em,
        12em 26em,
        /* row 28 */
        4em 27em,
        5em 27em,
        6em 27em,
        7em 27em,
        8em 27em,
        9em 27em,
        /* row 29 */
        4em 28em,
        5em 28em,
        6em 28em,
        7em 28em,
        8em 28em,
        9em 28em,
        /* row 30 */
        5em 29em,
        6em 29em,
        7em 29em,
        8em 29em,
        9em 29em,
        /* row 31 */
        6em 30em,
        7em 30em,
        8em 30em,
        /* row 32 */
        6em 31em,
        7em 31em,
        8em 31em,
        /* row 32 */
        6em 32em,
        7em 32em,
        8em 32em;
    }
}</code></pre>
<h2>The Result</h2>
<p>Something only a mother could be proud of.</p>
<pre class="codepen" data-height="500" data-type="result" data-href="nqrBp" data-user="scottnix" data-safe="true"><code></code></pre>
<p><script async src="http://codepen.io/assets/embed/ei.js"></script></p>
<p>I was able to get the man, the myth, the legend to tweet me back. Achievement unlocked. ;)</p>
<blockquote class="twitter-tweet" data-in-reply-to="260506399224770561"><p>@<a href="https://twitter.com/usabilitydick">usabilitydick</a> oh my.fine work, sir.</p>
<p>&mdash; Paul Irish (@paul_irish) <a href="https://twitter.com/paul_irish/status/260748235407245314" data-datetime="2012-10-23T14:23:18+00:00">October 23, 2012</a></p></blockquote>
<p><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script></p>
<p>The post <a href="http://scottnix.com/baby-under-construction/">Baby Under Construction</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/baby-under-construction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clearfix Clarity</title>
		<link>http://scottnix.com/css-clearfix-clarity/</link>
		<comments>http://scottnix.com/css-clearfix-clarity/#comments</comments>
		<pubDate>Fri, 04 Jan 2013 16:17:07 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1472</guid>
		<description><![CDATA[<p>When helping other designers and developers who are learning, the same basic issues come up quite often. One question that always seems to come up is the dreaded Float Collapse issue. Simply, the parent element will collapse and have no height if the child elements are all floated. Most of the time it isn&#8217;t noticeable, .... <a href="http://scottnix.com/css-clearfix-clarity/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/css-clearfix-clarity/">Clearfix Clarity</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>When helping other designers and developers who are learning, the same basic issues come up quite often. One question that always seems to come up is the dreaded Float Collapse issue. Simply, the parent element will collapse and have no height if the child elements are all floated. Most of the time it isn&#8217;t noticeable, although you will notice when you want a background image on the parent element to be visible.</p>
<p><img src="http://scottnix.com/blog/wp-content/uploads/2012/12/html-float-collapse.png" alt="Float Collapse Issue Image" class="aligncenter size-full wp-image-1475" /></p>
<p>I am not going to explain how floats work, it is summed up very well by <a href="http://css-tricks.com/all-about-floats/">CSS Tricks</a>. I am instead going to explain scenarios I was doing that just were over complicating a simple issue and show how I do things now. This post is primarily for referring people who are having the same issue, I often see people making the same mistakes.</p>
<p>When working with the <a href="https://thematictheme.com/">Thematic Framework</a> for WordPress I would primarily run into the issue of float collapse while working with background images sliced from <abbr title="Photoshop Documents">PSD&#8217;s</abbr>. Fixing that is easy, the are multiple ways to do it, often a <code>overflow: hidden;</code> will fix it, but sometimes you need the good ole trusty CSS &#8220;clearfix&#8221;.</p>
<h2>The CSS to make it work.</h2>
<p>The CSS for the clearfix is simple, I usually choose to use the <a href="http://nicolasgallagher.com/micro-clearfix-hack/">micro clearfix hack</a> created by Nicolas Gallagher.</p>
<pre class="css"><code>
.cf:before, .cf:after { content: " ";  display: table; }
.cf:after { clear: both; }
.cf { *zoom: 1; }
</code></pre>
<p>The CSS above immediately makes it seem like you have to add a class to perform the clearfix, so all you have to do is add a class of <code>.cf</code> or <code>.clearfix</code> and boom fixed! </p>
<p>Well&#8230;. the key is you don&#8217;t have to add a class or any additional HTML markup at all. The goal is to not add anything to the HTML markup that isn&#8217;t required, especially a styling element (a CSS clearfix).</p>
<h2>Friends don&#8217;t let friends clearfix like this.</h2>
<p>A long time ago I decided I would use jQuery to add the class of <code>.cf</code> to the parent sections that needed it, simple.</p>
<pre class="jquery"><code>
jQuery("#main").addClass('cf');
</code></pre>
<p>The problem is this relies on jQuery and it takes a little time to load so there would be a flash of unstyled content, albeit most of the time it was barely noticeable, it still bugged me.</p>
<p>Instead of using jQuery, I opted to go the route of adding the <code>.cf</code> class to the sections where needed.</p>
<pre class="html"><code>
&lt;div id=&quot;main&quot; class=&quot;cf&quot;&gt;&lt;/div&gt;
</code></pre>
<p>Or if not possible, adding a completely new element with a clearing class, <code>clear: both;</code> to essentially clear the floats which also works to remedy the float collapse.</p>
<pre class="html"><code>
&lt;br class=&quot;clear&quot;&gt;
</code></pre>
<p>While better in terms of performance, fixing the <abbr title="flash of unstyled content">FOUC</abbr>, this was now polluting the structure of the actual HTML site with unneeded markup that is definitely in the &#8220;styling&#8221; realm.</p>
<h2>How I clearfix now.</h2>
<p>I will be the first to admit, I felt pretty stupid when I figured out that there is no need to add a new class at all. Instead, just change the CSS on the clearfix to the existing ID/class.</p>
<pre class="css"><code>
#main:before, #main:after { content: " ";  display: table; }
#main:after { clear: both; }
#main { *zoom: 1; }
</code></pre>
<p>Much better and no need to add additional markup the the HTML structure. </p>
<p>Now if you are a bad ass and use SASS/Compass in your working environment, it is even easier to add letting the preprocessor handle the output.</p>
<pre class="scss"><code>
#main { @include pie-clearfix; }
</code></pre>
<p>So, hopefully I never see you using another clearfix class again. This same thing of not adding unnecessary classes applies to grid frameworks, in the same exact way, but that is another blog post. ;P</p>
<p>The post <a href="http://scottnix.com/css-clearfix-clarity/">Clearfix Clarity</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/css-clearfix-clarity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Panderbear</title>
		<link>http://scottnix.com/panderbear/</link>
		<comments>http://scottnix.com/panderbear/#comments</comments>
		<pubDate>Wed, 26 Sep 2012 17:10:18 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Images]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1426</guid>
		<description><![CDATA[<p>The Panderbear is obviously a play on the infamous internet meme Pedobear. The idea to convert the meme was conceived from watching presidential candidates pander to audiences they were speaking to. At the time I thought it was hilarious, but never did much with it, although it could be useful for anyone as pandering is .... <a href="http://scottnix.com/panderbear/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/panderbear/">Panderbear</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>The Panderbear is obviously a play on the infamous internet meme <a href="http://en.wikipedia.org/wiki/Pedobear" title="Pedobear">Pedobear</a>. The idea to convert the meme was conceived from watching presidential candidates <a href="http://www.thedailyshow.com/watch/thu-december-8-2011/the-matzorian-candidate?xrs=share_copy">pander to audiences</a> they were speaking to.</p>
<p>At the time I thought it was hilarious, but never did much with it, although it could be useful for anyone as pandering is bound to continue. </p>
<p><img src="http://scottnix.com/blog/wp-content/uploads/2012/09/panderbear.png" alt="" title="Panderbear Meme" class="aligncenter size-full wp-image-1428" /></p>
<p><a class="download" href="http://scottnix.com/blog/wp-content/uploads/2012/09/panderbear.zip">Download SVG and PNG</a></p>
<p><ins datetime="2013-5-06"><strong>Update:</strong> On a side note, I created a <a href="http://codepen.io/scottnix/pen/DKjAF">CSS Pedobear</a> (just the face).</ins></p>
<p>The post <a href="http://scottnix.com/panderbear/">Panderbear</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/panderbear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Titanic, a child theme for Thematic</title>
		<link>http://scottnix.com/titanic-child-theme-for-thematic/</link>
		<comments>http://scottnix.com/titanic-child-theme-for-thematic/#comments</comments>
		<pubDate>Fri, 07 Sep 2012 19:13:11 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1402</guid>
		<description><![CDATA[<p>The Titanic child theme is my last real attempt at creating a full fledged theme for the Thematic Theme Framework. This is the responsive child theme my site is currently built on, so technically you are looking at the demo right now. This is yet another theme built on my own Responsive Base which is .... <a href="http://scottnix.com/titanic-child-theme-for-thematic/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/titanic-child-theme-for-thematic/">Titanic, a child theme for Thematic</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>The Titanic child theme is my last real attempt at creating a full fledged theme for the <a href="http://wordpress.org/extend/themes/thematic">Thematic Theme Framework</a>. This is the responsive child theme my site is currently built on, so technically you are looking at the demo right now. This is yet another theme built on my own <a href="http://scottnix.com/responsive-base-a-child-theme-for-thematic/">Responsive Base</a> which is a starter child theme for Thematic aimed at speeding up development times.</p>
<p><a href="http://scottnix.com/themes/titanic/" target="_blank"><img src="http://scottnix.com/blog/wp-content/uploads/2012/09/titanic-theme-full.png" alt="Titanic Responsive Theme Example Image" title="Titanic Responsive Thematic Theme" class="aligncenter size-full wp-image-1411" /></a></p>
<p><a href="http://scottnix.com/themes/titanic/" target="_blank" class="demo">Demo Titanic Theme</a></p>
<p><a href="https://github.com/scottnix/titanic" class="demo">Download Titanic Theme</a></p>
<h2>Titanic Highlights</h2>
<p>This responsive theme is packed with best practices involving developing child themes for Thematic I have picked up in the past few years. The one thing that makes this theme stand out is the way the menu works, it uses a <a href="http://bradfrostweb.com/blog/web/responsive-nav-patterns/#footer-anchor">footer anchor approach</a> which is not currently set up for drop downs.</p>
<p>The theme is also built on <a href="http://sass-lang.com/">SASS</a> and <a href="http://compass-style.org/">Compass</a> which hopefully you are using as it will make developing sites quicker, even if you just use it for the ability to import and compile.</p>
<p>While creating this theme, I made my best effort to make it compatible with the new <a href="http://wordpress.org/extend/plugins/thematic-html5/">Thematic HTML5 Plugin</a> created by <a href="http://invistruct.com">Karin Taliga</a>. This plugin is awesome for converting some existing elements in Thematic to HTML5 without losing any functionality. For anyone that has looked into this (me), it is a pain to do and she has done an amazing job.</p>
<p>If you want to know every detail about this theme, you will probably want to review the information on my <a href="http://scottnix.com/responsive-base-a-child-theme-for-thematic/">Responsive Base</a> theme since they share all the same features.</p>
<p>The post <a href="http://scottnix.com/titanic-child-theme-for-thematic/">Titanic, a child theme for Thematic</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/titanic-child-theme-for-thematic/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Child&#8217;s Play, child theme for Thematic</title>
		<link>http://scottnix.com/childs-play-responsive-child-theme-for-thematic/</link>
		<comments>http://scottnix.com/childs-play-responsive-child-theme-for-thematic/#comments</comments>
		<pubDate>Fri, 08 Jun 2012 19:24:45 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1245</guid>
		<description><![CDATA[<p>Child&#8217;s Play is a child theme for the Thematic Theme Framework, it is built with the mobile-first approach to responsive web design, but with a few unique features. It was originally created as a stress test for the Responsive Base to find more improvements and make sure I wasn&#8217;t forgetting anything obvious. After adding new .... <a href="http://scottnix.com/childs-play-responsive-child-theme-for-thematic/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/childs-play-responsive-child-theme-for-thematic/">Child&#8217;s Play, child theme for Thematic</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Child&#8217;s Play is a child theme for the <a href="http://wordpress.org/extend/themes/thematic">Thematic Theme Framework</a>, it is built with the mobile-first approach to responsive web design, but with a few unique features. It was originally created as a stress test for the <a href="http://scottnix.com/responsive-base-a-child-theme-for-thematic/">Responsive Base</a> to find more improvements and make sure I wasn&#8217;t forgetting anything obvious. After adding new functionality and some styling to make it a little more visually impressive, the Child&#8217;s Play child theme was born.</p>
<p><a href="http://scottnix.com/themes/childs-play/" target="_blank"><img src="http://scottnix.com/blog/wp-content/uploads/2012/06/childsplay-responsive-example.jpg" alt="Child&#039;s Play Responsive Theme Image" title="Child&#039;s Play Responsive Theme Demo" class="aligncenter size-full wp-image-1249" /></a></p>
<p><a href="http://scottnix.com/themes/childs-play/" target="_blank" class="demo">Demo Child&#8217;s Play Theme</a></p>
<p><a href="https://github.com/scottnix/childs-play" class="demo">Download Child&#8217;s Play</a></p>
<p>This project is on <a href="https://github.com/scottnix/childs-play">Github</a>, so feel free to contribute! </p>
<h2>Child&#8217;s Play Highlights</h2>
<p>While this child theme shares all the same benefits as the <a href="http://scottnix.com/responsive-base-a-child-theme-for-thematic/">Responsive Base</a> child theme, I won&#8217;t be repeating them here. Child&#8217;s Play is unique in that it is the only child theme (I know of) available for Thematic which has the benefit of using <a href="http://sass-lang.com/">SASS</a> and <a href="http://compass-style.org/">Compass</a>. Child&#8217;s Play turned out to be a good alternative to Responsive Base for those who want even a more refined starting point for child theme development. Although if you were coding a site from a PSD, Responsive Base would probably be a better start.</p>
<h3>The CSS</h3>
<p>Child&#8217;s Play takes it up a notch adding presentational styles and utilizing some very handy features that using SASS and Compass provide. I can&#8217;t really dive into all the things that make SASS and Compass great, that is already heavily documented and there is no way I could ever do it justice. All I can say is from now on, I will always be using SASS and Compass for my future projects, I think you should too.</p>
<h3>The Functions PHP</h3>
<p>Probably a little over the top, the functions.php clocks in at a little over 500 lines of code. I ended up reworking a bunch of things and adding more options to be reused in other various projects.</p>
<ul>
<li>Added <a href="http://www.woothemes.com/flexslider/">WooThemes Flexslider</a> which works off of sticky posts, it is currently set up to show featured images of 750px wide by 425px height, which can easily be changed. You just have to settle on a specific size and make sure they are saved as the same size when using this option. If you have no sticky posts, the slider just won&#8217;t show, and best of all, the slider assets won&#8217;t load.</li>
<li>I also went ahead and added a header aside widget, I use this a lot for addresses, search bars, or even social icons, which comes in handy.</li>
<li>Added a heavily modified version of <a href="http://jasonweaver.name/lab/flexiblenavigation/">FlexNav</a>, a jQuery menu that is collapsed on mobile devices to provide more room for content, currently the menu <del>doesn&#8217;t support drop downs</del> now supports drop downs.</li>
<li>Modified the <code>postheader</code> and <code>postfooter</code> to offer a different style, keeping the content on top.</li>
</ul>
<h2>Last Thoughts</h2>
<p>Again, check the <a href="http://scottnix.com/responsive-base-a-child-theme-for-thematic/">Responsive Base</a> starter theme for more information on all the features packed into this child theme, Child&#8217;s Play just takes it a step further. This theme may be a little advanced for someone just getting started with Thematic, but if you already use Thematic for all your child theming, I think you will love this setup. A lot of the work on this theme comes from a big push from myself to optimize my workflow and stay up on the latest best practices.</p>
<p><ins datetime="2012-6-13"><strong>Update:</strong> Now made to comply to with <a href="https://github.com/necolas/idiomatic-css">Idiomatic-CSS</a> guidelines.</ins></p>
<p><ins datetime="2012-8-29"><strong>Update:</strong> Now works with the <a href="http://wordpress.org/extend/plugins/thematic-html5/">Thematic HTML5 Plugin</a> by Karin at <a href="http://invistruct.com/">invistruct.com</a>.</ins></p>
<p>The post <a href="http://scottnix.com/childs-play-responsive-child-theme-for-thematic/">Child&#8217;s Play, child theme for Thematic</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/childs-play-responsive-child-theme-for-thematic/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Responsive Base, a child theme for Thematic</title>
		<link>http://scottnix.com/responsive-base-a-child-theme-for-thematic/</link>
		<comments>http://scottnix.com/responsive-base-a-child-theme-for-thematic/#comments</comments>
		<pubDate>Wed, 09 May 2012 18:46:35 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[Thematic]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1201</guid>
		<description><![CDATA[<p>Responsive Base is a child theme built on the mobile-first approach to responsive web design. It was created not to just be responsive, but to act as a template or starting point for child theme development for the Thematic Theme Framework. After creating quite a few Thematic based sites, I felt I needed a solid .... <a href="http://scottnix.com/responsive-base-a-child-theme-for-thematic/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/responsive-base-a-child-theme-for-thematic/">Responsive Base, a child theme for Thematic</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Responsive Base is a child theme built on the mobile-first approach to responsive web design. It was created not to just be responsive, but to act as a template or starting point for child theme development for the <a href="http://thematictheme.com/">Thematic Theme Framework</a>. </p>
<p>After creating quite a few Thematic based sites, I felt I needed a solid base starting point which saves a little time by being already set up with some very useful modifications I frequently use. </p>
<p>Responsive Base is ideal for me, I created it for me. Although others working with responsive themes for Thematic will find it useful and refreshing. It is intended to work best with the <a href="http://wordpress.org/extend/themes/thematic">latest version</a> of Thematic, but works fine on 9.7.7 and above.</p>
<p><a href="http://scottnix.com/themes/responsivebase/" target="_blank"><img src="http://scottnix.com/blog/wp-content/uploads/2012/05/responsive-base-wordpress-theme.png" alt="Responsive Base Theme Image" title="Responsive Base Theme Demo" class="aligncenter size-full wp-image-1641" /></a></p>
<p><a href="http://scottnix.com/themes/responsivebase/" class="demo" target="_blank">Demo Responsive Base Theme</a></p>
<p><a href="https://github.com/scottnix/responsive-base" class="demo">Download Responsive Base Theme</a></p>
<p>View the demo to take a peek, or visit <a href="https://github.com/scottnix/responsive-base">GitHub</a> to download or view the code. Special thanks to <a href="http://www.kathyisawesome.com/">Kathy</a> for inspiration from her <a href="https://github.com/helgatheviking/Thematic-Adaptive">adaptive layouts</a> for Thematic.</p>
<h2>Responsive Base Highlights</h2>
<h3>The CSS</h3>
<p>Thematic has a great minimalistic style by default, but I prefer not to have those default styles at the start of every child theme.</p>
<ul>
<li>The reset.css has been replaced by <a href="http://necolas.github.com/normalize.css/">normalize.css</a> which preserves the browser defaults and also corrects common browser inconsistencies.</li>
<li>Original style sheets have had a ton of the unnecessary styles removed and condensed, while also building everything with a mobile first approach to responsive web design.</li>
<li>Added <a href="https://github.com/h5bp/html5-boilerplate/blob/master/doc/css.md#print-styles">HTML5Boilerplate print styles</a> for clean printing and <a href="https://github.com/h5bp/html5-boilerplate/blob/master/doc/css.md#common-helpers">HTML5Boilerplate helper classes</a> to take advantage of the latest best practices for things like clear fixes and image replacement.</li>
</ul>
<h3>The Functions PHP</h3>
<ul>
<li>Adds my snippet to add <a href="http://scottnix.com/html5-header-with-thematic/">conditional classes for Thematic</a> to the header to target old versions of IE. This also now adds the <code>meta viewport</code> for correct scaling on mobile devices. By default this responsive theme will display a static mobile version with a little CSS for IE7 and IE8 based on a post by Joni Korpi called <a href="http://jonikorpi.com/leaving-old-IE-behind/">leaving old IE behind</a>.</li>
<li>Includes a few functions to <a href="http://scottnix.com/polishing-thematics-head/">clean up the <code>head</code></a> of the document of lines of code that are loaded by default.</li>
<li>Helps optimize script loading in WordPress by providing a template to promote good habits. Combining scripts, loading custom scripts in a custom.js file instead of on page and loading scripts in the footer unless they are required to load in the header.</li>
<li>Loads <a href="http://modernizr.com/">Modernizr</a> which includes the <a href="http://code.google.com/p/html5shiv/">html5shiv</a> for getting IE to recognize new HTML5 elements, also Modernizr does a ton more, especially useful for providing CSS3 fallbacks. Responsive Base child theme comes bundled with the full version of Modernizr, you should however use the <a href="http://modernizr.com/download/">build script</a> to only include what you need.</li>
<li>Loads <a href="http://fitvidsjs.com/">FitVids</a> JavaScript which handles the resizing of videos for responsive websites.</li>
<li>Also provides a bunch of handy functions I tend to use on most child theme builds. Such as PHP snippets to add a Favicon, register additional menus in WordPress, a fourth subsidiary widget (good for footer menus), optimized Google Analytics and also a snippet to hide widget locations in the admin area.</li>
</ul>
<h3>Responsive Base File Structure</h3>
<p>Includes necessary folders and files already setup in the child theme to promote well structured themes.</p>
<ul>
<li>/images/</li>
<li>/js/
<ul>
<li>custom.js</li>
<li>jquery.fitvids.js</li>
<li>modernizr.js</li>
</ul>
</li>
<li>favicon.ico</li>
<li>functions.php</li>
<li>screenshot.png</li>
<li>style.css</li>
<li>style.scss (for SASS/Compass)</li>
</ul>
<h2>Last Thoughts</h2>
<p>While this theme is intended for developers to dive right in to responsive design with Thematic, it would also help people who are new to child themes get an idea on how things can be done in a clean and efficient way. Getting started in mobile-first responsive design can be rough at first, so hopefully you find this child theme template useful and be sure to always get the latest version or fork your own from <a href="https://github.com/scottnix/responsive-base">GitHub</a>.</p>
<h2>Child Themes using Responsive Base</h2>
<ul>
<li>Child&#8217;s Play &#8211; by Me [<a href="http://scottnix.com/themes/childs-play/" target="_blank">demo</a>] [<a href="http://scottnix.com/childs-play-responsive-child-theme-for-thematic/" target="_blank">download</a>]</li>
<li>Titanic &#8211; by Me [<a href="http://scottnix.com/themes/titanic/" target="_blank">demo</a>] [<a href="https://github.com/scottnix/titanic" target="_blank">download</a>]</li>
<li>Fabric &#8211; by James [<a href="http://scottnix.com/themes/fabric/" target="_blank">demo</a>] [<a href="https://github.com/SeamlessThemes/fabric" target="_blank">download</a>]</li>
<li>Foundation Base &#8211; by Petskratt [<a href="http://tehnokratt.net/" target="_blank">demo</a>] [<a href="https://github.com/petskratt/foundation-base" target="_blank">download</a>]</li>
</ul>
<p>Feel free to post your creations with the Responsive Base child theme in the comments, or if you think of anything  to add, shoot me a pull request on GitHub. :)</p>
<p><ins datetime="2012-6-13"><strong>Update:</strong> Now made to comply to with <a href="https://github.com/necolas/idiomatic-css">Idiomatic-CSS</a> guidelines and also added a style.scss file for a basic SASS structure which also follows the guidelines. If you don&#8217;t use SASS, just delete the style.scss file.</ins></p>
<p><ins datetime="2012-8-29"><strong>Update:</strong> Now works with the <a href="http://wordpress.org/extend/plugins/thematic-html5/">Thematic HTML5 Plugin</a> by Karin at <a href="http://invistruct.com/">invistruct.com</a>.</ins></p>
<p>The post <a href="http://scottnix.com/responsive-base-a-child-theme-for-thematic/">Responsive Base, a child theme for Thematic</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/responsive-base-a-child-theme-for-thematic/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>Disqus Comments and Thematic</title>
		<link>http://scottnix.com/disqus-comments-and-thematic/</link>
		<comments>http://scottnix.com/disqus-comments-and-thematic/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 07:28:16 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Thematic]]></category>

		<guid isPermaLink="false">http://scottnix.com/?p=1179</guid>
		<description><![CDATA[<p>The Disqus comment platform is a very popular plugin for WordPress, it just happens to work great with the Thematic theme framework. If you aren&#8217;t careful though, you may not notice that there is one sneaky problem. Thematic will still insert the #comments ID on two different sections postfooter_postcomments and postfooter_postconnect of your child theme, .... <a href="http://scottnix.com/disqus-comments-and-thematic/" class="more-link">Read More &#187;</a></p><p>The post <a href="http://scottnix.com/disqus-comments-and-thematic/">Disqus Comments and Thematic</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>The Disqus comment platform is a very popular plugin for WordPress, it just happens to work great with the Thematic theme framework. If you aren&#8217;t careful though, you may not notice that there is one sneaky problem.</p>
<p><img src="http://scottnix.com/blog/wp-content/uploads/2012/04/disqus-thematic-theme.png" alt="Disqus Comments and Thematic" title="Disqus Comments and Thematic" class="aligncenter size-full wp-image-1186" /></p>
<p>Thematic will still insert the <code>#comments</code> ID on two different sections <code>postfooter_postcomments</code> and <code>postfooter_postconnect</code> of your child theme, but the ID will no longer exists with the Disqus plugin installed. You will need to modify the php on both to change the ID in the link from #comments to #disqus_thread to provide a correct jump to location on the pages for people clicking on a link to leave comments.</p>
<p>Disqus is a great cheater way to install a nice looking comment system (with features) and not have to spend a ton of time styling the comments section, which can be a pain for a novice. So consider these two different snippet options for using Disqus on a Thematic child theme the ultimate cheat. Just insert one of the below methods in the functions.php of your child theme.</p>
<h2>Thematic Option 1</h2>
<p>This version removes the <code>postfooter_postconnect</code> completely, it isn&#8217;t really needed. With that gone, <code>postfooter_postcomments</code> just needs an override with the correct ID&#8217;s and done.</p>
<pre class="php"><code>
// override existing and kill the postconnect from single pages, unecessary baggage
function childtheme_override_postfooter() {
	global $id, $post;
	if ($post-&gt;post_type == 'page' &amp;&amp; current_user_can('edit_posts')) { /* For logged-in &quot;page&quot; search results */
		$postfooter = '&lt;div class=&quot;entry-utility&quot;&gt;' . thematic_postfooter_posteditlink();
		$postfooter .= &quot;&lt;/div&gt;&lt;!-- .entry-utility --&gt;\n&quot;;
	} elseif ($post-&gt;post_type == 'page') { /* For logged-out &quot;page&quot; search results */
		$postfooter = '';
	} else {
		if (is_single()) {
			$postfooter = '&lt;div class=&quot;entry-utility&quot;&gt;' . thematic_postfooter_postcategory() . thematic_postfooter_posttags();
		} else {
			$postfooter = '&lt;div class=&quot;entry-utility&quot;&gt;' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postcomments();
		}
		$postfooter .= &quot;&lt;/div&gt;&lt;!-- .entry-utility --&gt;\n&quot;;
	}
	echo apply_filters( 'thematic_postfooter', $postfooter );
}

// override existing and change #comments to #disqus_thread to provide correct jump location.
function childtheme_override_postfooter_postcomments() {
	if (comments_open()) {
		$postcommentnumber = get_comments_number();
	    if ($postcommentnumber &gt; '1') {
			$postcomments = ' &lt;span class=&quot;comments-link&quot;&gt;&lt;a href=&quot;' . apply_filters('the_permalink', get_permalink()) . '#disqus_thread&quot; title=&quot;' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '&quot;&gt;';
			$postcomments .= get_comments_number() . __(' Comments', 'thematic') . '&lt;/a&gt;&lt;/span&gt;';
	    } elseif ($postcommentnumber == '1') {
			$postcomments = ' &lt;span class=&quot;comments-link&quot;&gt;&lt;a href=&quot;' . apply_filters('the_permalink', get_permalink()) . '#disqus_thread&quot; title=&quot;' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '&quot;&gt;';
			$postcomments .= get_comments_number() . __(' Comment', 'thematic') . '&lt;/a&gt;&lt;/span&gt;';
	    } elseif ($postcommentnumber == '0') {
			$postcomments = ' &lt;span class=&quot;comments-link&quot;&gt;&lt;a href=&quot;' . apply_filters('the_permalink', get_permalink()) . '#disqus_thread&quot; title=&quot;' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '&quot;&gt;';
			$postcomments .= __('Leave a comment', 'thematic') . '&lt;/a&gt;&lt;/span&gt;';
	    }
	} else {
		$postcomments = ' &lt;span class=&quot;comments-link comments-closed-link&quot;&gt;' . __('Comments closed', 'thematic') .'&lt;/span&gt;';
	}
	// Display edit link
	if (current_user_can('edit_posts')) {
		$postcomments .= ' &lt;span class=&quot;meta-sep meta-sep-edit&quot;&gt;|&lt;/span&gt; ' . thematic_postfooter_posteditlink();
	}
	return apply_filters('thematic_postfooter_postcomments',$postcomments);
}
</code></pre>
<h2>Thematic Option 2</h2>
<p>This version removes the <code>postfooter_postconnect</code> completely also, but the example also moves the author from the post header to the post footer along with fixing the ID. I am only including this one based on that the last 3 sites I have done all had no author, or had it moved below to the post footer.</p>
<pre class="php"><code>
// move author from postheader to postfooter, removed post edit also, appears in postfooter also.
function childtheme_override_postheader_postmeta() {
	$postmeta = '&lt;div class=&quot;entry-meta&quot;&gt;';
	$postmeta .= thematic_postmeta_entrydate();
	$postmeta .= &quot;&lt;/div&gt;&lt;!-- .entry-meta --&gt;\n&quot;;

	return apply_filters('thematic_postheader_postmeta',$postmeta);

}

// add author into the footer entry-utility instead, also kill the post_connect
function childtheme_override_postfooter() {
	global $id, $post;
	if ($post-&gt;post_type == 'page' &amp;&amp; current_user_can('edit_posts')) { /* For logged-in &quot;page&quot; search results */
		$postfooter = '&lt;div class=&quot;entry-utility&quot;&gt;' . thematic_postfooter_posteditlink();
		$postfooter .= &quot;&lt;/div&gt;&lt;!-- .entry-utility --&gt;\n&quot;;
	} elseif ($post-&gt;post_type == 'page') { /* For logged-out &quot;page&quot; search results */
		$postfooter = '';
	} else {
		if (is_single()) {
			$postfooter = '&lt;div class=&quot;entry-utility&quot;&gt;' . thematic_postmeta_authorlink() . ' &lt;span class=&quot;meta-sep meta-sep-author&quot;&gt; | &lt;/span&gt;' . thematic_postfooter_postcategory() . thematic_postfooter_posttags();
		} else {
			$postfooter = '&lt;div class=&quot;entry-utility&quot;&gt;' . thematic_postmeta_authorlink() . ' &lt;span class=&quot;meta-sep meta-sep-author&quot;&gt; | &lt;/span&gt;' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postcomments();
		}
		$postfooter .= &quot;&lt;/div&gt;&lt;!-- .entry-utility --&gt;\n&quot;;
	}
	echo apply_filters( 'thematic_postfooter', $postfooter );
}

// override existing and change #comments to #disqus_thread to provide correct jump location.
function childtheme_override_postfooter_postcomments() {
	if (comments_open()) {
		$postcommentnumber = get_comments_number();
	    if ($postcommentnumber &gt; '1') {
			$postcomments = ' &lt;span class=&quot;comments-link&quot;&gt;&lt;a href=&quot;' . apply_filters('the_permalink', get_permalink()) . '#disqus_thread&quot; title=&quot;' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '&quot;&gt;';
			$postcomments .= get_comments_number() . __(' Comments', 'thematic') . '&lt;/a&gt;&lt;/span&gt;';
	    } elseif ($postcommentnumber == '1') {
			$postcomments = ' &lt;span class=&quot;comments-link&quot;&gt;&lt;a href=&quot;' . apply_filters('the_permalink', get_permalink()) . '#disqus_thread&quot; title=&quot;' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '&quot;&gt;';
			$postcomments .= get_comments_number() . __(' Comment', 'thematic') . '&lt;/a&gt;&lt;/span&gt;';
	    } elseif ($postcommentnumber == '0') {
			$postcomments = ' &lt;span class=&quot;comments-link&quot;&gt;&lt;a href=&quot;' . apply_filters('the_permalink', get_permalink()) . '#disqus_thread&quot; title=&quot;' . __('Comment on ', 'thematic') . the_title_attribute('echo=0') . '&quot;&gt;';
			$postcomments .= __('Leave a comment', 'thematic') . '&lt;/a&gt;&lt;/span&gt;';
	    }
	} else {
		$postcomments = ' &lt;span class=&quot;comments-link comments-closed-link&quot;&gt;' . __('Comments closed', 'thematic') .'&lt;/span&gt;';
	}
	// Display edit link
	if (current_user_can('edit_posts')) {
		$postcomments .= ' &lt;span class=&quot;meta-sep meta-sep-edit&quot;&gt;|&lt;/span&gt; ' . thematic_postfooter_posteditlink();
	}
	return apply_filters('thematic_postfooter_postcomments',$postcomments);
}
</code></pre>
<p>The post <a href="http://scottnix.com/disqus-comments-and-thematic/">Disqus Comments and Thematic</a> appeared first on <a href="http://scottnix.com">Scott Nix</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://scottnix.com/disqus-comments-and-thematic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching using disk
Object Caching 1043/1146 objects using disk

 Served from: scottnix.com @ 2013-05-24 22:58:24 by W3 Total Cache -->