<?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>Digging into WordPress &#187; HTML</title>
	<atom:link href="http://digwp.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Fri, 18 May 2012 18:21:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>HTML Formatting for Custom Menus</title>
		<link>http://digwp.com/2011/11/html-formatting-custom-menus/</link>
		<comments>http://digwp.com/2011/11/html-formatting-custom-menus/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 18:09:42 +0000</pubDate>
		<dc:creator>Jeff Starr</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[menu]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=5440</guid>
		<description><![CDATA[For some projects, it&#8217;s nice to output clean, well-formatted markup. Using theme template files enables great control over most of your (X)HTML formatting, but not so much for automated functionality involving stuff like widgets and custom menus. One of my current projects requires clean, semantic HTML markup for all web pages, but also takes advantage [...]]]></description>
			<content:encoded><![CDATA[<p>For some projects, it&#8217;s nice to output clean, well-formatted markup. Using theme template files enables great control over most of your (X)HTML formatting, but not so much for automated functionality involving stuff like widgets and custom menus. One of my current projects requires clean, semantic HTML markup for all web pages, but also takes advantage of WordPress&#8217; custom-menu functionality to make things easy. In this <abbr title="Digging into WordPress">DiW</abbr> article, we&#8217;ll see how to enjoy both: WordPress custom menus <em>and</em> clean, well-formatted HTML markup.</p>
<p><span id="more-5440"></span></p>
<h3>Customizing HTML displayed with wp_nav_menu()</h3>
<p>By default, <a href="http://digwp.com/2010/08/using-menus-in-wordpress-3-0/" title="Using Menus in WordPress 3.0">WordPress custom menus</a> are displayed in your theme template using the <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">wp_nav_menu</a> function, which by default outputs markup that looks like this:</p>
<pre><code>&lt;div class="menu-test-container"&gt;&lt;ul id="menu-test" class="menu"&gt;&lt;li id="menu-item-6" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-6"&gt;&lt;a href="http://example.com/"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li id="menu-item-7" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7"&gt;&lt;a href="http://example.com/demos/"&gt;Demos&lt;/a&gt;&lt;/li&gt;
&lt;li id="menu-item-8" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8"&gt;&lt;a href="http://example.com/downloads/"&gt;Downloads&lt;/a&gt;&lt;/li&gt;
&lt;li id="menu-item-9" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-9"&gt;&lt;a href="http://example.com/docs/"&gt;Documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</code></pre>
<p>That&#8217;s a <em>mess</em> of <code>class</code> and <code>id</code> attributes, plus an extra <code>&lt;div&gt;</code> container to boot. Fortunately, the <code>wp_nav_menu()</code> provides some useful parameters for customizing the display of your custom navigation menus. Here is a list of the <em>default parameters</em>:</p>
<pre><code>&lt;?php $defaults = array(
  'theme_location'  =&gt; ,
  'menu'            =&gt; , 
  'container'       =&gt; 'div', 
  'container_class' =&gt; 'menu-{menu slug}-container', 
  'container_id'    =&gt; ,
  'menu_class'      =&gt; 'menu', 
  'menu_id'         =&gt; ,
  'echo'            =&gt; true,
  'fallback_cb'     =&gt; 'wp_page_menu',
  'before'          =&gt; ,
  'after'           =&gt; ,
  'link_before'     =&gt; ,
  'link_after'      =&gt; ,
  'items_wrap'      =&gt; '&lt;ul id=\"%1$s\" class=\"%2$s\"&gt;%3$s&lt;/ul&gt;',
  'depth'           =&gt; 0,
  'walker'          =&gt; );
?&gt;</code></pre>
<p>Of these parameters, <code>$container</code> lets you specify how to wrap the <code>&lt;ul&gt;</code> element, using either <code>'div'</code>, <code>'nav'</code>, or <code>false</code>. So by specifying <code>false</code> for the <code>$container</code> parameter, we can simplify markup by removing the <code>&lt;div&gt;</code> container. The <code>wp_nav_menu</code> function also provides two more optional parameters for customizing menu markup:</p>
<ul>
<li><code>$items_wrap</code> &ndash; &#8220;Whatever to wrap the items with an ul, and how to wrap them with&#8221; (source: WP Codex)</li>
<li><code>$walker</code> &ndash; &#8220;Custom walker object to use (Note: You must pass an actual object to use, not a string)&#8221; (source: WP Codex)</li>
</ul>
<p>These <em>sound</em> useful, but I haven&#8217;t had much luck with either. The <code>$items_wrap</code> didn&#8217;t seem to do anything, but there are plenty of <a href="http://wordpress.stackexchange.com/questions/14037/menu-items-description/14039#14039">custom</a> <a href="http://erikshosting.com/wordpress-tips-code/building-a-wordpress-walker-creating-custom-dynamic-menu-outputs/">walker</a> <a href="http://benword.com/2011/how-to-hide-that-youre-using-wordpress/">scripts</a> available for further experimentation and customization. If you can get them to work properly, <strong>a custom walker provides complete control over custom-menu markup</strong> displayed with the <code>wp_nav_menu</code> tag. Unfortunately, I was unable to get very far with any of them, so I sought an alternate method..</p>
<h3>An alternative approach for custom markup</h3>
<p>After fiddling with a few of the various custom walkers, I decided to find an <em>easier way</em> to customize and format WordPress nav/menu markup. The walkers are fairly extensive and complex, and just seem like overkill for building a simple list of custom menu items. After some digging through the WordPress Codex, I found the <em>perfect</em> function for crafting squeaky-clean WordPress menus: <a href="http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items">wp_get_nav_menu_items</a>. As the name implies, <code>wp_get_nav_menu_items</code> returns the items from your custom navigation menus (as created in the WP Admin → Appearance → Menus panel). Thus, you can use this function to mark up your custom menus however you want. For my particular project, the desired format looks like this:</p>
<pre><code>&lt;nav&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href="http://example.com/"&gt;Home&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://example.com/demos/"&gt;Demos&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://example.com/downloads/"&gt;Downloads&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://example.com/docs/"&gt;Documentation&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/nav&gt;</code></pre>
<p>Trying to do this with the commonly used <code>wp_nav_menu</code> function and a custom walker is possible, but it&#8217;s <em>much easier</em> building the menu structure from scratch, using only what&#8217;s required to make it happen. So alternately we use <code>wp_get_nav_menu_items</code> and begin with the <a href="http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items#Building_simple_menu_list">example function</a> provided at the Codex. After wrapping it in a <code>function</code> and customizing the output, we have the <code>clean_custom_menus()</code> function, ready for copy/paste into your theme&#8217;s <code>functions.php</code> file:</p>
<pre><code>// custom menu example @ http://digwp.com/2011/11/html-formatting-custom-menus/
function clean_custom_menus() {
	$menu_name = 'nav-primary'; // specify custom menu slug
	if (($locations = get_nav_menu_locations()) &amp;&amp; isset($locations[$menu_name])) {
		$menu = wp_get_nav_menu_object($locations[$menu_name]);
		$menu_items = wp_get_nav_menu_items($menu-&gt;term_id);

		$menu_list = '&lt;nav&gt;' ."\n";
		$menu_list .= "\t\t\t\t". '&lt;ul&gt;' ."\n";
		foreach ((array) $menu_items as $key =&gt; $menu_item) {
			$title = $menu_item-&gt;title;
			$url = $menu_item-&gt;url;
			$menu_list .= "\t\t\t\t\t". '&lt;li&gt;&lt;a href="'. $url .'"&gt;'. $title .'&lt;/a&gt;&lt;/li&gt;' ."\n";
		}
		$menu_list .= "\t\t\t\t". '&lt;/ul&gt;' ."\n";
		$menu_list .= "\t\t\t". '&lt;/nav&gt;' ."\n";
	} else {
		// $menu_list = '&lt;!-- no list defined --&gt;';
	}
	echo $menu_list;
}</code></pre>
<p>After placing in your <code>functions.php</code> file, you can call the function and display your custom menus anywhere in your theme by calling it directly:</p>
<p><code>&lt;?php if (function_exists(clean_custom_menus())) clean_custom_menus(); ?&gt;</code></p>
<p>Then, you can customize the <code>clean_custom_menus()</code> function as follows:</p>
<ol>
<li><strong>Line 3:</strong> specify your custom-menu slug</li>
<li><strong>Lines 8 thru 15:</strong> customize markup, tabs, and line breaks as needed</li>
<li><strong>Line 17:</strong> uncomment <code>else</code> condition and customize if needed</li>
</ol>
<p>For lines 8-15, anything is possible &ndash; you can include whatever list items, markup, and attributes required. Additionally, you can tab and indent markup to line up with page markup using <code>\n</code> for a new line and <code>\t</code> for a tab space. The fastest, easiest way to use this function is to copy/paste into your theme and then check out your list markup. For example, if the nav list is too far to the left, add some more tabs. You can also add <code>class</code> and <code>id</code> attributes, include custom items, and even manipulate which list items are displayed (<code>$url</code>, <code>$title</code>, etc.). After a little fine-tuning, <strong>the <code>wp_get_nav_menu_items()</code> function enables clean, well-formatted markup for your custom menus</strong>.</p>
<h3>Quick Summary</h3>
<p>In this article, we explain two ways to clean up and customize WordPress&#8217; custom-menu markup. Either of these methods will take your code from this:</p>
<pre><code>&lt;div class="menu-test-container"&gt;&lt;ul id="menu-test" class="menu"&gt;&lt;li id="menu-item-6" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-6"&gt;&lt;a href="http://example.com/"&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li id="menu-item-7" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-7"&gt;&lt;a href="http://example.com/demos/"&gt;Demos&lt;/a&gt;&lt;/li&gt;
&lt;li id="menu-item-8" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8"&gt;&lt;a href="http://example.com/downloads/"&gt;Downloads&lt;/a&gt;&lt;/li&gt;
&lt;li id="menu-item-9" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-9"&gt;&lt;a href="http://example.com/docs/"&gt;Documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</code></pre>
<p>..to this:</p>
<pre><code>&lt;nav&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href="http://example.com/"&gt;Home&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://example.com/demos/"&gt;Demos&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://example.com/downloads/"&gt;Downloads&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://example.com/docs/"&gt;Documentation&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/nav&gt;</code></pre>
<p>..or whatever HTML structure that&#8217;s required. You can achieve this with either of these methods:</p>
<ul>
<li>Combine <code>wp_nav_menu()</code> with a custom walker class</li>
<li>Combine <code>wp_get_nav_menu_items()</code> with the <code>clean_custom_menus()</code> function</li>
</ul>
<p>As usual, if you know of better ways of doing something, please share in the comments! Thanks for reading Digging into WordPress :)</p>
<hr />
<p><small>© 2011 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2011/11/html-formatting-custom-menus/">Permalink</a> | <a href="http://digwp.com/2011/11/html-formatting-custom-menus/#comments">43 comments</a> | Add to <a href="http://del.icio.us/post?url=http://digwp.com/2011/11/html-formatting-custom-menus/&title=HTML Formatting for Custom Menus">del.icio.us</a> | Post tags: <a href="http://digwp.com/tag/functions/" rel="tag">functions</a>, <a href="http://digwp.com/tag/html/" rel="tag">HTML</a>, <a href="http://digwp.com/tag/menu/" rel="tag">menu</a><br/></small></p>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2011/11/html-formatting-custom-menus/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
		<item>
		<title>Blogging in Markdown</title>
		<link>http://digwp.com/2010/06/blogging-in-markdown/</link>
		<comments>http://digwp.com/2010/06/blogging-in-markdown/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 14:50:58 +0000</pubDate>
		<dc:creator>Chris Coyier</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[markdown]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=2338</guid>
		<description><![CDATA[WordPress defaults to a WYSIWYG editor when composing a new Post. Of course WYSIWYG is a bit of a misnomer. What you &#8220;get&#8221; when you publish that post is dependent on the template and the CSS in place in the theme. In fact, WordPress doesn&#8217;t even call it WYSIWYG, they call it the &#8220;Visual&#8221; editor. [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress defaults to a WYSIWYG editor when composing a new Post. Of course WYSIWYG is a bit of a misnomer. What you &#8220;get&#8221; when you publish that post is dependent on the template and the CSS in place in the theme. In fact, WordPress doesn&#8217;t even call it WYSIWYG, they call it the &#8220;Visual&#8221; editor. In fact, most editors of this nature these days go to length in telling you <a href="http://markitup.jaysalvat.com/home/">its a markup editor</a>, not a WYSIWYG editor.</p>
<div class="image-wrap">
<img src="http://digwp.com/wp-content/blog-images/visualeditor.jpg" width="587" height="108" alt="" title="" />
</div>
<p>The point of the Visual editor is that it likely makes more sense to the &#8220;average&#8221; user. When they highlight a word and click the [b] button, the word literally turns bold, not gets wrapped in &lt;strong>&lt;/strong> tags. If they insert a picture, they see it. If they insert a link, it looks like a link. </p>
<p>The Visual editor is perfectly fine, but the nerdier among us likely prefer the HTML view so they can see exactly what is going on. After all, the Visual editor has had a history of not being super hot when it comes to leaving our nicely organized HTML alone (when switching back and forth).</p>
<div class="image-wrap">
<img src="http://digwp.com/wp-content/blog-images/disableeditor.jpg" width="495" height="149" alt="" title="" /><br />
You can turn off the visual editor from your User Preferences.
</div>
<p>Once that is off, we are free to compose posts in HTML. But that&#8217;s not our only option. We could also compose in Markdown!</p>
<p><span id="more-2338"></span></p>
<h3>What is Markdown?</h3>
<p>Markdown is a special syntax for composing. It was originally conceived by John Gruber and you can <a href="http://daringfireball.net/projects/markdown/">learn more about it here</a>. </p>
<h3>Getting it into WordPress</h3>
<p>Markdown was originally written in Perl. It was converted to PHP by Michel Fortin and comes with a WordPress plugin. You can <a href="http://michelf.com/projects/php-markdown/">get it here</a>, which also has instructions for installing and activating it.</p>
<h3>Why Markdown?</h3>
<p>The idea is that it makes looking at the writing much more readable than HTML would be. </p>
<blockquote><p>While Markdown’s syntax has been influenced by several existing text-to-HTML filters, the single biggest source of inspiration for Markdown’s syntax is the format of plain text email.</p></blockquote>
<div class="image-wrap">
<img src="http://digwp.com/wp-content/blog-images/markdownexample.png" width="549" height="323" alt="" title="" /><br />
It does look quite a bit like a text email.
</div>
<h3>Markdown Syntax</h3>
<p>There isn&#8217;t all that much to it, but you might want to check out the <a href="http://daringfireball.net/projects/markdown/syntax">actual documentation page</a> instead of me rehashing it here. </p>
<p>In a nutshell:</p>
<p>*italic*<br />
**bold**<br />
[link text](http://example.com)<br />
## header 2<br />
### header 3<br />
&nbsp;&nbsp;&nbsp;code is indented</p>
<h3>Is it for you?</h3>
<p>Whether or not this looks appealing to you is simply a matter of taste. Do keep in mind that Markdown is compatible with HTML. So if you have articles you have previously written in HTML, those will be fine with this activated. However, the opposite is not true. If you create a bunch of content in Markdown and then decide to turn it off, you will be looking at asterisks and octothorpes and such. </p>
<p>One other concern would theoretically be shortcodes. Short codes also use the [foo] syntax, so I&#8217;m actually not sure which one would take precedence. Definitely should be tested if you are a heavy shortcodes user.</p>
<hr />
<p><small>© 2010 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2010/06/blogging-in-markdown/">Permalink</a> | <a href="http://digwp.com/2010/06/blogging-in-markdown/#comments">3 comments</a> | Add to <a href="http://del.icio.us/post?url=http://digwp.com/2010/06/blogging-in-markdown/&title=Blogging in Markdown">del.icio.us</a> | Post tags: <a href="http://digwp.com/tag/editor/" rel="tag">editor</a>, <a href="http://digwp.com/tag/html/" rel="tag">HTML</a>, <a href="http://digwp.com/tag/markdown/" rel="tag">markdown</a><br/></small></p>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2010/06/blogging-in-markdown/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Look Ma, Editable Text Regions</title>
		<link>http://digwp.com/2009/09/look-ma-editable-text-regions/</link>
		<comments>http://digwp.com/2009/09/look-ma-editable-text-regions/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 15:06:53 +0000</pubDate>
		<dc:creator>Chris Coyier</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[maintenance]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://digwp.com/?p=622</guid>
		<description><![CDATA[WordPress is a CMS. The whole idea being to manage content and make websites editable without having to wrangle code. Any theme can handle Posts and Pages, but what about those &#8220;smaller&#8221; areas. Little chunks of text placed around a design like a small &#8220;about&#8221; section, or the copy in the footer of a website. [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress is a CMS. The whole idea being to manage content and make websites editable without having to wrangle code. Any theme can handle Posts and Pages, but what about those &#8220;smaller&#8221; areas. Little chunks of text placed around a design like a small &#8220;about&#8221; section, or the copy in the footer of a website. A lot of times this text is hard-baked right into the theme, which isn&#8217;t a very friendly way to do things, as it can&#8217;t be updated by average Joe user.</p>
<p><img src="http://digwp.com/wp-content/blog-images/editable-region.png" width="590" height="439" alt="" title="" /></p>
<p><span id="more-622"></span></p>
<h3>Widgetize!</h3>
<p>If you are looking to add text to your sidebar, and your sidebar is already widgetized, this becomes trivially easy. In your Admin, go to <strong>Appearance > Widgets</strong> and drag the &#8220;text&#8221; widget into the your sidebar area on the right. You can then open up that widget and give it a title and text and save it.</p>
<p><img src="http://digwp.com/wp-content/blog-images/widgetize.jpg" width="590" height="581" alt="" title="" /></p>
<h3>Adding Multiple Regions</h3>
<p>There is a good chance that if your theme is widgetized, the only widgetable area is the sidebar. But you are by no means limited to having only one widgetized area. In order to add another, open your <code>functions.php</code> file and add another chunk of code like this:</p>
<pre><code>if ( function_exists('register_sidebar') ) {
   register_sidebar(array(
       'name'=&gt;'Footer Widgets',
       'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;',
       'after_widget' =&gt; '&lt;/div&gt;',
       'before_title' =&gt; '&lt;h4 class="widgettitle"&gt;',
       'after_title' =&gt; '&lt;/h4&gt;',
   ));
}</code></pre>
<p>The &#8216;name&#8217; part is important, because we&#8217;ll be referencing that in a sec when we drop in the widgetization code. Most of the rest of this should be pretty self-explanatory. You provide the HTML code for what wraps the text you provide for a title and body of the widget. Those weird characters as part of the ID and class actually provide some nice useful hooks for each widget. The ID is literally a unique ID for the widget, and the classes designate the type of widget being used. The end result markup for a simple text widget will be something like this:</p>
<pre><code>&lt;div class="widget widget_text" id="text-4"&gt;
   &lt;div class="textwidget"&gt;
       &lt;p&gt;Â©2009 Digging into WordPress&lt;/p&gt;
   &lt;/div&gt;
&lt;/div&gt;</code></pre>
<p>As you may have gathered, we are making an editable region in our footer to house the copyright information. In our <code>footer.php</code> file, we&#8217;ll drop in this code in an appropriate place to widgetize the area:</p>
<pre><code>&lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer Widgets') ) : ?&gt;
&lt;?php endif; ?&gt;</code></pre>
<p>All goes well, we now have a new widget area showing up in our Admin, in which to drag in widgets. Drag in a text widget, and you should be all set. It should be noted that while text widgets have a title and text area, you don&#8217;t <strong>have</strong> to use both, you can use one or the other if you want.</p>
<p><img src="http://digwp.com/wp-content/blog-images/footerwidget.png" width="311" height="176" alt="" title="" /></p>
<p>Fairly basic stuff, but this is great stuff for allowing users to be in more complete command of their sites!</p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/09/look-ma-editable-text-regions/">Permalink</a> | <a href="http://digwp.com/2009/09/look-ma-editable-text-regions/#comments">21 comments</a> | Add to <a href="http://del.icio.us/post?url=http://digwp.com/2009/09/look-ma-editable-text-regions/&title=Look Ma, Editable Text Regions">del.icio.us</a> | Post tags: <a href="http://digwp.com/tag/html/" rel="tag">HTML</a>, <a href="http://digwp.com/tag/maintenance/" rel="tag">maintenance</a>, <a href="http://digwp.com/tag/template/" rel="tag">template</a>, <a href="http://digwp.com/tag/theme/" rel="tag">Theme</a>, <a href="http://digwp.com/tag/widgets/" rel="tag">widgets</a><br/></small></p>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/09/look-ma-editable-text-regions/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Free HTML 5 WordPress Theme</title>
		<link>http://digwp.com/2009/07/free-html-5-wordpress-theme/</link>
		<comments>http://digwp.com/2009/07/free-html-5-wordpress-theme/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 07:19:43 +0000</pubDate>
		<dc:creator>Jeff Starr</dc:creator>
				<category><![CDATA[Theme]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://diggingintowordpress.com/?p=215</guid>
		<description><![CDATA[In an effort to inspire more WordPress theme designers to embrace HTML 5, I am releasing the &#8220;H5&#8221; Theme Template. The H5 Theme Template is a bare-bones WordPress theme built entirely with HTML 5 and styled with CSS 2.1. As you may know, HTML 5 provides greater flexibility and interoperability than previous markup languages, and [...]]]></description>
			<content:encoded><![CDATA[<p>In an effort to inspire more WordPress theme designers to embrace <acronym title="Hypertext Markup Language">HTML</acronym> 5, I am releasing the &ldquo;<acronym title="HTML 5">H5</acronym>&rdquo; Theme Template. The <acronym title="HTML 5">H5</acronym> Theme Template is a bare-bones WordPress theme built entirely with <acronym title="Hypertext Markup Language">HTML</acronym> 5 and styled with <acronym title="Cascading Style Sheets">CSS</acronym> 2.1. As you may know, <acronym title="Hypertext Markup Language">HTML</acronym> 5 provides greater flexibility and interoperability than previous markup languages, and enables us to build well-structured themes that are more flexible, interactive, and semantically precise.</p>
<p><span id="more-215"></span></p>
<h3>About the &lsquo;H5&rsquo; WordPress Theme Template</h3>
<p>The <acronym title="HTML 5">H5</acronym> Theme Template provides everything you need to create beautiful themes with <acronym title="Hypertext Markup Language">HTML</acronym> 5 <em>right now</em>. <acronym title="HTML 5">H5</acronym> contains a complete set of theme files and folders, and each file has been meticulously crafted with all of the latest and greatest WordPress functionality. As a template theme, <acronym title="HTML 5">H5</acronym> is designed with easy customization and personalization in mind, serving as a solid starting point for your next <acronym title="Hypertext Markup Language">HTML</acronym>-5-based theme.</p>
<p>Unlike other frameworks, <acronym title="HTML 5">H5</acronym> works great as a basic theme right out of the box. Of course, this is a <em>template</em> theme we&rsquo;re talking about here, so you will inevitably feel &ldquo;inspired&rdquo; to begin tweaking and styling its minimalistic appearance to get the design looking exactly how you want it. And that is entirely the point: <acronym title="HTML 5">H5</acronym> makes it quick and easy to begin designing themes with <acronym title="Hypertext Markup Language">HTML</acronym> 5. And best of all, <acronym title="HTML 5">H5</acronym> is completely <em>free</em>. Sound good? Great, let&rsquo;s dig into the specifics..</p>
<h3>&lsquo;H5&rsquo; Specifications</h3>
<p>First, thanks for your interest in the <acronym title="HTML 5">H5</acronym> Theme Template. I am very excited to be sharing this theme with the WordPress community and hope that you will put it to good use. Next, three important points that I would like to emphasize:</p>
<ul>
<li><acronym title="HTML 5">H5</acronym> is completely free and licensed under <a href="http://www.opensource.org/licenses/gpl-3.0.html" title="GNU General Public License version 3 (GPLv3)<br />
">GPL</a></li>
<li><acronym title="HTML 5">H5</acronym> is a <strong>template</strong> used to build <acronym title="Hypertext Markup Language">HTML</acronym>-5 themes</li>
<li><acronym title="HTML 5">H5</acronym> is built entirely with WordPress, <acronym title="Hypertext Markup Language">HTML</acronym> 5, and <acronym title="Cascading Style Sheets">CSS</acronym> 2.1</li>
</ul>
<p><strong>About the markup</strong></p>
<ul>
<li>Uses as few tags and attributes as possible</li>
<li>Contains no <code>&lt;div&gt;</code>s, <code>&lt;span&gt;</code>s, <code>class</code>es, or <code>id</code>s!</li>
<li>Built with semantically sound and fully valid <acronym title="Hypertext Markup Language">HTML</acronym> 5</li>
<li>Outputs clean, well-formatted source-code (although WordPress botches most of it)</li>
</ul>
<p><strong>About the CSS</strong></p>
<ul>
<li>Just enough <acronym title="Cascading Style Sheets">CSS</acronym> to target key elements, provide some structure, and make it &ldquo;look&rdquo; like a basic theme</li>
<li>Built with well-formatted and fully valid <acronym title="Cascading Style Sheets">CSS</acronym> 2.1 (current spec)</li>
<li>Uses child, adjacent, and attribute selectors to target elements without <code>id</code>s or <code>class</code>es</li>
</ul>
<p><strong>About the JavaScript</strong></p>
<ul>
<li>Uses only unobtrusive JavaScript</li>
<li>Uses <code>createElement()</code> to specify block elements for Internet Explorer</li>
<li>Includes WordPress&rsquo; jQuery script <a href="http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/" title="Including jQuery in WordPress (The Right Way)">the right way</a></li>
</ul>
<p><strong>About the design</strong></p>
<ul>
<li>Includes minimal markup and styles for easy customization</li>
<li>Features a full set of theme template files and common folders</li>
<li>Very minimal, meant to do just the basics and serve as a starting point</li>
<li>Uses default and/or standard WordPress template tags, loops, and other functions</li>
<li>Looks and works great out of the box in (almost) all modern browsers (see next section)</li>
<li>Designed to be as lightweight and fast as possible &#8212; only essential tags are included</li>
</ul>
<p><strong>Browser compatibility</strong></p>
<p><acronym title="HTML 5">H5</acronym> looks and works great in the following browsers (and most likely others as well):</p>
<ul>
<li>Firefox 3</li>
<li>Opera 8*</li>
<li>Opera 9</li>
<li>Chrome 1 &amp; 2</li>
<li>Safari 2, 3, &amp; 4</li>
<li>Internet Explorer 7*</li>
<li>Internet Explorer 8</li>
</ul>
<p><small>* Denotes slight inconsistencies in these browsers.</small></p>
<p>For Firefox 2, Camino 1.6, and <acronym title="Internet Exploder">IE</acronym> 6, the <acronym title="Hypertext Markup Language">HTML</acronym> seems to work great, it&rsquo;s just some of the &ldquo;advanced&rdquo; <acronym title="Cascading Style Sheets">CSS</acronym> selectors that some browsers don&rsquo;t understand. <strong>This is easily handled by simply adding a few choice <code>id</code> or <code>class</code> attributes</strong> to key elements (none are used by default).</p>
<h3>Download and Demo</h3>
<p>For a &ldquo;live&rdquo; demo of the <acronym title="HTML 5">H5</acronym> Template Theme, check out our newly revamped <a href="http://themeplayground.digwp.com/index.php?wptheme=H5%20Theme%20Template" title="Launch the H5 Demo Theme">DiW Theme Playground</a>, where we will be hosting any themes that we release here at Digging into WordPress.</p>
<p>At the DiW Theme Playground you will find a dropdown menu at the top of the browser window that enables you to preview any of our themes, as well as a download link for whichever theme happens to be active (Chris&rsquo; excellent <a href="http://digwp.com/2009/06/free-theme-wp-typo/" title="Free Theme: WP Typo ">WP Typo</a> is the default active theme).</p>
<hr />
<p><small>© 2009 <a href="http://digwp.com">Digging into WordPress</a> | <a href="http://digwp.com/2009/07/free-html-5-wordpress-theme/">Permalink</a> | <a href="http://digwp.com/2009/07/free-html-5-wordpress-theme/#comments">40 comments</a> | Add to <a href="http://del.icio.us/post?url=http://digwp.com/2009/07/free-html-5-wordpress-theme/&title=Free HTML 5 WordPress Theme">del.icio.us</a> | Post tags: <a href="http://digwp.com/tag/css/" rel="tag">CSS</a>, <a href="http://digwp.com/tag/free/" rel="tag">free</a>, <a href="http://digwp.com/tag/html/" rel="tag">HTML</a>, <a href="http://digwp.com/tag/template/" rel="tag">template</a><br/></small></p>]]></content:encoded>
			<wfw:commentRss>http://digwp.com/2009/07/free-html-5-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
	</channel>
</rss>

