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 ); } 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(){ ?>