'#ffffff' ); add_theme_support( 'custom-background', $defaults ); /** * Theme Support - Custom Header */ $defaults = array( 'default-image' => get_template_directory_uri() . '/_theme/images/default-header.png', 'header-text' => false, 'width' => 1000, 'height' => 500, 'flex-height' => true, 'flex-width' => true, 'uploads' => true, 'video' => false ); add_theme_support( 'custom-header', $defaults ); /** * Theme Support - Logo */ $defaults = array( 'height' => 100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, 'header-text' => false ); add_theme_support( 'custom-logo', $defaults ); /** * Theme Support - Automatic Feed Links */ add_theme_support('automatic-feed-links'); /** * Theme Support - Menus */ add_theme_support('menus'); register_nav_menus(array( 'main-menu' => esc_html__('Main Menu', 'boxy-studio'), 'mobile-menu' => esc_html__( 'Mobile Menu','boxy-studio' ) )); /** * Theme Support - Post Thumbnails */ add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( apply_filters( 'boxytheme_post_thumbnail_width', 350 ), apply_filters( 'boxytheme_post_thumbnail_height', 350 ), true ); add_image_size( 'boxytheme_page_banner', apply_filters( 'boxytheme_page_banner_width', 1400 ), apply_filters( 'boxytheme_page_banner_height', 700 ), true ); add_image_size( 'boxytheme_page_thumbnail', apply_filters( 'boxytheme_page_thumbnail_width', 1400 ), apply_filters( 'boxytheme_page_thumbnail_height', 1400 ), false ); /** * Boxy Theme includes full licenses to use Envira Gallery and Soliloquy Slider. * Those license keys are automatically activated for you here. */ // Boxy Theme includes full licenses to use Envira Gallery and Soliloquy Slider. // ENVIRA_LICENSE_KEY if ( ! defined( 'ENVIRA_LICENSE_KEY' ) ) { define( 'ENVIRA_LICENSE_KEY', apply_filters( 'boxy_envira_license', '93b032dcb25f3564ff1814b3fd777efb' ) ); } // SOLILOQUY_LICENSE_KEY if ( ! defined( 'SOLILOQUY_LICENSE_KEY' ) ) { define( 'SOLILOQUY_LICENSE_KEY', apply_filters( 'boxy_soliloquy_license', '1dff474a33f27e4481a6716f13f77989' ) ); } } /* Sidebars */ function boxytheme_widgets_init() { $post_types = get_post_types( array( 'public' => true, 'exclude_from_search' => false, '_builtin' => false ), 'objects', 'and' ); if ( !empty($post_types) ): foreach( $post_types as $name => $post_type ): register_sidebar( array( 'name' => sprintf( __( 'Sidebar (%s)', 'boxy-studio' ), $post_type->label ), 'id' => 'sidebar-' . $name, 'description' => __( 'Add widgets here to appear in the sidebar.', 'boxy-studio' ), 'before_widget' => '', 'before_title' => '