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.
A bunch of scummy sites are using some of my old WordPress themes. The themes have links to longren.org in the footer, I think Google hates me for it, I dunno though. It started about 3 years ago. When all was good, organic search referrals from Google were around 15,000 unique visitors per month.
Now, however, the story is much different. In all, Google is throwing me about 800 unique visitors a month from organic search. I believe it has something to do with all of the incoming links to longren.org from low quality websites. I really have no idea though and am not about to hire some SEO company to fix it up or take the time to disavow hundreds of thousands of links.
I’ve got longren.org forwarding to longren.io now, but will eventually turn that off and just start from scratch, I guess. Unless Google can help, but that’s not probably likely.