'; woocommerce_result_count(); woocommerce_catalog_ordering(); echo ''; } } add_action('woocommerce_before_shop_loop', 'bigmart_woocommerce_result_count_catalog_ordering', 30); if (!function_exists('bigmart_woocommerce_breadcrumb')) { function bigmart_woocommerce_breadcrumb() { if (is_woocommerce()) { echo '
'; } } } add_action('bigmart_header', 'bigmart_woocommerce_breadcrumb', 50); if (!function_exists('bigmart_woocommerce_scripts')) { /** * WooCommerce specific scripts & stylesheets. * * @return void */ function bigmart_woocommerce_scripts() { wp_enqueue_style('bigmart-woocommerce-style', get_template_directory_uri() . '/woocommerce.css'); $font_path = esc_url(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('bigmart-woocommerce-style', $inline_font); } } add_action('wp_enqueue_scripts', 'bigmart_woocommerce_scripts', 5); /** * Disable the default WooCommerce stylesheet. */ add_filter('woocommerce_enqueue_styles', '__return_empty_array'); if (!function_exists('bigmart_woocommerce_active_body_class')) { /** * Add 'woocommerce-active' class to the body tag. */ function bigmart_woocommerce_active_body_class($classes) { $classes[] = 'woocommerce-active'; return $classes; } } add_filter('body_class', 'bigmart_woocommerce_active_body_class'); if (!function_exists('bigmart_woocommerce_wrapper_before')) { /** * Before Content. * * Wraps all WooCommerce content in wrappers which match the theme markup. * * @return void */ function bigmart_woocommerce_wrapper_before() { echo '