esc_html__( 'Main Menu', 'blockchain-lite' ), 'menu-2' => esc_html__( 'Main Menu - Right', 'blockchain-lite' ), ); if ( ! apply_filters( 'blockchain_lite_support_menu_2', true ) ) { unset( $menus['menu-2'] ); } register_nav_menus( $menus ); // Switch default core markup for search form, comment form, and comments to output valid HTML5. add_theme_support( 'html5', apply_filters( 'blockchain_lite_add_theme_support_html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ) ); // Add theme support for custom logos. add_theme_support( 'custom-logo', apply_filters( 'blockchain_lite_add_theme_support_custom_logo', array() ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'blockchain_lite_custom_background_args', array() ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Image sizes set_post_thumbnail_size( 850, 567, true ); add_image_size( 'blockchain_lite_item', 555, 400, true ); add_image_size( 'blockchain_lite_item_tall', 555 ); add_image_size( 'blockchain_lite_item_media', 80, 80, true ); add_image_size( 'blockchain_lite_brand_logo', 0, 80, false ); add_image_size( 'blockchain_lite_fullwidth', 1140, 650, true ); add_image_size( 'blockchain_lite_hero', 1920, 500, true ); add_image_size( 'blockchain_lite_slide', 1920, 850, true ); add_theme_support( 'blockchain-lite-hero', apply_filters( 'blockchain_lite_theme_support_hero_args', wp_parse_args( array( 'front-page-template' => false, 'front-page-classes' => 'page-hero-lg', 'front-page-image-size' => 'blockchain_lite_slide', 'text-align' => 'left', ), blockchain_lite_theme_support_hero_defaults() ) ) ); add_theme_support( 'blockchain-lite-hide-single-featured', apply_filters( 'blockchain_lite_theme_support_hide_single_featured_post_types', array( 'post', 'page', ) ) ); // This provides back-compat for author descriptions on WP < 4.9. Remove by WP 5.1. if ( ! has_filter( 'get_the_author_description', 'wpautop' ) ) { add_filter( 'get_the_author_description', 'wpautop' ); } } endif; add_action( 'after_setup_theme', 'blockchain_lite_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function blockchain_lite_content_width() { $content_width = $GLOBALS['content_width']; if ( is_page_template( 'templates/full-width-page.php' ) || is_page_template( 'templates/builder.php' ) ) { $content_width = 1140; } elseif ( is_singular() || is_home() || is_archive() ) { $info = blockchain_lite_get_layout_info(); $content_width = $info['content_width']; } $GLOBALS['content_width'] = apply_filters( 'blockchain_lite_content_width', $content_width ); } add_action( 'template_redirect', 'blockchain_lite_content_width', 0 ); add_filter( 'wp_page_menu', 'blockchain_lite_wp_page_menu', 10, 2 ); function blockchain_lite_wp_page_menu( $menu, $args ) { $menu = preg_replace( '#^
#', '', $menu, 1 ); $menu = preg_replace( '#
$#', '', $menu, 1 ); $menu = preg_replace( '#^