esc_html__( 'Primary', 'actify' ), ) ); // Switch default core markup to output valid HTML5. add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'actify_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 theme support for responsive embeds add_theme_support( 'responsive-embeds' ); // Add support for core custom logo. add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); add_image_size( 'actify-featured-image', 1200, 600, true ); // Add support for wide blocks in block editor if sidebar is hidden if ( get_theme_mod( 'actify_sidebar_position', 'hide' ) === 'hide' ) { add_theme_support( 'align-wide' ); } // Starter Content $actify_starter_content = array( 'options' => array( 'actify_display_cover_section' => true, 'actify_cover_img' => get_template_directory_uri() . '/assets/images/cover-img.jpg', 'actify_cover_title' => __( 'Create A Beautiful Blog Easily.', 'actify' ), 'actify_cover_subtitle' => __( 'Actify is a simple and easy to use blog theme. It is designed and developed primarily to create professional blogging websites with Gutenberg editor.', 'actify' ), ), ); add_theme_support( 'starter-content', $actify_starter_content ); } endif; add_action( 'after_setup_theme', 'actify_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. */ function actify_content_width() { // This variable is intended to be overruled from themes. $GLOBALS['content_width'] = apply_filters( 'actify_content_width', 780 ); } add_action( 'after_setup_theme', 'actify_content_width', 0 ); /** * Register widget area. */ function actify_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'actify' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'actify' ), 'before_widget' => '', 'before_title' => '