444, 'height' => 144, 'flex-width' => true, 'flex-height' => true, ) ); /* * Enable support for Post Thumbnails on posts and pages. */ add_theme_support( 'post-thumbnails' ); // Blog thumbnail with sidebar. add_image_size( '738x0', 738, 0, false ); add_image_size( '1476x0', 1458, 0, false ); // Blog thumbnail without sidebar. add_image_size( '996x0', 996, 0, false ); add_image_size( '1992x0', 1992, 0, false ); // Portfolio thumbnail. add_image_size( '480x480', 480, 480, true ); add_image_size( '960x960', 960, 960, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'maker' ), 'footer' => __( 'Footer Menu', 'maker' ), ) ); /* * Enable HTML5 markup for listed features. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* * Add support for Pageviews plugin. */ add_theme_support( 'pageviews' ); // Add support for Jetpack responsive videos. add_theme_support( 'jetpack-responsive-videos' ); /* * This theme styles the visual editor to resemble the theme style. */ add_editor_style( array( 'assets/css/editor-style.css' ) ); /* * Support for Selective Refresh for widgets. */ add_theme_support( 'customize-selective-refresh-widgets' ); } endif; add_action( 'after_setup_theme', 'maker_setup' ); /** * Adjust content_width value for fullwidth page and portfolio pages. */ function maker_adjust_content_width() { if ( is_page_template( 'templates/fullwidth.php' ) || 'portfolio' == get_post_type() || 'jetpack-portfolio' == get_post_type() ) { $GLOBALS['content_width'] = 996; } } add_action( 'template_redirect', 'maker_adjust_content_width' ); /** * Register widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function maker_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'maker' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '', 'before_title' => '