DiggingIntoWordPress

by Chris Coyier & Jeff Starr

H5 Theme Update

Posted by on

Theme update! The H5 Starter Theme is all updated and afresh for your theme-building adventures. The previous version of H5 still works great, but there was a lot of room for improvement, especially with all of the new features and functionality made available in recent versions of WordPress. So now the H5 starter theme is better than ever and as always 100% free download for everyone.

In a nutshell, H5 is a minimal WP theme built with HTML5. It’s got all the essentials and nothing more. A straight-up starter template for kicking off your next WordPress theme. You can learn more about the H5 Starter Theme or check out the demo. Here are the changes for the new version 1.1:

  • summary: update theme according to changes in HTML5 and WP API
  • restructured directories, moved subdirectories into /lib/
  • localized all text with h5 text domain
  • updated/reformatted style.css
  • updated/reformatted header.php
  • updated/reformatted footer.php
  • updated/reformatted comments.php
  • removed links.php (deprecated)
  • removed hard-coded links from footer and sidebar
  • removed h5.js, replaced with google-hosted HTML5 shim
  • removed clear: none; where not needed in style.css
  • removed display: block; for HTML5 selectors in style.css
  • added readme.txt and changelog
  • added theme support for featured images
  • added theme support for automatic feed links
  • added conditional wp_enqueue_script for comment-reply script
  • added default content width in functions.php
  • added post_class() to post markup
  • added class page-nav to page nav
  • added class h5-search-form to search form
  • added new class selectors to style.css
  • added fresh CSS for comments and comment form
  • added depth parameter to wp_list_pages()
  • added the_post_thumbnail() to single.php
  • added add_theme_support('custom-header')
  • added add_theme_support('custom-background')
  • added /inc/post-details.php, now included in image.php and single.php
  • replaced screenshot.png with full-size version
  • replaced page <header> with <div class="header"> in header.php
  • replaced page <nav> with <div class="nav"> in header.php
  • replaced post-wrap <section> with <div class="section"> in relevant files
  • replaced sidebar <aside> with <div class="sidebar">
  • replaced page <footer> with <div class="footer"> in footer.php
  • replaced minimal Custom Page template with full Page template
  • replaced all instances of bloginfo('url') with home_url('/')
  • general code clean up, testing, and maintenance

Happy theme building! :)

4 Responses

  1. Out of curiosity, why replace the NAV, SECTION, ASIDE, FOOTER and HEADER tags? Is there a reason to not use them?

    • They were only replaced on the outer containers for their respective sections; the same elements remain in other parts of the theme. For the containers they were replaced with more specific selectors (classes) for more controlled targeting. Changes made based on feedback from users.

  2. How to download this theme

Comments are closed. Contact us with any critical information. Thank you!

Code is poetry