*/
function bz_theme_setup() {
add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
add_theme_support( 'menus', 'custom-header' );
add_theme_support( 'automatic-feed-links' );
add_post_type_support( 'page', 'excerpt' );
if ( ! isset( $content_width ) ) $content_width = 680;
register_nav_menus( array(
'topmenu' => __ ( 'Top Navigation', 'theme-boxedzebra' ),
'mainmenu' => __ ( 'Main Navigation', 'theme-boxedzebra' ),
)
);
register_sidebar(array(
'name' => ' Sidebar',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
)
);
add_theme_support(
'custom-header', array(
'default-image' => get_template_directory_uri() . '/images/default_header.jpg', // Header image default
'header-text' => true, // Header text display default
'default-text-color' => '', // Header text color default
'width' => HEADER_IMAGE_WIDTH, // Header image width (in pixels)
'flex-width' => true, // Header flex width changes width into suggested width
'height' => HEADER_IMAGE_HEIGHT, // Header image height (in pixels)
'flex-height' => true, // Header flex height changes height into suggested height
'random-default' => true, // Header image random rotation default
'wp-head-callback' => 'bz_header_style', // Template header style callback
'admin-head-callback' => 'bz_admin_header_style', // Admin header style callback
)
);
load_theme_textdomain( 'theme-boxedzebra', get_template_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'bz_theme_setup' );
/**
* Define constants for custom image header
*
* @since 1.0
* @author Hanna Randén
*/
define( 'HEADER_IMAGE_WIDTH', 965 ); // use width and height appropriate for your theme
define( 'HEADER_IMAGE_HEIGHT', 150 );
/**
* gets included in the site header
*
* @since 1.0
* @author Hanna Randén
*/
function bz_header_style() {
?>
*/
function bz_admin_header_style() {
?>