__( 'Primary Menu', 'toolbox' ),
) );
// Set the excerpt length here
add_filter('excerpt_length', 'toolbox_excerpt_length');
function toolbox_excerpt_length($length) {
return 50; }
// Set the content width based on the theme's design and stylesheet.
if ( ! isset( $content_width ) )
$content_width = 640; /* pixels */
// excerpt continue reading...
function excerpt_toolbox($text) {
return str_replace('[...]', ' Read more...', $text); }
add_filter('the_excerpt', 'excerpt_toolbox');
// This sets the dimensions for the thumbnails displayed on the homepage
add_theme_support( 'post-thumbnails' );
add_image_size('excerpt-thumbnail', 140, 140, true);
// Add default posts and comments RSS feed links to head
add_theme_support( 'automatic-feed-links' );
// Add support for the Aside and Gallery Post Formats
add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
// Register widgetized area and update sidebar with default widgets
function toolbox_widgets_init() {
register_sidebar( array (
'name' => __( 'Sidebar 1', 'toolbox' ),
'id' => 'sidebar-1',
'before_widget' => '",
'before_title' => '