tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
*/
add_theme_support( 'post-thumbnails' );
// ThBusiness Image Sizes
add_image_size( 'featured', 345, 259, true );
add_image_size( 'featured-large', 677, 400, true );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'thbusiness' ),
) );
// Enable support for Post Formats.
//add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
// Setup the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'thbusiness_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
// Enable support for HTML5 markup.
add_theme_support( 'html5', array(
'comment-list',
'search-form',
'comment-form',
'gallery',
'caption',
) );
// Editor stylesheet.
add_editor_style( 'css/editor-style.css', thbusiness_fonts_url() );
/**
* Set the content width based on the theme's design and stylesheet.
*/
global $content_width;
if ( ! isset( $content_width ) ) {
$content_width = 677; /* pixels */
}
}
endif; // thbusiness_setup
add_action( 'after_setup_theme', 'thbusiness_setup' );
/**
* Register widget area.
*
* @link http://codex.wordpress.org/Function_Reference/register_sidebar
*/
function thbusiness_widgets_init() {
register_sidebar( array(
'name' => __( 'Main Sidebar', 'thbusiness' ),
'id' => 'thbusiness-main-sidebar',
'description' => '',
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Business Template Top Area', 'thbusiness' ),
'id' => 'thbusiness-business-top-sidebar',
'description' => 'Shows the widgets on the top area of the business page.',
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Business Template Left Area', 'thbusiness' ),
'id' => 'thbusiness-business-left-sidebar',
'description' => 'Shows the widgets on the left area of the business page.',
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Business Template Right Area', 'thbusiness' ),
'id' => 'thbusiness-business-right-sidebar',
'description' => 'Shows the widgets on the right area of the business page.',
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Business Template Bottom Area', 'thbusiness' ),
'id' => 'thbusiness-business-bottom-sidebar',
'description' => 'Shows the widgets on the bottom area of the business page.',
'before_widget' => '',
'before_title' => '