300, 'single_image_width' => 600, 'product_grid' => array( 'default_rows' => 3, 'min_rows' => 1, 'default_columns' => 4, 'min_columns' => 1, 'max_columns' => 6, ), ) ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); } add_action( 'after_setup_theme', 'bc_store_theme_setup' ); if ( ! function_exists( 'bc_store_script' ) ) : function bc_store_script() { wp_enqueue_style( 'bc-store-google-fonts', '//fonts.googleapis.com/css?family=Josefin+Sans:ital,wght@0,100..700;1,100..700|Raleway:ital,wght@0,100..900;1,100..900&display=swap' ); // Enqueue the child theme's stylesheet wp_enqueue_style( 'bc-consulting-style', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'bootstrap-5', 'fontawesome-6', 'scrollbar', 'owl-carousel', 'aos-next', 'bc-consulting-common', 'bc-consulting-navigation', ), wp_get_theme()->get('Version') // Optional versioning for cache busting ); // loading child style wp_register_style( 'bc-store-style', get_stylesheet_directory_uri() . '/style.css' ); wp_enqueue_style( 'bc-store-style'); $custom_css = ':root {--primary-color:'.esc_attr( get_theme_mod('__primary_color','#555') ).'!important; --secondary-color: '.esc_attr( get_theme_mod('__secondary_color','#1e73be') ).'!important; --nav-h-color:'.esc_attr( get_theme_mod('__secondary_color','#1e73be') ).'!important;--nav-h-bg:'.esc_attr( get_theme_mod('__secondary_color','#1e73be') ).'!important;}'; wp_add_inline_style( 'bc-store-style', $custom_css ); wp_enqueue_style( 'bc-store-woocommerce-core', get_stylesheet_directory_uri() . '/assets/css/woocommerce-core.css', array(), wp_get_theme()->get('Version') ); wp_enqueue_style( 'bc-store-woocommerce-style', get_stylesheet_directory_uri() . '/woocommerce.css', array(), wp_get_theme()->get('Version') ); $font_path = WC()->plugin_url() . '/assets/fonts/'; $inline_font = '@font-face { font-family: "star"; src: url("' . $font_path . 'star.eot"); src: url("' . $font_path . 'star.eot?#iefix") format("embedded-opentype"), url("' . $font_path . 'star.woff") format("woff"), url("' . $font_path . 'star.ttf") format("truetype"), url("' . $font_path . 'star.svg#star") format("svg"); font-weight: normal; font-style: normal; }'; wp_add_inline_style( 'bc-store-woocommerce-style', $inline_font ); wp_enqueue_script( 'bc-store-customselect', get_theme_file_uri( '/assets/js/customselect.js'), array(), wp_get_theme()->get('Version'), true); wp_enqueue_script( 'bc-store-woocommerce', get_theme_file_uri( '/assets/js/bc-store-woocommerce.js' ) , 0, '1.1', true ); } endif; add_action( 'wp_enqueue_scripts', 'bc_store_script' ); /** * WooCommerce */ if ( class_exists( 'woocommerce' ) ) { require get_stylesheet_directory() . '/inc/woocommerce.php'; } function bc_store_reorder_comment_fields($fields) { // Rearrange the fields by defining the order explicitly $new_order = array(); // Place 'author' field first $new_order['author'] = $fields['author']; // Place 'email' field second $new_order['email'] = $fields['email']; // Place 'url' field third (optional if you want to include it) if (isset($fields['url'])) { $new_order['url'] = $fields['url']; } // Place 'comment' field last $new_order['comment'] = $fields['comment']; return $new_order; } add_filter('comment_form_fields', 'bc_store_reorder_comment_fields'); if( !function_exists('bc_store_disable_from_parent') ): add_action('init','bc_store_disable_from_parent',10); function bc_store_disable_from_parent(){ global $bc_consulting_Header_Layout; remove_action('bc_consulting_site_header', array( $bc_consulting_Header_Layout, 'site_header_layout' ), 30 ); global $bc_consulting_post_related; remove_action('bc_consulting_site_content_type', array( $bc_consulting_post_related, 'site_loop_heading' ), 10 ); global $bc_consulting_footer_layout; remove_action('bc_consulting_site_footer', array( $bc_consulting_footer_layout, 'site_footer_info' ), 80 ); remove_action( 'after_setup_theme', 'bc_consulting_custom_header_setup' ); } endif; if( !function_exists('bc_store_site_header_layout') ): add_action('bc_consulting_site_header', 'bc_store_site_header_layout', 30 ); function bc_store_site_header_layout(){ ?>