esc_html__( 'Bangla bazar Main Menu', 'bangla-bazar' ), 'bangla_bazar_footer_menu' => esc_html__( 'Bangla bazar Footer Menu', 'bangla-bazar' ), ) ); /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on Bangla bazar, use a find and replace * to change 'bangla-bazar' to the name of your theme in all the template files. */ $textdomain = 'bangla-bazar'; load_theme_textdomain( $textdomain, get_stylesheet_directory() . '/languages/' ); load_theme_textdomain( $textdomain, get_stylesheet_directory() . '/languages/' ); // This theme is WooCommerce compatible, so we're adding support to WooCommerce add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 255, 'single_image_width' => 255, 'product_grid' => array( 'default_rows' => 10, 'min_rows' => 5, 'max_rows' => 10, 'default_columns' => 1, 'min_columns' => 1, 'max_columns' => 1, ) ) ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); //Wordpress Recommenned support add_theme_support( "wp-block-styles" ); add_theme_support( "responsive-embeds" ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'script', 'style', 'navigation-widgets', ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // Add support for editor styles. add_theme_support( 'editor-styles' ); // Enqueue editor styles. add_editor_style( 'style-editor.css' ); // add_theme_support( "html5", $args ); // add_theme_support( "custom-header", $args ); // add_theme_support( "custom-background", $args ); add_theme_support( "align-wide" ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /** * Add support for core custom logo. * * @link https://codex.wordpress.org/Theme_Logo */ add_theme_support( 'custom-logo', array( 'height' => 85, 'width' => 160, 'flex_height' => true, 'flex_width' => true, ) ); add_theme_support( 'post-thumbnails' ); add_image_size( 'bangla-bazar-slider', 1920, 800, array( 'center', 'center' ) ); add_image_size( 'bangla-bazar-blog', 960, 640, array( 'center', 'center' ) ); if ( ! isset( $content_width ) ) { $content_width = 600; } add_theme_support( 'title-tag' ); } add_action( 'after_setup_theme', 'bangla_bazar_config', 0 ); /** * If WooCommerce is active, we want to enqueue a file * with a couple of template overrides */ if( class_exists( 'WooCommerce' )){ require get_template_directory() . '/inc/wc-modifications.php'; } /** * Show cart contents / total Ajax */ add_filter( 'woocommerce_add_to_cart_fragments', 'fancy_lab_woocommerce_header_add_to_cart_fragment' ); function fancy_lab_woocommerce_header_add_to_cart_fragment( $fragments ) { global $woocommerce; ob_start(); ?> cart->get_cart_contents_count() ); ?> esc_html__( 'Bangla bazar Main Sidebar', 'bangla-bazar' ), 'id' => 'bangla-bazar-sidebar-1', 'description' => esc_html__( 'Drag and drop your widgets here', 'bangla-bazar' ), 'before_widget' => '
', 'before_title' => '