tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support( 'post-thumbnails' ); add_image_size( 'blogstart-popular-post', 85, 70, true ); add_image_size( 'blogstart-sm-gallery-post', 90, 90, true ); add_image_size( 'blogstart-post-slider', 270, 300, true ); add_image_size( 'blogstart-thumbnail', 385, 300, true ); add_image_size( 'blogstart-fthumbnail', 370, 260, true ); add_image_size( 'blogstart-flthumnail', 770, 590, true ); add_image_size( 'blogstart-fslider', 270, 150, true ); add_image_size( 'blogstart-related', 250, 170, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'menu-1' => esc_html__( 'Primary', 'blogstart' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ $htmlArgs = array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ); add_theme_support( 'html5', $htmlArgs ); /* * Post Formats Support */ $formatsArgs = array( 'gallery', 'image', 'quote', 'video', ); add_theme_support( 'post-formats', $formatsArgs); // Set up the WordPress core custom background feature. $custombgargs = apply_filters( 'blogstart_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ); add_theme_support( 'custom-background', $custombgargs ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( "wp-block-styles" ); add_theme_support( 'editor-styles' ); add_theme_support( 'responsive-embeds' ); add_theme_support( "align-wide" ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ $logoArgs = array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, ); add_theme_support( 'custom-logo', $logoArgs); add_editor_style( array( 'assets/stylesheets/vendor/resources/bootstrap.css' ) ); } endif; add_action( 'after_setup_theme', 'blogstart_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 blogstart_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( 'blogstart_content_width', 640 ); } add_action( 'after_setup_theme', 'blogstart_content_width', 0 ); /** * BlogStart Custom Widgets */ require get_template_directory() . '/inc/widgets.php'; /** * Blogstart Register Sidebar */ require get_template_directory() . '/inc/register-sidebar.php'; /** * Blogstart all scripts files */ require get_template_directory() . '/inc/script-files.php'; /** * Blogstart Comment Form */ require get_template_directory() . '/inc/comment-form.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Functions which enhance the theme by hooking into WordPress. */ require get_template_directory() . '/inc/template-functions.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ if ( defined( 'JETPACK__VERSION' ) ) { require get_template_directory() . '/inc/jetpack.php'; } /*update to pro link*/ require get_template_directory() . '/inc/upgradetopro/class-customize.php'; /*Notice*/ require get_template_directory() . '/inc/blogstart-details.php'; /** * Getting Started */ require get_template_directory() . '/inc/getting-started/getting-started.php'; /** * Block Pattern */ require get_template_directory() . '/inc/block-pattern/reg-block-pattern.php';