Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c7f83a0a62
Fetching contributors…

Cannot retrieve contributors at this time

file 64 lines (53 sloc) 1.994 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
<?php
add_action( 'after_setup_theme', 'blm_theme_setup' );
function blm_theme_setup() {

global $content_width;
/* Set the $content_width for things such as video embeds. */
if ( !isset( $content_width ) )
$content_width = 600;

/* Add theme support for automatic feed links. */
add_theme_support( 'automatic-feed-links' );

/* Add theme support for post thumbnails (featured images). */
add_theme_support( 'post-thumbnails');
}

/* Add your nav menus function to the 'init' action hook. */
add_action( 'init', 'blm_register_menus' );

/* Add custom actions. */
add_action( 'widgets_init', 'blm_register_sidebars' );

// Add menu features
function blm_register_menus() {
register_nav_menus(array('primary'=>__( 'Primary Menu' ), ));
}

// Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
function blm_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'blm_page_menu_args' );

function blm_register_sidebars() {
register_sidebar(
array(
'id' => 'primary',
'name' => __( 'Primary Sidebar', 'blm_basic' ),
'description' => __( 'The following widgets will appear in the main sidebar div.', 'blm_basic' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h4>',
'after_title' => '</h4>'
)
);
}

function blm_init_method() {

/* Load the comment reply JavaScript. */
if ( is_singular() && get_option( 'thread_comments' ) && comments_open() )
wp_enqueue_script( 'comment-reply' );
}
add_action('wp_enqueue_scripts', 'blm_init_method');

// remove junk from head
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'wlwmanifest_link ');
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 );
Something went wrong with that request. Please try again.