Update functions.php
This commit is contained in:
parent
0d49b0b5e7
commit
0a2831315d
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*=Add support for useful stuff
|
// Add support for useful stuff
|
||||||
----------------------------------------*/
|
|
||||||
|
|
||||||
add_theme_support( 'post-thumbnails' );
|
add_theme_support( 'post-thumbnails' );
|
||||||
add_theme_support( 'post-formats', array( 'post' ) );
|
add_theme_support( 'post-formats', array( 'post' ) );
|
||||||
|
@ -9,8 +8,9 @@ add_theme_support( 'custom-header' );
|
||||||
add_theme_support( 'custom-background' );
|
add_theme_support( 'custom-background' );
|
||||||
add_post_type_support( 'page', 'excerpt' );
|
add_post_type_support( 'page', 'excerpt' );
|
||||||
|
|
||||||
/*=Remove junk from <head>
|
// Remove junk
|
||||||
----------------------------------------*/
|
|
||||||
|
add_filter('show_admin_bar', '__return_false');
|
||||||
|
|
||||||
remove_action( 'wp_head', 'rsd_link' );
|
remove_action( 'wp_head', 'rsd_link' );
|
||||||
remove_action( 'wp_head', 'wlwmanifest_link' );
|
remove_action( 'wp_head', 'wlwmanifest_link' );
|
||||||
|
@ -26,8 +26,7 @@ function remove_comments_rss( $for_comments ) {
|
||||||
|
|
||||||
add_filter( 'post_comments_feed_link', 'remove_comments_rss' );
|
add_filter( 'post_comments_feed_link', 'remove_comments_rss' );
|
||||||
|
|
||||||
/*=jQuery the right way
|
// jQuery the right way
|
||||||
----------------------------------------*/
|
|
||||||
|
|
||||||
function theme_scripts() {
|
function theme_scripts() {
|
||||||
wp_deregister_script( 'jquery' );
|
wp_deregister_script( 'jquery' );
|
||||||
|
@ -38,8 +37,7 @@ function theme_scripts() {
|
||||||
|
|
||||||
add_action( 'wp_enqueue_scripts', 'theme_scripts' );
|
add_action( 'wp_enqueue_scripts', 'theme_scripts' );
|
||||||
|
|
||||||
/*=Nav menus
|
// Nav menus
|
||||||
----------------------------------------*/
|
|
||||||
|
|
||||||
if ( function_exists( 'register_nav_menus' ) )
|
if ( function_exists( 'register_nav_menus' ) )
|
||||||
register_nav_menus(array(
|
register_nav_menus(array(
|
||||||
|
@ -55,4 +53,4 @@ function my_wp_nav_menu_args( $args = '' ) {
|
||||||
return $args;
|
return $args;
|
||||||
}
|
}
|
||||||
|
|
||||||
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
|
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
|
||||||
|
|
Loading…
Reference in New Issue