More stuff for functions.php

This commit is contained in:
Mike Francis 2012-12-20 21:18:50 +00:00
parent 4659b59c03
commit 59071b67b5
3 changed files with 8 additions and 16 deletions

View File

@ -1,15 +1,15 @@
# barebones
A lightweight, skinny WordPress theme for HTML5 and beyond. Great as a starting point for any project with powerful features to encourage rapid development for most projects
A lightweight, skinny skeletal WordPress theme for HTML5 and beyond. Great as a starting point for any project with powerful features to encourage rapid development for most projects.
## Features
* Base reset and normalisation styles
* Semantic use of HTML5 elements
* Includes Google HTML5 shiv
* Bootstrap compatible
* Proprietary baseline grid
* Proprietary baseline and horizontal 960 responsive grid
* index.php Loop template
* Customised functions.php containing useful starting points
* Customised functions.php adding theme support for high customisation
* Tidy and organised folder structure
* Comes pre-bundled with latest CDN version of jQuery and fallback
* WAI-ARIA role ready

View File

@ -1,16 +1,12 @@
<?php
/* =Add support for missing cool stuff
-------------------------------------------------------------- */
add_theme_support( 'post-thumbnails' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'post-formats', array( 'post' ) );
add_theme_support( 'custom-header' );
add_theme_support( 'custom-background' );
add_post_type_support( 'page', 'excerpt' );
/* =Remove gunk from <head>
-------------------------------------------------------------- */
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'wp_generator' );
@ -22,11 +18,7 @@ remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
function remove_comments_rss( $for_comments ) {
return;
}
add_filter( 'post_comments_feed_link', 'remove_comments_rss' );
/* =Register a sidebar for the lolz
-------------------------------------------------------------- */
if ( function_exists( 'register_sidebar' ) )
register_sidebar();

View File

@ -16,7 +16,7 @@
<h1><a href="<?php echo site_url(); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<nav role="navigation">
<ul class="nav">
<?php wp_list_pages( 'title_li=' ); ?>
<?php wp_list_pages( 'title_li=' ); ?>
</ul>
</nav>
</div>