<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>AJ Troxell</title>
	
	<link>http://ajtroxell.com</link>
	<description>Welcome to a place for photoshop actions, vector resources, video effects, items for mobile, random "hacks" and some humor to boot.</description>
	<lastBuildDate>Wed, 15 May 2013 15:40:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ajtroxell" /><feedburner:info uri="ajtroxell" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>39.840482</geo:lat><geo:long>-89.005693</geo:long><feedburner:emailServiceId>ajtroxell</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Troat – A Free Block Font (WIP)</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/5XFBIHMFEfg/</link>
		<comments>http://ajtroxell.com/troat-a-free-block-font-wip/#comments</comments>
		<pubDate>Mon, 13 May 2013 13:43:49 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[minimal]]></category>
		<category><![CDATA[minimalistic]]></category>
		<category><![CDATA[modern]]></category>
		<category><![CDATA[outline]]></category>
		<category><![CDATA[simplistic]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[troat]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=3155</guid>
		<description><![CDATA[Troat is still in early development, and created mostly out of experimentation and the fun of creating another font. A colleague was the originator of the design for its minimalist block style. The structure is perfect for large in your face designs, and as an accent to a design versus a font intended to be [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://ajtroxell.com/wp-content/uploads/2013/05/troat.jpg" rel="lightbox[3155]"><img src="http://ajtroxell.com/wp-content/uploads/2013/05/troat-553x305.jpg" alt="Troat Beta" width="553" height="305" class="aligncenter size-large wp-image-3167" /></a></p>

<p>Troat is still in early development, and created mostly out of experimentation and the fun of creating another font. A colleague was the originator of the design for its minimalist block style.</p>

<p><a href="http://ajtroxell.com/wp-content/uploads/2013/05/engineer.jpg" rel="lightbox[3155]"><img src="http://ajtroxell.com/wp-content/uploads/2013/05/engineer-553x100.jpg" alt="Troat" width="553" height="100" class="aligncenter size-large wp-image-3160" /></a></p>

<p>The structure is perfect for large in your face designs, and as an accent to a design versus a font intended to be read easily. There are four variants of Troat. Lowercase characters as an outline style, and uppercase as filled of both a heavy block style and a more legible style.</p>

<p><a href="http://ajtroxell.com/wp-content/uploads/2013/05/try-troat.jpg" rel="lightbox[3155]"><img src="http://ajtroxell.com/wp-content/uploads/2013/05/try-troat-553x306.jpg" alt="Try Troat" width="553" height="306" class="aligncenter size-large wp-image-3168" /></a></p>

<p>Troat is far from complete, but I figured this would be a great time to see what some people think. Currently it consists of only A-Z. We are going through the process of designing numbers and symbols that would fit the current style of Troat, while being discernable from the rest of the characters.</p>

<p>Please do not redistribute until we create the final version.</p>

Note: There is a file embedded within this post, please visit this post to download the file.

<div class="aligncenter"><small><a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nd/3.0/80x15.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Troat</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://ajtroxell.com/" property="cc:attributionName" rel="cc:attributionURL">AJ Troxell</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nd/3.0/deed.en_US">Creative Commons Attribution-NoDerivs 3.0 Unported License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="http://ajtroxell.com/" rel="dct:source">http://ajtroxell.com/</a>.</small></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=5XFBIHMFEfg:Rs4FNQMbvZc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=5XFBIHMFEfg:Rs4FNQMbvZc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=5XFBIHMFEfg:Rs4FNQMbvZc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=5XFBIHMFEfg:Rs4FNQMbvZc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=5XFBIHMFEfg:Rs4FNQMbvZc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=5XFBIHMFEfg:Rs4FNQMbvZc:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/5XFBIHMFEfg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/troat-a-free-block-font-wip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/troat-a-free-block-font-wip/</feedburner:origLink></item>
		<item>
		<title>Using Sublime Text 2 &amp; Markdown with WordPress</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/RxxjAdPYD_4/</link>
		<comments>http://ajtroxell.com/using-sublime-text-2-markdown-with-wordpress/#comments</comments>
		<pubDate>Wed, 08 May 2013 17:03:54 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[markdown]]></category>
		<category><![CDATA[sublime snippet]]></category>
		<category><![CDATA[sublime text]]></category>
		<category><![CDATA[sublpress]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[xml-rpc]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=3117</guid>
		<description><![CDATA[As a web developer, I am always looking for ways to streamline my process. Which means cleaning, optimizing, and cleaning again. As an avid user of WordPress, much of my time is consumed looking for new ways of increasing the productivity of WordPress and of myself while using it. While my written spelling and grammar [...]]]></description>
				<content:encoded><![CDATA[<p>As a web developer, I am always looking for ways to streamline my process. Which means cleaning, optimizing, and cleaning again. As an avid user of WordPress, much of my time is consumed looking for new ways of increasing the productivity of WordPress and of myself while using it.</p>

<p>While my written spelling and grammar are rated a B+ on a good day, I am still a huge fan of <strong><a href="http://daringfireball.net/projects/markdown/" title="Markdown" target="new">Markdown</a></strong>. If you are a blogger at any level, Markdown is the language, I mean tool, for you.</p>

<p>But while Markdown is a wonderful tool in and of itself, how can we make working with WordPress and Markdown better? In comes Sublime Text. Yes, the best editor created thus far can also function as a blogging tool.</p>

<h2>Getting Set Up</h2>

<p>The process is fairly simple, but you&#8217;ll need a few things to get set up. If you are reading this, I assume you already use Sublime Text, and of course have a WordPress blog.</p>

<ol>
<li>Get familiar with the <strong><a href="http://support.mashery.com/docs/customizing_your_portal/Markdown_Cheat_Sheet" target="new" title="Markdown Cheat Sheet">Markdown syntax</a></strong> and then install the <strong><a href="http://wordpress.org/extend/plugins/markdown-on-save-improved/" target="new" title="Markdown on Save Improved">Markdown on Save Improved</a></strong> plug-in for <strong>WordPress</strong> and activate it.</li>
<li>Now you need to fetch <strong><a href="http://dnstbr.me/labs/sublpress-sublime-text-wordpress-plugin/" target="new" title="Sublpress - Sublime Text WordPress Plugin">Sublpress</a></strong> for Sublime Text. You can download it from the website using GitHub, or install it using <strong><a href="http://wbond.net/sublime_packages/package_control" target="new" title="Sublime Package Control">Package Control</a></strong>.</li>
<li>Configure <strong>Sublpress</strong> per the instructions after you install it, and ensure that you have XML-RPC enabled in your WordPress dashboard if you are running a version of WP previous to 3.5.</li>
<li>Since you may be using some custom fields, and may have inline images, you really don&#8217;t want your posts getting published automatically when you save. At this time <strong>Sublpress</strong> does not support these options. So you need to edit your <strong>wp-includes &rarr; class-wp-xmlrpc-server.php</strong> file.</li>
<li>Open it up and search for <pre class="crayon-plain-tag">$post_status = ($publish) ? 'publish' : 'draft';</pre> and change every instance of it to read <pre class="crayon-plain-tag">$post_status = ($publish) ? 'draft' : 'publish';</pre> which will ensure that each post you make is made as a draft.</li>
<li>Now you are ready to start publishing within ST.</li>
</ol>

<h2>Blogging with Sublpress</h2>

<p>To get started, access ST commands palette by pressing <strong>shift + &#8984; + p</strong> <small>(shift + alt + p in Windows)</small>. Then type &#8220;WP&#8221; to see all the commands available to you for Sublpress.
<a href="http://ajtroxell.com/wp-content/uploads/2013/05/Screen-Shot-2013-05-07-at-9.33.56-AM.png" rel="lightbox[3117]"><img src="http://ajtroxell.com/wp-content/uploads/2013/05/Screen-Shot-2013-05-07-at-9.33.56-AM.png" alt="Sublpress Commands" class="aligncenter size-full wp-image-3133" /></a></p>

<p>You&#8217;ll want to choose <strong>WP: New Post</strong> so you can get familiar with it, and to start using Markdown in your posts so you can see how things translate to WordPress with <strong>Markdown on Save Improved</strong>.</p>

<p>You can use copy this sample, or write your own:</p>

<pre class="crayon-plain-tag">#Sample Post H1

This is a sample post written in markdown. __Markdown on Save Improved__ will ensure that when this post is saved, it will retain its syntax.

##Markdown Items (H2)

Writing Markdown is extremely simple, but incase you have problems you can read about the syntax of Markdown [here](http://daringfireball.net/projects/markdown/syntax &quot;Markdon: Syntax&quot;), or read a useful cheat sheet [here](http://support.mashery.com/docs/customizing\_your\_portal/Markdown\_Cheat\_Sheet &quot;Markdown Cheat Sheet&quot;)

###Lists

####Unordered

- An unordered list is super simple.
- Just use a dash, esterisk, or plus sign.
* You can even mix and match.
+ Not that you would want to.

####Ordered

1. Numbers.
2. Just numbers.
3. As simple as that.

####Definition List

List Defined
: A number of connected items or names written or printed consecutively, typically one below the other.
Item Defined
: An individual article or unit, esp. one that is part of a list, collection, or set.

###Emphasis

####Italic

_Italicising text_ is easy and can be *done* a couple of different ways.

####Bold

__Bolding text__ is also easy and can be **done** a couple of different ways as well.

###Escaping

Escaping some symbols is required to make sure that Markdown doesn't interpret them as one of its own. These characters include \\`\*\_\{\}\[\]\(\)\#\+\-\.\!\:\|

&lt;small&gt;Note: The good thing about markdown is that it also supports standard HTML. Oh, and you don't have to escape periods all of the time. So you ended a sentence with, &quot;in 1984 PERIOD&quot;. Well, you would want to escape that period, like &quot;in 1984\.&quot; so that Markdown doesn't interpret this as a list item.&lt;/small&gt;</pre>

<p>At any point during the creation of your post can you save it or access the menu and upload images.</p>

<h2>Finishing Up</h2>

<p>When you have finished,save your document in Sublime Text and it will be published as a draft in WordPress.</p>

<p>Although it is possible to add images to your posts using Sublpress, I haven&#8217;t quite gotten everything working flawlessly. I can upload images, and then add them to my posts using regular HTML, but as far as assigning it as a <strong>Featured Image</strong>, it has given be a &#8220;500 Internal Server Error&#8221; each time.</p>

<p>Sublpress is still under heavy-development, so features and stability will only get better. Th major benefit is not having to log in to the WordPress dashboard to edit or create a post. I draft many ideas at once and then come back the write the content. Using Sublpress saves me a ton of time.</p>

<p><small>Note: If you do not wish to edit your XML-RPC settings, you can always <strong>create another user as a Contributor</strong> to ensure that all posts are made as drafts. Doing so however, will deny you the ability to manage any posts made by your admin account. Of course, a plugin named <a href="http://wordpress.org/extend/plugins/user-role-editor/" target="new" title="User Role Editor">User Role Editor</a> can solve this problem.</small></p>

<h3>Wait, wait, wait. There&#8217;s Something Else!</h3>

<p>I love markdown, it is so simple compared to writing HTML markup for blog posts. But I am lazy, so <strong>Sublime Snippets</strong> to the rescue. Here are a few snippets you can use to even further your blogging/Markdown efficiency.</p>

<ul>
<li>Markdown H1 &#45; Type <strong>mh</strong> then press tab to insert an H1.</li>
<li>Markdown H2 &#45; Type <strong>mh2</strong> then press tab to insert an H2.</li>
<li>Markdown H3 &#45; Type <strong>mh3</strong> then press tab to insert an H3.</li>
<li>Markdown H4 &#45; Type <strong>mh4</strong> then press tab to insert an H4.</li>
<li>Markdown H5 &#45; Type <strong>mh5</strong> then press tab to insert an H5.</li>
<li>Markdown H6 &#45; Type <strong>mh6</strong> then press tab to insert an H6.</li>
<li>HTML Image with Link and Class &#45; Type <strong>mimg</strong> then press tab to insert <pre class="crayon-plain-tag">&lt;a href=&quot;http://YOURDOMAIN.COM/wp-content/uploads/YEAR/MONTH/FILENAME.EXTENSION&quot; rel=&quot;lightbox[3117]&quot; title=&quot;TITLE TEXT&quot;&gt;&lt;img src=&quot;http://YOURDOMAIN.COM/wp-content/uploads/YEAR/MONTH/FILENAME.EXTENSION&quot; alt=&quot;ALT TEXT&quot; class=&quot;aligncenter&quot;&gt;&lt;/a&gt;</pre> into your post. You <strong>must</strong> change <strong>YOURDOMAIN.COM, YEAR, MONTH</strong> &#40;two digits&#41;, <strong>TITLE TEXT, rel, ALT TEXT</strong> and set your <strong>class</strong>. You can edit most of these before you even install the snippet and then just edit the date, link, and image info each time you use it.</li>
</ul>

<p>These may not be of any use to you, as Markdown is pretty easy already, but then again. The higher H tags were the reason for the creation of these snippets, and the lower ones are in there just for consistency. Unzip the download and place the files in the <strong>Packages &rarr; User</strong> folder.</p>

Note: There is a file embedded within this post, please visit this post to download the file.
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=RxxjAdPYD_4:PKdTOZVMW9o:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=RxxjAdPYD_4:PKdTOZVMW9o:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=RxxjAdPYD_4:PKdTOZVMW9o:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=RxxjAdPYD_4:PKdTOZVMW9o:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=RxxjAdPYD_4:PKdTOZVMW9o:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=RxxjAdPYD_4:PKdTOZVMW9o:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/RxxjAdPYD_4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/using-sublime-text-2-markdown-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/using-sublime-text-2-markdown-with-wordpress/</feedburner:origLink></item>
		<item>
		<title>HTML Compress and Replace for Sublime Text</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/wyaZDug9CgE/</link>
		<comments>http://ajtroxell.com/html-compress-and-replace-for-sublime-text/#comments</comments>
		<pubDate>Mon, 06 May 2013 22:00:41 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[codekit]]></category>
		<category><![CDATA[compress html]]></category>
		<category><![CDATA[kit language]]></category>
		<category><![CDATA[minify]]></category>
		<category><![CDATA[package control]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[replace html]]></category>
		<category><![CDATA[sublime text]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=3090</guid>
		<description><![CDATA[In my last write-up regarding CodeKit&#8217;s Kit Language I mentioned a plug-in (package) for Sublime Text (aka ST) that I had created. Well here it is. A simple plugin/package that will compress any HTML file using the Build System option. What It Is The Kit Language will generate static HTML files for you upon save, [...]]]></description>
				<content:encoded><![CDATA[<p>In my last write-up regarding <a href="http://ajtroxell.com/codekits-the-kit-language-how-to-use-it/" title="CodeKit’s The Kit Language &amp; How to Use It">CodeKit&#8217;s Kit Language</a> I mentioned a plug-in (package) for <a href="http://www.sublimetext.com/2" title="Sublime Text 2" target="_blank">Sublime Text (aka ST)</a> that I had created. Well here it is. A simple plugin/package that will compress any HTML file using the <strong>Build System</strong> option.</p>
<h2>What It Is</h2>
<p>The Kit Language will generate static HTML files for you upon save, but what about compression? Well, CodeKit doesn&#8217;t provide HTML compression. So you are left using a separate app, or a plugin that resides within the <strong>Tools &rarr; Build System</strong> menu in <strong>Sublime Text</strong>. But the only plugins I could find for ST generated a renamed file or a file in another folder. But in this scenario, working with the Kit language, a duplicate HTML file is unnecessary, and wastes time. I didn&#8217;t want to waste this time, each time a change needs made, to delete the CodeKit compiled HTML files and rename the compressed versions output by ST. So born was the extremely simplistic HTML Compress and Replace.</p>
<h3>Usage</h3>
<p>Until HTML Compress and Replace is available using <a href="http://wbond.net/sublime_packages/package_control" title="A full-featured package manager that helps discovering, installing, updating and removing packages for Sublime Text 2." target="_blank">Package Control</a>, you can download it directly from the link below or from the <a href="https://bitbucket.org/atroxell/html-compress-and-replace" title="HTML Compress and Replace Repo" target="_blank">repo on BitBucket</a>.</p>
<ol>
<li>In ST, go to <strong>Preferences &rarr; Browse Packages</strong> and take note of the location of this folder.</li>
<li>Place the HTML Compress and Replace folder in this directory. (You may need to restart ST for it to be available.)</li>
<li>In ST, go to <strong>Tools &rarr; Build System</strong> and click on <strong>HTML Compress and Replace</strong>.</li>
<li>While viewing an HTML file, press <strong>F7</strong>.</li>
<li>The window at the bottom of ST will tell you when the build is finished.</li>
<li>Wait for the view to refresh or simply click on another tab or file and then click back to view the compressed HTML.</li>
</ol>
<p>Note: There is a file embedded within this post, please visit this post to download the file.</p>
<p><small>Inspiration for this came from <a href="https://github.com/darkdelphin/Html-compressor" title="HTML Compressor" target="_blank">darkdelphin</a>.</small></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=wyaZDug9CgE:tyxPM5td7hQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=wyaZDug9CgE:tyxPM5td7hQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=wyaZDug9CgE:tyxPM5td7hQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=wyaZDug9CgE:tyxPM5td7hQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=wyaZDug9CgE:tyxPM5td7hQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=wyaZDug9CgE:tyxPM5td7hQ:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/wyaZDug9CgE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/html-compress-and-replace-for-sublime-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/html-compress-and-replace-for-sublime-text/</feedburner:origLink></item>
		<item>
		<title>CodeKit’s “The Kit Language” &amp; How to Use It</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/aywBSjwtRko/</link>
		<comments>http://ajtroxell.com/codekits-the-kit-language-how-to-use-it/#comments</comments>
		<pubDate>Thu, 02 May 2013 16:44:57 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[codekit]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[kit]]></category>
		<category><![CDATA[minify]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=2997</guid>
		<description><![CDATA[CodeKit has taken the web development world by storm recently. Combining all of the best in new web dev technologies into one great app. Compile, combine &#38; minify, live browser reloads, image compression, and JS validation are just a few of its slew features. One of my favorite and highly underrated featured is the Kit language. Essential when developing static websites. Never heard of Kit or how to use it? I have provided an explanation as well as in-depth examples of how to implement and use Kit.]]></description>
				<content:encoded><![CDATA[<p><a href="http://incident57.com/codekit/" title="CodeKit" target="_blank">CodeKit</a> has taken the web development world by storm. Combining all of the best in new web dev technologies into one great app. Compile, combine &amp; minify, live browser reloads, image compression, and JS validation are just a few features it brings to the table.</p>
<p>One of my favorite although minuscule features, is <a href="http://incident57.com/codekit/kit.php" title="The Kit Language" target="_blank">The Kit Language</a>. Kit is described as:</p>
<blockquote><p>A .kit file is HTML with special comments. Kit adds two things to HTML: imports and variables. CodeKit compiles .kit files into regular HTML files.</p></blockquote>
<p>Kit replaces the need to run a local server environment in order to make streamlined static web sites. Instead of having to use <a href="http://www.htmlgoodies.com/beyond/webmaster/article.php/3473341/SSI-The-Include-Command.htm" title="Server Side Includes" target="_blank">Server Side Includes</a> or <a href="http://v1.jontangerine.com/log/2008/02/designer-php-a-simple-include" title="PHP Includes" target="_blank">PHP includes</a>, you can simply give your files the <strong>.kit</strong> extension and start using the Kit syntax.</p>
<h2>Imports &amp; Variables</h2>
<p>Kit works by using Imports and Variables. Both are very flexible in their syntax and allow you to pull off things you couldn&#8217;t previously do without a local server environment.</p>
<h3>Imports</h3>
<p>Kit imports allow you to include <strong>any</strong> file of <strong>any</strong> type into any Kit file. When your Kit file is saved, CodeKit does the work and replaces these tags with the contents of the imported file. The syntax is extremely flexible, giving you three options to choose from.</p>
<p></p><pre class="crayon-plain-tag">&lt;!-- @include someFile.kit --&gt;
&lt;!-- @import '../../someFileAtRelativePath.html' --&gt;
&lt;!--@include no_spaces_at_beginning_or_end.txt--&gt;</pre><p></p>
<p>If you are importing a .kit file, the extension is not required. For any other file, it is.</p>
<h3>Variables</h3>
<p>Declaring variables is also very flexible. You can use any of the syntax options provided below.</p>
<p></p><pre class="crayon-plain-tag">&lt;!--$myVar:This text is amazing--&gt;
&lt;!--@var2=Some other incredible text--&gt;
&lt;!-- @width = 40px --&gt;
&lt;!-- $manifesto Who needs colons and equals signs? --&gt;</pre><p></p>
<p>So how does it work? Here is how!</p>
<h2>How to Use Kit</h3>
<p>Here is a few bits of code that show you how I have used Kit to streamline the creation of a static HTML website.<br />
<small><em>In this example I am using four files. _variables.kit, _header.kit, page.kit, and _footer.kit.</em></small></p>
<h3>_variables.kit</h3>
<p>My <strong>_variables.kit</strong> file contains any paths that I may need to use throughout my project. Keep in mind this is a static HTML site, that is in the development process. And is on my local machine as well as a staging server, so my paths need to remain relative. This may not be the case for you, especially is you are using <strong>.htaccess</strong> to <a href="http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/" title="Removing file extension via .htaccess" target="_blank">remove the .html extensions</a> from your URLs.</p>
<p>So my <strong>_variables.kit</strong> file looks like:</p>
<p></p><pre class="crayon-plain-tag">&lt;!-- $images = ../assets/css/images/ --&gt;
&lt;!-- $css = ../assets/css/ --&gt;
&lt;!-- $js = ../assets/js/ --&gt;</pre><p></p>
<p>Variables are your friend. Use them wisely though, if you have incorrect paths you could end up having to fix them.</p>
<h3>page_1.kit</h3>
<p>You would expect to see my <strong>_header.kit</strong> first, but I am showing my <strong>page_1.kit</strong> template so you can see more variables being declared, that will then be used by my <strong>_header.kit</strong> file. My template, <strong>page_1.kit</strong> represents a default layout for all of your site&#8217;s pages. Remember when looking at this file how <a href="http://www.w3schools.com/tags/tag_comment.asp" title="HTML comment tag" target="_blank">HTML comments</a> are declared and how Kit variables are declared as I have commented each set of variables so you know what they are for.</p>
<p></p><pre class="crayon-plain-tag">&lt;!-- Header Variables --&gt;
	&lt;!-- $pageTitle = Page Title --&gt;
	&lt;!-- $pageDescription = Lorem ipsum description of this page. --&gt;
	&lt;!-- $pageKeywords = keyword keyword keyword keyword keyword keyword keyword keyword keyword keyword keyword --&gt;

&lt;!-- Body Class --&gt;
	&lt;!-- $bodyClass = home --&gt;

&lt;!-- Nav Class --&gt;
	&lt;!-- $page_1_Nav = active --&gt;
	&lt;!-- $page_2_Nav = inactive --&gt;
	&lt;!-- $page_3_Nav = inactive --&gt;
	&lt;!-- $page_4_Nav = inactive --&gt;
	&lt;!-- $page_5_Nav = inactive --&gt;

&lt;!-- Import Header --&gt;
	&lt;!-- @import &quot;_header&quot; --&gt;

			&lt;section&gt;
				&lt;div class=&quot;row&quot;&gt;
					&lt;div class=&quot;span12&quot;&gt;
						&lt;div class=&quot;span7 offset6&quot;&gt;
							&lt;article class=&quot;message&quot;&gt;

								&lt;h1&gt;Page Title&lt;/h1&gt;

								&lt;p&gt;Urna tortor velit, vut vel ridiculus augue arcu velit facilisis in ac! Hac habitasse dignissim turpis? Mattis urna ultricies porta dolor? Pid sociis sagittis placerat, nec integer. Habitasse, rhoncus scelerisque, scelerisque hac, eu pulvinar, nisi enim? Ut aenean enim turpis, et hac sed odio pulvinar.&lt;/p&gt;

								&lt;p&gt;Odio? Dis elementum dignissim in penatibus adipiscing nisi quis massa! Diam ridiculus ac placerat. Montes magnis nec. Sit vel a vel urna, aenean turpis. Porta in! Sit ac adipiscing nunc, urna ac mid hac vel? Dolor sit penatibus mauris platea ut hac, odio cras.&lt;/p&gt;

							&lt;/article&gt;
						&lt;/div&gt;
					&lt;/div&gt;
				&lt;/div&gt;

			&lt;/section&gt;

&lt;!-- Import Footer --&gt;
	&lt;!-- @import &quot;_footer&quot; --&gt;</pre><p></p>
<p>It should be pretty obvious as to what we have done here. But here is a rundown.</p>
<ul>
<li>Header Variables are for meta tag data.
<ul>
<li><strong>$pageTitle</strong> &#8211; Title of the current page.</li>
<li><strong>$pageDescription</strong> &#8211; Description of the current page.</li>
<li><strong>$pageKeywords</strong> &#8211; Duh. Keywords.</li>
</ul>
</li>
<li>Body Class
<ul>
<li><strong>$bodyClass</strong> &#8211; Each one of my pages has a different background image, so I declare my custom class here.</li>
</ul>
</li>
<li>Nav Classes is so I can assign a variable to each and call them in the nav according to which page is being viewed and which nav item should have an active state.
<ul>
<li><strong>$page_1_Nav</strong> &#8211; The current page is set to active as this is the page I am working on.</li>
<li><strong>$page_2_Nav</strong> through <strong>$page_5_Nav</strong> &#8211; These are set to inactive.</li>
</ul>
</li>
<li>Import Header
<ul>
<li><strong>@import &#8220;_header&#8221;</strong> &#8211; imports our _header.kit file, <strong>after</strong> our variables are declared.</li>
<li><strong>@import &#8220;_footer&#8221;</strong> &#8211; imports our _footer.kit file.</li>
</ul>
</li>
</ul>
<p>If you have any questions, ask in the comments and I will clarify.</p>
<h3>_header.kit</h3>
<p>Here is what my _header.kit looks like:</p>
<p></p><pre class="crayon-plain-tag">&lt;!-- @import &quot;_variables&quot; --&gt;

&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
	&lt;head&gt;
		&lt;meta charset=&quot;utf-8&quot;&gt;
		&lt;title&gt;&lt;!--$pageTitle--&gt; | Website Title&lt;/title&gt;
		&lt;meta name=&quot;keywords&quot; content=&quot;&lt;!--$pageKeywords--&gt;&quot;&gt;
		&lt;meta name=&quot;description&quot; content=&quot;&lt;!--$pageDescription--&gt;&quot;&gt;
		&lt;meta name=&quot;author&quot; content=&quot;AJ Troxell, aj@ajtroxell.com&quot;&gt;

		&lt;!-- HTML5 shim, for IE6-8 support of HTML elements --&gt;
		&lt;!--[if lt IE 9]&gt;
		  &lt;script src=&quot;http://html5shim.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/script&gt;
		&lt;![endif]--&gt;

		&lt;!-- Stylesheet --&gt;
		&lt;link href=&quot;&lt;!--$cssPath--&gt;master.css&quot; rel=&quot;stylesheet&quot; media=&quot;screen&quot;&gt;

		&lt;!--[if lt IE 9]&gt;
			&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;!--$cssPath--&gt;ie.css&quot; /&gt;
		&lt;![endif]--&gt;

	 &lt;/head&gt;
	&lt;body class=&quot;&lt;!--$bodyClass--&gt;&quot;&gt;

		&lt;div class=&quot;container&quot;&gt;
			&lt;header class=&quot;row&quot;&gt;
				&lt;div class=&quot;span3&quot;&gt;
					&lt;a class=&quot;logo&quot; href=&quot;/&quot;&gt;&lt;h1 class=&quot;ir&quot;&gt;Website Title&lt;/h1&gt;&lt;/a&gt;
				&lt;/div&gt;
				&lt;nav class=&quot;span9&quot;&gt;
					&lt;ul&gt;
						&lt;li class=&quot;&lt;!--$page_1_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_1.html&quot;&gt;Page 1&lt;/a&gt;&lt;/li&gt;
						&lt;li class=&quot;&lt;!--$page_2_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_2.html&quot;&gt;Page 1&lt;/a&gt;&lt;/li&gt;
						&lt;li class=&quot;&lt;!--$page_3_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_3.html&quot;&gt;Page 2&lt;/a&gt;&lt;/li&gt;
						&lt;li class=&quot;&lt;!--$page_4_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_4.html&quot;&gt;Page 3&lt;/a&gt;&lt;/li&gt;
						&lt;li class=&quot;&lt;!--$page_5_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_5.html&quot;&gt;Page 4&lt;/a&gt;&lt;/li&gt;
					&lt;/ul&gt;
				&lt;/nav&gt;
			&lt;/header&gt;</pre><p>First we import our <strong>_variables.kit</strong> in order to fill in the paths to our asset files.</p>
<p>I then execute the other variables that were defined within my <strong>page_1.kit</strong>. The <strong>title</strong>, <strong>description</strong>, <strong>keywords</strong>, and <strong>classes</strong> for the nav will be filled in by CodeKit.</p>
<p>Currently the Kit Language does not support conditional statements, so for each page template I will need to change the values of my <strong>Nav Class</strong> variables so the proper nav items are given a class of active or inactive.</p>
<h3>_footer.kit</h3>
<p>Our footer is pretty basic, but it does call our Javascript and <strong>active or inactive</strong> classes.</p>
<p></p><pre class="crayon-plain-tag">&lt;/div&gt;
		&lt;div class=&quot;footer_container&quot;&gt;
			&lt;footer class=&quot;container&quot;&gt;
				&lt;div class=&quot;row&quot;&gt;
					&lt;nav class=&quot;span12&quot;&gt;
						&lt;ul class=&quot;secondary&quot;&gt;
							&lt;li class=&quot;&lt;!--$page_1_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_1.html&quot;&gt;Page 1&lt;/a&gt;&lt;/li&gt;
							&lt;li class=&quot;&lt;!--$page_2_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_2.html&quot;&gt;Page 1&lt;/a&gt;&lt;/li&gt;
							&lt;li class=&quot;&lt;!--$page_3_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_3.html&quot;&gt;Page 2&lt;/a&gt;&lt;/li&gt;
							&lt;li class=&quot;&lt;!--$page_4_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_4.html&quot;&gt;Page 3&lt;/a&gt;&lt;/li&gt;
							&lt;li class=&quot;&lt;!--$page_5_Nav--&gt;&quot;&gt;&lt;a href=&quot;../page_5.html&quot;&gt;Page 4&lt;/a&gt;&lt;/li&gt;
						&lt;/ul&gt;
					&lt;/nav&gt;
				&lt;/div&gt;
			&lt;/footer&gt;
		&lt;/div&gt;
		&lt;script src=&quot;&lt;!--$jsPath--&gt;master-ck.js&quot;&gt;&lt;/script&gt;
	&lt;/body&gt;
&lt;/html&gt;</pre><p></p>
<p>Of course, yours may be much more complicated than this, and utilize Kit much more.</p>
<h3>Saving</h3>
<p>Each time you save your page_1.kit, CodeKit will compile it and create your static HTML page, appropriately named <strong>page_1.html</strong>.</p>
<p>Any imported files will not be compiled outside of their containing .kit file.</p>
<h2>Wrapping Up</h2>
<p>So there you have it. The Kit language is versatile, simple, and a life-saver for small static web projects, or for anyone that doesn&#8217;t want to run a local environment for a small project.</p>
<p>In the future I hope conditionals within the Kit language will become a reality. I spoke with <strong>Bryan Jones</strong>, the developer of CodeKit, and asked him about this and the possibility of HTML compression becoming part of CodeKit, and here is what he had to say.</p>
<h3>Regarding Conditionals</h3>
<blockquote><p>
I get a lot of requests for IF statements to solve this exact problem. I plan to address it within the next couple months.
</p></blockquote>
<p>I am ecstatic to see conditionals becoming a possible reality, and even offered my own ideas as to what the syntax could look like.</p>
<p></p><pre class="crayon-plain-tag">&lt;!-- $itemActive = {if:kit = page_1}
	activeClassName
{else if:kit = page_2}
	activeClassName
{else}
	inactiveClassName
{/if:kit} --&gt;</pre><p></p>
<p>Where <strong>if:kit = page_1</strong> would indicate to CodeKit that if the currently compiled page is <strong>page_1.kit</strong> to insert the string <strong>activeClassName</strong> but if not to insert the string <strong>inactiveClassName</strong>.</p>
<p>Or a simplified version I threw together since speaking with him. Remember, as of right now Kit variables <strong>MUST</strong> have a value.</p>
<p></p><pre class="crayon-plain-tag">&lt;!-- $itemActive = {if:current_kit = page_1}
	activeClassName
{else:current_kit}
	inactiveClassName
{/if:current_kit} --&gt;</pre><p></p>
<p>Where <strong>if:current_kit = page_1</strong> would indicate to CodeKit that if the currently compiled page is <strong>page_1.kit</strong> to insert the string <strong>activeClassName</strong> but if not, to do nothing.</p>
<h3>Regarding HTML Compression</h3>
<blockquote><p>
I&#8217;ve looked at this frequently and the sad truth is that there are no *bulletproof* HTML minifiers out there right now. Each one I find breaks in specific edge cases, which results in bad markup. Because CodeKit is used by many thousands of developers on all sorts of websites, I can&#8217;t support any tools that don&#8217;t work correctly in all cases. As a result, I&#8217;ve held off on HTML minification until the available tools improve.
</p></blockquote>
<p>I do agree that HTML compression cannot be fully trusted. But if CodeKit created a folder named &#8220;<em>compressed</em>&#8221; and placed all the compressed files inside it, this would allow developers to double check the compressed syntax and output. But I understand that CodeKit is here to make lives easier, and not create extra steps.</p>
<p>Using Kit alongside an altered plug-in for <a href="http://www.sublimetext.com/2" title="Sublime Text 2" target="_blank">Sublime Text 2</a> that i&#8217;ve created, I have had absolutely no issues with HTML compression. But I am also guaranteed safe, since working files are .kit and not .html and nothing is permanently overwritten upon compression. I will release this plug-in shortly for those that are interested. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=aywBSjwtRko:AEDijiAe008:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=aywBSjwtRko:AEDijiAe008:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=aywBSjwtRko:AEDijiAe008:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=aywBSjwtRko:AEDijiAe008:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=aywBSjwtRko:AEDijiAe008:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=aywBSjwtRko:AEDijiAe008:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/aywBSjwtRko" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/codekits-the-kit-language-how-to-use-it/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/codekits-the-kit-language-how-to-use-it/</feedburner:origLink></item>
		<item>
		<title>SQUAR3D WordPress Theme</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/MER9ozCFAko/</link>
		<comments>http://ajtroxell.com/squar3d-theme/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 14:35:42 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[Themes]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[responsive]]></category>
		<category><![CDATA[squared]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=2949</guid>
		<description><![CDATA[SQUAR3D is a new free Wordpress theme created by yours truly. Valid HTML(5), and a minimal design make this responsive theme great for blogs focused on quality content. Four child themes, four color options, widgets, and social icons built into the footer make it a simple theme to install and maintain while giving your Wordpress site a unique feel.]]></description>
				<content:encoded><![CDATA[<p><a href="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-1.37.47-PM.png" rel="lightbox[2949]"><img src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-1.37.47-PM-553x409.png" alt="SQUAR3D Orange Child Theme" width="553" height="409" class="aligncenter size-large wp-image-2951" /></a></p>
<p>SQUAR3D is a free minimal WordPress theme designed to be responsive and attractive. Below you will find a <a href="#features" title="SQUAR3D Features">list of features</a>, a <a href="#gallery" title="SQUAR3D Gallery">gallery</a>, the simple <a href="#setup" title="SQUAR3D Setup">setup instructions</a>, and a <a href="#download" title="Download SQUAR3D">link to download the theme</a>.</p>
<h2 id="features">Features</h2>
<ul>
<li>Parent theme and four child themes of varying colors.</li>
<li>Responsive design.</li>
<li>Hidden comments on mobile that expand with the &#8220;tap&#8221; of a finger.</li>
<li>Widgetized sidebar.</li>
<li>Threaded comments w/ Gravatars.</li>
<li>Two menu areas:
<ul>
<li>Header menu for navigation.</li>
<li>Footer area for social icons (RSS, Facebook, Last.fm, Delicious, DeviantArt, Evernote, Vimeo, LinkedIn, YouTube, Dribbble, Digg, Google+, Flickr, Twitter, and Tumblr).</li>
</ul>
</li>
<li>Styles implemented for <a href="http://wordpress.org/extend/plugins/wp-pagenavi/" title="WP-PageNavi" target="_blank">WP-PageNavi</a> plugin.</li>
</ul>
<h2 id="gallery">Gallery</h2>
<p>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-33-28-pm/' title='Parent and children themes'><img width="200" height="146" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.33.28-PM-200x146.png" class="attachment-thumbnail" alt="Parent and five child themes." /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-32-21-pm/' title='Menus'><img width="200" height="176" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.32.21-PM-200x176.png" class="attachment-thumbnail" alt="Two menu areas." /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-32-51-pm/' title='Widgets'><img width="137" height="200" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.32.51-PM-137x200.png" class="attachment-thumbnail" alt="Widgetized sidebar" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-34-07-pm/' title='Colors'><img width="200" height="121" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.34.07-PM-200x121.png" class="attachment-thumbnail" alt="Orange child theme" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-33-51-pm/' title='Nav Active'><img width="200" height="128" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.33.51-PM-200x128.png" class="attachment-thumbnail" alt="Active state on primary nav" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-34-27-pm/' title='Categories Widget'><img width="200" height="129" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.34.27-PM-200x129.png" class="attachment-thumbnail" alt="Stylized categories list to allow for easy user sorting" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-35-04-pm/' title='Comments Form'><img width="200" height="149" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.35.04-PM-200x149.png" class="attachment-thumbnail" alt="Simplistic comments form" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-35-42-pm/' title='Threaded'><img width="200" height="141" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.35.42-PM-200x141.png" class="attachment-thumbnail" alt="Threaded comments w/ Gravatars" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-34-31-pm/' title='Be social'><img width="200" height="69" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.34.31-PM-200x69.png" class="attachment-thumbnail" alt="Social icons by only adding a class" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-36-49-pm/' title='Responsive'><img width="117" height="200" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.36.49-PM-117x200.png" class="attachment-thumbnail" alt="Mobile responsive" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-37-18-pm/' title='Sidebar below content on mobile'><img width="114" height="200" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.37.18-PM-114x200.png" class="attachment-thumbnail" alt="Sidebar on mobile drops below content" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-36-58-pm/' title='Mobile Comments'><img width="142" height="200" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.36.58-PM-142x200.png" class="attachment-thumbnail" alt="Comments hidden on mobile" /></a>
<a href='http://ajtroxell.com/squar3d-theme/screen-shot-2013-04-29-at-2-37-08-pm/' title='Threaded on Mobile'><img width="136" height="200" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-29-at-2.37.08-PM-136x200.png" class="attachment-thumbnail" alt="Comments threaded on mobile." /></a>
</p>
<h2 id="setup">Setup</h2>
<p>If you have never installed a custom WordPress theme before, check out <a href="http://codex.wordpress.org/Using_Themes" title="Using themes" target="_blank">Using Themes</a> on WordPress.org. If you have previously installed themes then this should be no problem for you.</p>
<ol>
<li>Upload the themes/folders within the <strong>SQUAR3D Theme folder</strong> to the <strong>wp-content &raquo; themes</strong> directory on your server.</li>
<li>Activate it via the Dashboard.</li>
<li>In <strong>Appearance &raquo; Menus</strong>, create two menus. One for your header navigation, and one for your social icons in the footer.
<ol>
<li>The menu for <strong>header nav</strong> can contain any links you wish, but it is a good idea to include a link to your <strong>home</strong> page.</li>
<li>The menu for your social icons requires that you enter a <strong>class</strong> for each item, in order for the icons to show.</li>
<li>The social icon classes available to you are <strong>rss, facebook, lastfm, delicious, deviantart, evernote, vimeo, linkedin, youtube, dribbble, digg, googleplus, flickr, twitter, and tumblr</strong>, written exactly as seen here.
<li>For example: Create a custom menu item for your RSS feed with the appropriate link to your feed. Once the menu item is added to the menu, click the <strong>arrow icon</strong> on your new item, next to the text that reads <strong>Custom</strong>. Add the class <strong>rss</strong> to the field with the label of <strong>CSS Classes (optional)</strong>.<br /><small><em>Note: If you do not see the <strong>CSS Classes</strong> field, click <strong>Screen Options</strong> at the top-right of the window and check off <strong>CSS Classes</strong> underneath the text that reads <strong>Show advanced menu properties</strong>.</em></small></li>
<li>Save your menus, and then assign them to the appropriate area in the <strong>Theme Locations</strong> box, and then click <em>Save</em>.</li>
</ol>
<li>Visit <strong>Appearance &raquo; Widgets</strong> and start adding your Widgets. All the work is done for you, minus any styling on the <strong>Search Widget</strong> as there is a search field in the header of the theme already.</li>
</ol>
<h2 id="download">Download SQUAR3D</h2>
<p>Before you download please take a look at the <a href="http://ajtroxell.com/theme-license/" title="Theme License">licensing for this theme</a>. It&#8217;s not complicated, just please leave the link back to me in the footer unless you donate.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=MER9ozCFAko:F2lq_QkHr7E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=MER9ozCFAko:F2lq_QkHr7E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=MER9ozCFAko:F2lq_QkHr7E:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=MER9ozCFAko:F2lq_QkHr7E:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=MER9ozCFAko:F2lq_QkHr7E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=MER9ozCFAko:F2lq_QkHr7E:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/MER9ozCFAko" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/squar3d-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/squar3d-theme/</feedburner:origLink></item>
		<item>
		<title>A Faster WordPress with Compression</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/Nxg4EVVVDq8/</link>
		<comments>http://ajtroxell.com/a-faster-wordpress-with-compression/#comments</comments>
		<pubDate>Fri, 26 Apr 2013 16:41:40 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[minify]]></category>
		<category><![CDATA[zlib]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=2908</guid>
		<description><![CDATA[Any of us over the age of say, 20, remember the days of slow dial-up connections. When any website, no matter how big or small, took forever to load. Google Images? Don&#8217;t even think about it. We were lucky just to have chatrooms that didn&#8217;t freeze or that you could get back into after getting [...]]]></description>
				<content:encoded><![CDATA[<p>Any of us over the age of say, 20, remember the days of slow dial-up connections. When any website, no matter how big or small, took <strong>forever</strong> to load. Google Images? Don&#8217;t even think about it. We were lucky just to have chatrooms that didn&#8217;t freeze or that you could get back into after getting disconnected and having to try to reconnect 15 times.</p>
<p>As internet speeds have increased, sites have been able to utilize new technologies to improve user experience, but the average user has become accustomed to a faster internet and our patience has waned. So compressing your website has become increasingly important. Especially with the rise of <a href="http://alistapart.com/topic/responsive-design" title="Read up on responsive design" target="_blank">responsive design</a> and the increase in mobile usage.</p>
<p>There are thousands of tutorials on how to go about doing this, and any of them will work quite well. I just wanted to pass along the knowledge that I have gained and show WordPress users how I accomplished great compression.</p>
<h2>Via Zlib</h2>
<p>Chances are your server is capable of compression via Zlib, but we want to make sure. </p>
<p>Place the following line of php in a file named <strong>test.php</strong> and upload it to the root directory of your site. This is the directory where you uploaded your WordPress files, <strong>not your theme directory</strong>.</p>
<p></p><pre class="crayon-plain-tag">&lt;?php phpinfo(); ?&gt;</pre><p></p>
<p>Go to this test.php page in your browser and you will be shown the capabilities of your server. Search the page for <strong>&#8220;zlib&#8221;</strong> and you will see if it is enabled or not.<br />
<a href="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-26-at-11.10.09-AM.png" rel="lightbox[2908]"><img src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-26-at-11.10.09-AM-553x232.png" alt="Zlib Support" width="553" height="232" class="aligncenter size-large wp-image-2910" /></a></p>
<h3>Edit Header.php</h3>
<p>Now that you have verified your servers ability to utilize Zlib, it is time to edit the <strong>header.php</strong> file of your theme. </p>
<p>Above the <strong>!DOCTYPE html</strong> declaration, paste the code below.</p>
<p></p><pre class="crayon-plain-tag">&lt;?php
ini_set('zlib.output_compression', 'On');
ini_set('zlib.output_compression_level', '1');
?&gt;</pre><p></p>
<p>Save your file, and clear the cache of your caching plugin if you use one.</p>
<p>Congratulations, you are now compressed!</p>
<h2>Compression Via .htaccess</h2>
<p>Another easy way of enabling compression is via your <strong>.htaccess</strong> file.</p>
<p>In the root directory of your WordPress installation should be a. .htaccess file, but if you do not see it then it either does not exist yet, or you may need to set your FTP program to let you view hidden files.</p>
<p>If it does not exist, go ahead and create a <strong>htaccess.txt</strong> on your desktop. If it does exist, simply open it up and edit it.</p>
<p>Paste the code below into your .htaccess file.</p>
<p></p><pre class="crayon-plain-tag">&lt;IfModule mod_deflate.c&gt;
# Insert filters
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
AddOutputFilterByType DEFLATE image/svg+xml

# Drop problematic browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
&lt;/IfModule&gt;</pre><p></p>
<p>If you saved this as htaccess.txt, upload it to your WordPress installation directory and then rename it to .htaccess. If you edited your existing .htaccess, just make sure the change gets made on the server version of the file, not just on the locally downloaded copy.</p>
<h2>Testing Your Compression</h2>
<p>To test the results of your compression, head on over to <a href="http://www.port80software.com/tools/compresscheck?url=" title="Check your compression" target="_blank">Compression Check</a> and enter your site url. You will see how large your site is before and after the compression.</p>
<p>Here is what Compression Check stated <strong>before</strong> I enabled compression using the .htaccess method.<br />
<a href="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-26-at-9.03.58-AM.png" rel="lightbox[2908]"><img src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-26-at-9.03.58-AM.png" alt="Before compression" width="478" height="520" class="aligncenter size-full wp-image-2911" /></a></p>
<p>And here is what my results were <strong>after</strong> compression.<br />
<a href="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-26-at-9.19.44-AM.png" rel="lightbox[2908]"><img src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-26-at-9.19.44-AM.png" alt="After compression" width="476" height="522" class="aligncenter size-full wp-image-2912" /></a></p>
<h2>Conclusion</h2>
<p>As you can see, it made quite a bit of difference. Pair compression like this with one of many great <a href="http://wordpress.org/extend/plugins/search.php?q=cache" title="Caching plugins" target="_blank">caching plugins</a> for WordPress, and your site will load faster than ever. But that isn&#8217;t all you can do. Here is a great write-up by <a href="http://wp.tutsplus.com/tutorials/the-ultimate-quickstart-guide-to-speeding-up-your-wordpress-site/" title="The ultimate guide" target="_blank">Wptuts+</a>, titled <a href="http://wp.tutsplus.com/tutorials/the-ultimate-quickstart-guide-to-speeding-up-your-wordpress-site/" title="The Ultimate Quickstart Guide to Speeding Up Your WordPress Site" target="_blank">&#8220;The Ultimate Quickstart Guide to Speeding Up Your WordPress Site&#8221;</a>, which is chock-full of information on how to compress, cache, and minify your WordPress site for a lightning fast user experience.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=Nxg4EVVVDq8:cZO27Tz9ciU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=Nxg4EVVVDq8:cZO27Tz9ciU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=Nxg4EVVVDq8:cZO27Tz9ciU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=Nxg4EVVVDq8:cZO27Tz9ciU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=Nxg4EVVVDq8:cZO27Tz9ciU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=Nxg4EVVVDq8:cZO27Tz9ciU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/Nxg4EVVVDq8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/a-faster-wordpress-with-compression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/a-faster-wordpress-with-compression/</feedburner:origLink></item>
		<item>
		<title>Facebook Profile &amp; Cover Photo Template V3</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/F7sJNNSOncM/</link>
		<comments>http://ajtroxell.com/facebook-profile-andcover-photo-template-v3/#comments</comments>
		<pubDate>Thu, 25 Apr 2013 14:10:56 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[Freebies]]></category>
		<category><![CDATA[action]]></category>
		<category><![CDATA[cover]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[profile]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=2884</guid>
		<description><![CDATA[So once again Facebook has gone and updated things. There isn&#8217;t much of a change, but I noticed my Cover image and Profile photo were all of a sudden &#8220;off&#8220;. So once again I created a template to make those nifty Cover/Profile image combinations. Here is how mine looks after using this Photoshop template and [...]]]></description>
				<content:encoded><![CDATA[<p>So once again Facebook has gone and updated things. There isn&#8217;t much of a change, but I noticed my Cover image and Profile photo were all of a sudden &#8220;<em>off</em>&#8220;. So once again I created a template to make those nifty Cover/Profile image combinations.</p>
<p>Here is how mine looks after using this Photoshop template and the included action.</p>
<p><a href="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-24-at-5.12.15-PM.png" rel="lightbox[2884]"><img class="aligncenter size-large wp-image-2885" alt="My Facebook" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-24-at-5.12.15-PM-553x234.png" width="553" height="234" /></a></p>
<h2>Directions</h2>
<ol>
<li>Open included PSD file and create your cover/profile images using it as a template.</li>
<li>Copy profile photo to a new PSD and run the included action.</li>
<li>Save cover photo and profile photo to your desktop.</li>
<li>Upload to Facebook and watch as your friends stare at your magnificent creation.</li>
</ol>
<h2>Special Note</h2>
<p><a href="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-24-at-5.04.30-PM.png" rel="lightbox[2884]"><img class="aligncenter size-large wp-image-2888" alt="Scale to fit." src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-24-at-5.04.30-PM-553x218.png" width="553" height="218" /></a></p>
<p>Facebook does not &#8220;scale to fit&#8221; profile images automatically when you upload a new one so you need to do this yourself. After you have uploaded your new profile image, you need to set it to &#8220;scale to fit&#8221;.</p>
<p><a href="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-25-at-8.52.59-AM.png" rel="lightbox[2884]"><img class="aligncenter size-full wp-image-2894" alt="Edit Profile Picture" src="http://ajtroxell.com/wp-content/uploads/2013/04/Screen-Shot-2013-04-25-at-8.52.59-AM.png" width="179" height="280" /></a></p>
<p>On your profile photo click <strong>&#8220;Edit Profile Picture&#8221;</strong> and then in the menu click <strong>&#8220;Edit Thumbnail&#8230;&#8221;</strong>. In the popup you will see a checkbox labelled <strong>&#8220;Scale to fit.&#8221;</strong>. If it checked, you will need to uncheck it and then check it again. If not, go ahead and check it, and then click <strong>&#8220;Save&#8221;</strong>.</p>
<p>Note: There is a file embedded within this post, please visit this post to download the file.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=F7sJNNSOncM:23WwHAUi2VM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=F7sJNNSOncM:23WwHAUi2VM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=F7sJNNSOncM:23WwHAUi2VM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=F7sJNNSOncM:23WwHAUi2VM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=F7sJNNSOncM:23WwHAUi2VM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=F7sJNNSOncM:23WwHAUi2VM:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/F7sJNNSOncM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/facebook-profile-andcover-photo-template-v3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/facebook-profile-andcover-photo-template-v3/</feedburner:origLink></item>
		<item>
		<title>Grids and Their Deceit</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/pEFfUL8q3w0/</link>
		<comments>http://ajtroxell.com/grids-and-their-deceit/#comments</comments>
		<pubDate>Wed, 27 Mar 2013 14:06:35 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[prototyping]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=2864</guid>
		<description><![CDATA[Over the years we have seen the rise and dominance of grid systems. From a simple, static width 960 Grid, to full-fledged suites with everything from buttons to drop downs, panels and beyond. It is really aw-inspiring how far we have come in an effort to streamline and somewhat standardize website development. But at the [...]]]></description>
				<content:encoded><![CDATA[<p>Over the years we have seen the rise and dominance of grid systems. From a simple, static width <a href="http://960.gs/" title="960 Grid System" target="_blank">960 Grid</a>, to full-fledged suites with everything from buttons to drop downs, panels and beyond. It is really aw-inspiring how far we have come in an effort to streamline and somewhat standardize website development. But at the same time, it is a bit disconcerting. While grids are a great <strong>tool</strong> for rapid website development, I fear we have succumb to their ease of use, and allowed our &#8220;creativity&#8221; and &#8220;freedom&#8221; as developers to fall by the wayside.</p>
<p>My reasoning for this rant, has come as a result of real life experiences I have had recently in regard to website prototyping. And the result of using grids; their translation over to the production environment. So let&#8217;s get down to it.</p>
<h2>Grids Are, I Mean Should Be, for Prototyping</h2>
<p>When I think of a grid, I think of a really slick way of throwing together a basic structural concept for a website, going as far as basic responsiveness. Some grids even have extra &#8220;features&#8221; that give you nice buttons, drop downs, sliders, content tabs, icon fonts, and so on. Allowing you to provide either yourself, or even a client, a quick look at the general structure of their project and how elements will react when scaled down for tablet and mobile viewing. </p>
<p>This is great! I love the time-savings with grids. In today&#8217;s world, time is money, and there is no better way to demonstrate to a client or graphic designer how a website will look in an easy to understand way than using a grid. Within a matter of minutes you can provide multiple page templates, including all the elements they may need.</p>
<h3>A Tool, Not a Crutch</h3>
<p>This is what I mean by prototyping. Depending on you or your companies work flow, grids can be a revolutionary tool.</p>
<p>For instance, a graphic designer is working on design concepts for a client, while meeting with you (the developer) to ensure his designs are coherent with you/your company&#8217;s development goals and website capabilities. When the concepts are done they will be shown to the client, but these concepts are just Photoshop files or presentations. There is no interaction. While this is ok, we can do better.</p>
<p>While the designer is working, you could be putting the grid to use. Using a responsive grid, such as <a href="http://foundation.zurb.com/" title="Foundation" target="_blank">Foundation</a>, <a href="http://twitter.github.com/bootstrap/" title="Bootstrap" target="_blank">Bootstrap</a>, or my personal project <a href="http://divisiongrid.com/" title="Division" target="_blank">Division</a>, you can emulate the designers concepts in an interactive way. Now your client can not only see visually how the design will look, in reference to colors, logo, typeface, etc., but they can see how it will look in an actual browser, and how the sections of content will respond to a tablet or mobile view.</p>
<p>It is after this step that it gets hairy.</p>
<h2>Drop The Baggage</h2>
<p>Of all the grid systems, I was a fan of Foundation. I preferred its fluid columns as opposed to the static width of other grids. Each person has their personal preference, and there is a grid for each of them. But as grids have become more and more stacked with features, I feel that they have perhaps gone a bit too far. They achieve their goal of rapid prototyping wonderfully. But it&#8217;s when you are in the process of actually developing the site, that your grid should be dropped like a bad habit. </p>
<h3>Take What You Need, Leave Out The Rest</h3>
<p>Your time invested in this step could be a bit more than you would like to spend, but in my opinion it is important to the maintenance of a project. It is easy to just use a grid and add your own class names where needed, which may end up looking like <em>div class=&#8221;three columns meta&#8221;</em>, where <em>meta</em> is your class name. It isn&#8217;t confusing to you of course, but what if another developer takes over one of your projects, or you have to come back a year down the road? I&#8217;m sure it doesn&#8217;t sound like a big deal now, but why not cut out the middle man, meaning the grid?</p>
<p>Once you are at the point of being able to implement the graphical elements, get rid of the grid altogether. So instead of our grid classes on our previous sample element, we would end up with <em>div class=&#8221;meta&#8221;</em>. Not only does this make your HTML easier to read, but it gives you more control of the elements and any fine tweaks that you may need to make now or down the road. You no longer need to override any grid styles if all of a sudden the elements width isn&#8217;t equal to <em>three columns</em> as specified by the grid.</p>
<p>This is especially important for me when it comes to unnecessary UI elements that come grids such as Foundation and Bootstrap. Granted you can do custom builds without these elements, but they are useful for prototyping. And they require that you over-write the grid styles in order to apply your own.</p>
<h3>Without the Grid?</h3>
<p>To get rid of the grid, I use Inspect element within Chrome and copy what styles I need, and apply them to the structural elements within my own CSS files. Not only have I consolidated my CSS, but I have cut out anything that I don&#8217;t need that came with the grid files. Whether you use <a href="http://smacss.com/" title="SMACSS" target="_blank">SMACSS</a> or a traditional single-file setup getting rid of the grid, once you get prototyping out-of-the-way, is a good idea.</p>
<h2>From Here On Out</h3>
<p>So although grids have done wonders for rapidly prototyping websites, they have backed some into a corner. A corner of believing that the grid is a must have for your site, and that they are appropriate for prototyping and live deployments.</p>
<p>If you are a graphic designer, don&#8217;t let the appearance of the grid keep you boxed in. The grid is only a tool, and not a strict set of rules to follow.</p>
<p>As a developer, don&#8217;t &#8220;rely&#8221; on the grid. Take advantage of it, but don&#8217;t let yourself believe that you must have it, and that it has to remain a part of your design from beginning to end. I don&#8217;t see a valid reason to load the CSS files of a grid on a live site, when you can simply pull what you need. It is cleaner, easier to maintain, and is just as future proof as a grid if your site is designed properly.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=pEFfUL8q3w0:yh06Jt7TfU4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=pEFfUL8q3w0:yh06Jt7TfU4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=pEFfUL8q3w0:yh06Jt7TfU4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=pEFfUL8q3w0:yh06Jt7TfU4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=pEFfUL8q3w0:yh06Jt7TfU4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=pEFfUL8q3w0:yh06Jt7TfU4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/pEFfUL8q3w0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/grids-and-their-deceit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/grids-and-their-deceit/</feedburner:origLink></item>
		<item>
		<title>LESS Font and Line Height Mixin</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/pmANUNlP1s8/</link>
		<comments>http://ajtroxell.com/less-font-and-line-height-mixin/#comments</comments>
		<pubDate>Sat, 09 Mar 2013 19:56:30 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[less]]></category>
		<category><![CDATA[mixin]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=2788</guid>
		<description><![CDATA[The battle between CSS Preprocessors (primarily LESS and Sass) is still going strong, and it&#8217;ll be a long time before either wins out, but my personal preference is LESS. For many reasons I prefer LESS to SASS, and since this is my Preprocessor of choice I have constructed a multitude of mixins for use in [...]]]></description>
				<content:encoded><![CDATA[<p>The battle between CSS Preprocessors (primarily <a href="http://lesscss.org/" title="LESS « The Dynamic Stylesheet language">LESS</a> and <a href="http://sass-lang.com/" title="Sass - Syntactically Awesome Stylesheets">Sass</a>) is still going strong, and it&#8217;ll be a long time before either wins out, but my personal preference is LESS. For many reasons I prefer LESS to SASS, and since this is my Preprocessor of choice I have constructed a multitude of mixins for use in my projects. One very important element, when it comes to responsive design is font sizing. There are plenty of theories on the best way to declare font sizes within responsive designs. But either way, if you are using LESS, you need a clean and consistent way of declaring these sizes. I&#8217;m sure this is out there somewhere already, but I am providing you with a font-size mixin that will return a font property with pixels declared first (for IE compatibility) and Rems second for modern browsers. The largest benefit of Rem is that its size calculates off your base font size. Unlike percentages and ems that base their size off of the containing element. Also Rems resize proportionately and cleanly. </p>
<h2>LESS Mixin</h2>
<p></p><pre class="crayon-plain-tag">.font-size(@font-size: 16){
    @pxFontValue: (@font-size / 10);
    @pxLineValue: (@font-size / 10 * 1.5);
    font-size: @font-size * 1px;
    line-height: @font-size * 1.5 * 1px;
    font-size: ~&quot;@{pxFontValue}rem&quot;;
    line-height: ~&quot;@{pxLineValue}rem&quot;;
}</pre><p></p>
<h2>Mixin Usage</h2>
<p></p><pre class="crayon-plain-tag">h1 { .font-size(14); }</pre><p></p>
<h2>Mixin Output</h2>
<p></p><pre class="crayon-plain-tag">h6 {
    font-size:14px;
    line-height:21px;
    font-size:1.4rem;
    line-height:2.0999999999999996rem;
}</pre><p></p>
<p>There you have it. Awesome IE proof font sizing using LESS.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=pmANUNlP1s8:SZNN4S9qmXU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=pmANUNlP1s8:SZNN4S9qmXU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=pmANUNlP1s8:SZNN4S9qmXU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=pmANUNlP1s8:SZNN4S9qmXU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=pmANUNlP1s8:SZNN4S9qmXU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=pmANUNlP1s8:SZNN4S9qmXU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/pmANUNlP1s8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/less-font-and-line-height-mixin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/less-font-and-line-height-mixin/</feedburner:origLink></item>
		<item>
		<title>Downloads are Broken (Fixed)</title>
		<link>http://feedproxy.google.com/~r/ajtroxell/~3/eQdMV8Xwjt8/</link>
		<comments>http://ajtroxell.com/downloads-are-broken/#comments</comments>
		<pubDate>Fri, 08 Mar 2013 23:09:29 +0000</pubDate>
		<dc:creator>AJ</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://ajtroxell.com/?p=2790</guid>
		<description><![CDATA[Some downloads on this site may not be working properly. I have found what I think is all of the downloads within posts, but it is possible i&#8217;ve missed some. If you, the visitor, come across anything, please contact me and let me know so I can get it fixed as soon as possible.]]></description>
				<content:encoded><![CDATA[<p>Some downloads on this site may not be working properly. I have found what I think is all of the downloads within posts, but it is possible i&#8217;ve missed some. If you, the visitor, come across anything, please <a href="http://ajtroxell.com/contact/" title="Contact Me">contact me</a> and let me know so I can get it fixed as soon as possible.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ajtroxell?a=eQdMV8Xwjt8:aTD6vZROpnk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=eQdMV8Xwjt8:aTD6vZROpnk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/ajtroxell?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=eQdMV8Xwjt8:aTD6vZROpnk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=eQdMV8Xwjt8:aTD6vZROpnk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ajtroxell?a=eQdMV8Xwjt8:aTD6vZROpnk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/ajtroxell?i=eQdMV8Xwjt8:aTD6vZROpnk:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/ajtroxell/~4/eQdMV8Xwjt8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://ajtroxell.com/downloads-are-broken/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ajtroxell.com/downloads-are-broken/</feedburner:origLink></item>
	</channel>
</rss>
