A lot of WordPress themes are now built entirely with HTML5. I think Rootdip (previously HTML5Press), was one of the first WordPress themes to utilize many HTML5 elements. Some themes, however, don’t make use of HTML5 at all. WordPress has the ability to allow the use of HTML5 markup for comment forms, comment lists, and search forms.
Your theme has to use add_theme_support( 'html5' ). Much of this was inspired by this post from Konstantin Obenland on ThemeShaper, as was the featured image for this post, heh.
Active Theme Support
This is really easy. All you need to do is call add_theme_support( 'html5' ), essentially. More specifically, in the functions.php file for your theme, add the following.
Jetpack is a very popular plugin, so supporting Jetpack-specific features in your themes will end up just making your users happier. Kind of like an added bonus they didn’t realize they could use if they’re using your theme and Jetpack.
Infinite scroll is incredibly easy to add to “well-crafted” themes. The Twenty Twelve theme is a great example. Enabling infinite scroll is slightly more complicated with not-so-well-crafted themes, but it’s still pretty easy.
Enable Infinite Scroll in Well-Crafted Themes
Just add the following to your functions.php file.
Enable Infinite Scroll in Not-So-Well-Crafted Themes
Activate Infinite Scroll
Add the following to the functions.php file for your theme.
In mytheme_infinite_scroll_init, the ‘loop’ parameter value defines the file where your wordpress loop sits. It should be very basic and only contain markup and PHP you want to be included with every post. Have a look at the loop.php file from Rootdip for an example.
That’s really all there is to it. With the above code you’ll have a working Jetpack Infinite Scroll in your WordPress theme. Whether you’ve got a well-crafted theme or not, you should be able to add infinite scroll via Jetpack fairly easily.
I’d suggest adding an option to your theme options to allow users to enable or disable Infinite Scroll.
Predawn is actually a new and improved, renamed version of Flatland-Alt, but still sticks with the dark interface. Here’s how Predawn describes itself in it’s GitHub repo.
Predawn is a minimal Sublime Text theme and a syntax color scheme. It was originally just a slightly tweaked version (called Flatland-Alt) of the Flatland theme, which itself is a flat reworking of Soda. I decided to keep going with cusomization and rework the entire theme. But I owe a lot to Flatland and Soda. Thanks guys!
Predawn can be installed via Package Control and activating the theme is pretty standard:
There’s some other options regarding the sidebar size that you can set as well. It even includes some really nice looking dock icons for SublimeText.
Jamie also included his favorite SublimeText configuration, there’s definitely some things he’s using that I should be.
Give Predawn a try. If you’re a fan of Flatland or Flatland-Alt, you’ll love Predawn.