More stuff for functions.php
This commit is contained in:
parent
4659b59c03
commit
59071b67b5
3 changed files with 8 additions and 16 deletions
|
@ -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();
|
Loading…
Add table
Add a link
Reference in a new issue