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.
It’s sickening that animals have to lose their lives because there’s no room for them in their local animal shelter.
Tail Weavers is trying to change that by making it easier for unwanted pets to find new homes. Here’s a bit from tailweavers.com:
We are [in the process of becoming] a 501(c)(3) nonprofit organization with the vision of a nation where kill shelters are extinct. Raising the funds and getting our legal nonprofit status is Phase 1.
Our mission is to provide free hybrid photography training to photographers and to have them donate their new skill to shelters and rescues. The still portraits and Tails In Motion portraits (the hybrid part – a little move that combines stills and video and audio) will be posted by the shelter/rescue to promote the quick adoption of the pet into a permanent home.
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.