More stuff for functions.php
This commit is contained in:
parent
4659b59c03
commit
59071b67b5
|
@ -1,15 +1,15 @@
|
||||||
# barebones
|
# 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
|
## Features
|
||||||
|
|
||||||
* Base reset and normalisation styles
|
* Base reset and normalisation styles
|
||||||
* Semantic use of HTML5 elements
|
* Semantic use of HTML5 elements
|
||||||
* Includes Google HTML5 shiv
|
* Includes Google HTML5 shiv
|
||||||
* Bootstrap compatible
|
* Proprietary baseline and horizontal 960 responsive grid
|
||||||
* Proprietary baseline grid
|
|
||||||
* index.php Loop template
|
* 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
|
* Tidy and organised folder structure
|
||||||
* Comes pre-bundled with latest CDN version of jQuery and fallback
|
* Comes pre-bundled with latest CDN version of jQuery and fallback
|
||||||
|
* WAI-ARIA role ready
|
|
@ -1,16 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/* =Add support for missing cool stuff
|
|
||||||
-------------------------------------------------------------- */
|
|
||||||
|
|
||||||
add_theme_support( 'post-thumbnails' );
|
add_theme_support( 'post-thumbnails' );
|
||||||
add_theme_support( 'automatic-feed-links' );
|
add_theme_support( 'automatic-feed-links' );
|
||||||
|
add_theme_support( 'post-formats', array( 'post' ) );
|
||||||
add_theme_support( 'custom-header' );
|
add_theme_support( 'custom-header' );
|
||||||
|
add_theme_support( 'custom-background' );
|
||||||
add_post_type_support( 'page', 'excerpt' );
|
add_post_type_support( 'page', 'excerpt' );
|
||||||
|
|
||||||
/* =Remove gunk from <head>
|
|
||||||
-------------------------------------------------------------- */
|
|
||||||
|
|
||||||
remove_action( 'wp_head', 'rsd_link' );
|
remove_action( 'wp_head', 'rsd_link' );
|
||||||
remove_action( 'wp_head', 'wlwmanifest_link' );
|
remove_action( 'wp_head', 'wlwmanifest_link' );
|
||||||
remove_action( 'wp_head', 'wp_generator' );
|
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 ) {
|
function remove_comments_rss( $for_comments ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
add_filter( 'post_comments_feed_link', 'remove_comments_rss' );
|
add_filter( 'post_comments_feed_link', 'remove_comments_rss' );
|
||||||
|
|
||||||
/* =Register a sidebar for the lolz
|
|
||||||
-------------------------------------------------------------- */
|
|
||||||
|
|
||||||
if ( function_exists( 'register_sidebar' ) )
|
if ( function_exists( 'register_sidebar' ) )
|
||||||
register_sidebar();
|
register_sidebar();
|
|
@ -16,7 +16,7 @@
|
||||||
<h1><a href="<?php echo site_url(); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
<h1><a href="<?php echo site_url(); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||||
<nav role="navigation">
|
<nav role="navigation">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<?php wp_list_pages( 'title_li=' ); ?>
|
<?php wp_list_pages( 'title_li=' ); ?>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue