d HTML5. */ add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'jetblack_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); // Add theme editor style add_editor_style( array( 'css/editor-style.css' ) ); // Add support for Block Styles. add_theme_support( 'wp-block-styles' ); // Add support for editor styles. add_theme_support( 'editor-styles' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // Add support for responsive embeds. add_theme_support( 'responsive-embeds' ); add_theme_support( 'post-formats', array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat' ) ); } endif; add_action( 'after_setup_theme', 'jetblack_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. * */ function jetblack_content_width() { // This variable is intended to be overruled from themes. // Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}. // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $GLOBALS['content_width'] = apply_filters( 'jetblack_content_width', 1230 ); } add_action( 'after_setup_theme', 'jetblack_content_width', 0 ); if ( ! function_exists( 'jetblack_custom_content_width' ) ) : /** * Custom content width. * * @since 1.0 */ function jetblack_custom_content_width() { $layout = jetblack_get_theme_layout(); if ( 'no-sidebar-full-width' !== $layout ) { $GLOBALS['content_width'] = apply_filters( 'jetblack_content_width', 890 ); } } endif; add_filter( 'template_redirect', 'jetblack_custom_content_width' ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function jetblack_widgets_init() { $args = array( 'before_widget' => '
', 'before_title' => '