100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, 'unlink-homepage-logo' => true, ) ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // Add support for responsive embedded content. add_theme_support( 'responsive-embeds' ); // Add support for core block visual styles. add_theme_support( 'wp-block-styles' ); // Enqueue editor styles. add_editor_style( 'style.css' ); // Make theme available for translation. load_theme_textdomain( 'bharat-ai-marketing', get_template_directory() . '/languages' ); // Add support for post thumbnails. add_theme_support( 'post-thumbnails' ); // Add support for automatic feed links. add_theme_support( 'automatic-feed-links' ); // Add support for HTML5. add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', ) ); // Declare WooCommerce support. add_theme_support( 'woocommerce' ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); // Register block pattern categories. register_block_pattern_category( 'bharat-ai-marketing', array( 'label' => __( 'Bharat AI', 'bharat-ai-marketing' ) ) ); // Register a custom block style (Recommended for Block Themes). register_block_style( 'core/button', array( 'name' => 'bharat-outline', 'label' => __( 'Bharat Outline', 'bharat-ai-marketing' ), ) ); } endif; add_action( 'after_setup_theme', 'bharat_ai_support' ); if ( ! function_exists( 'bharat_ai_styles' ) ) : /** * Enqueue styles. * * @return void */ function bharat_ai_styles() { // Register theme stylesheet. $theme_version = wp_get_theme()->get( 'Version' ); $version_string = is_string( $theme_version ) ? $theme_version : false; wp_register_style( 'bharat-ai-marketing-style', get_template_directory_uri() . '/style.css', array(), $version_string ); wp_register_script( 'bharat-ai-marketing-scroll-top', get_template_directory_uri() . '/assets/js/scroll-top.js', array(), $version_string, true ); wp_enqueue_style( 'bharat-ai-marketing-style' ); wp_enqueue_script( 'bharat-ai-marketing-scroll-top' ); } endif; add_action( 'wp_enqueue_scripts', 'bharat_ai_styles' ); /** * Load Demo Importer logic. */ require get_template_directory() . '/inc/demo-importer.php'; /** * Generate demo pages on theme activation. */ add_action( 'after_switch_theme', 'bharat_ai_generate_demo_pages' ); add_action( 'after_setup_theme', function() { if ( ! get_option( 'bharat_ai_demo_generated_v2' ) ) { if ( function_exists( 'bharat_ai_generate_demo_pages' ) ) { bharat_ai_generate_demo_pages(); update_option( 'bharat_ai_demo_generated_v2', 1 ); } } }, 20 ); if ( ! function_exists( 'bharat_ai_scroll_to_top' ) ) : /** * Output the scroll-to-top button in the footer. * * @return void */ function bharat_ai_scroll_to_top() { ?>