'#FFF', 'default-attachment' => 'fixed', ) ) ); $defaults = array( 'default-image' => '', 'random-default' => false, 'width' => 0, 'height' => 0, 'flex-height' => false, 'flex-width' => false, 'default-text-color' => '', 'header-text' => true, 'uploads' => true, 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-header', $defaults ); /** Add languages support */ load_theme_textdomain(THEME_NAME, THEME_PATH .'/languages'); /** Allows theme developers to link a custom stylesheet file to the TinyMCE visual editor. default(style.css) */ add_editor_style(); register_nav_menus(array('main_menu'=>__('Main Menu', THEME_NAME), 'footer_menu' => __('Single Post Menu', THEME_NAME))); } //add_image_size( 'gallery_img', 800, 600, true ); add_image_size( 'team_img', 400, 400, true ); /*add_image_size( 'events-thumb', 170, 96, true ); add_image_size( 'events-thumb', 770, 235, true ); add_image_size( 'event-thumbnail', 170, 96, true ); */ /** Set the width of images and content. Should be equal to the width the theme */ $content = (isset($content_width)) ? $content_width : 613; /** Add feed link support */ add_theme_support( 'automatic-feed-links' ); /** Post thumnail Support and add new sizes that themes is required */ add_theme_support('post-thumbnails'); //Example Code //add_image_size( 'post-image1', 363, 201, true ); /** include theme scripts and styles */ get_template_part('libs/scripts_styles'); /** include theme breadcrumbs */ get_template_part('libs/breadcrumbs'); /** include theme register sidebars */ //get_template_part('libs/register_sidebars'); /** include theme widgets */ get_template_part('libs/widgets');