Fublo WordPress boilerplate

A boilerplate WordPress parent theme

This lays down the foundations for you to build a child theme upon. It does this by combining Skeleton, MooTools and a HTML5 enabling script so you can style HTML5 elements in older browsers.

Usage and examples

Creating a child theme

If you do not yet know how to create a child theme then don't panic, it is literally one line in your style.css header. And here it is.

Template: fublo-boilerplate

You will then need to use get_bloginfo('stylesheet_directory') to get the URL to the themes directory rather than get_bloginfo('template_url').

This is because template_url is the URL of the parent theme. The stylesheets directory however is the directory of your child theme.

Also, to get the benefits of the precoded header and footer you must call them like so.

get_header('fublo-boilerplate');
get_footer('fublo-boilerplate');

These can be called from your custom header and footer.

The pre made header and footer include the doctype plus open and close the body tag. So you do not need to worry about that. Just bear in mind that if you include the pre done stuff then the doctype / html / head / body tag will already have been done for you.

Assets

Please include all scripts in the footer and if you need mootools set that as a dependency. Here is an example.

wp_register_script('my_epic_script', get_bloginfo('stylesheet_directory') . '/somescript.js', array('mootools'), false, true);

Where we have passed false you can pass a version string for your script.

You will also need to set skeleton as a dependency if you wish to use it, like this.

wp_register_style('my_stylesheet', get_bloginfo('stylesheet_directory') . '/style.css', array('skeleton'));