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( 'arya-multipurpose-woocommerce-style', $inline_font ); } /** * Add 'woocommerce-active' class to the body tag. * * @param array $classes CSS classes applied to the body tag. * @return array $classes modified to include 'woocommerce-active' class. */ public function active_body_class( $classes ) { $classes[] = 'woocommerce-active'; return $classes; } /** * Products per page. * * @return integer number of products. */ public function products_per_page() { return 12; } /** * Product gallery thumnbail columns. * * @return integer number of columns. */ public function thumbnail_columns() { return 4; } /** * Removes default woocommerce breadcrumb. * * @return void. */ function remove_breadcrumbs() { remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 ); } } new Arya_Multipurpose_Woocommerce();