3, 'columns' => 3, ) ); return $args; } add_filter( 'woocommerce_output_related_products_args', 'rivet_woocommerce_related_products_args' ); if ( ! function_exists( 'rivet_woocommerce_product_columns_wrapper' ) ) { /** * Product columns wrapper * * @return void */ function rivet_woocommerce_product_columns_wrapper() { $columns = rivet_woocommerce_loop_columns(); echo '
'; } } add_action( 'woocommerce_before_shop_loop', 'rivet_woocommerce_product_columns_wrapper', 40 ); if ( ! function_exists( 'rivet_woocommerce_product_columns_wrapper_close' ) ) { /** * Product columns wrapper close * * @return void */ function rivet_woocommerce_product_columns_wrapper_close() { echo '
'; } } add_action( 'woocommerce_before_shop_loop', 'rivet_woocommerce_sorting_wrap', 3 ); if ( ! function_exists( 'rivet_woocommerce_sorting_wrap' ) ) { /** * Sorting wrapper * * @return void */ function rivet_woocommerce_sorting_wrap() { echo '
'; } } add_action( 'woocommerce_before_shop_loop', 'rivet_woocommerce_sorting_wrap_close', 30 ); if ( ! function_exists( 'rivet_woocommerce_sorting_wrap_close' ) ) { /** * Sorting wrapper close * * @return void */ function rivet_woocommerce_sorting_wrap_close() { echo '
'; } } add_action( 'woocommerce_after_shop_loop', 'rivet_woocommerce_product_columns_wrapper_close', 40 ); /** * Remove default WooCommerce wrapper */ remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); if ( ! function_exists( 'rivet_woocommerce_wrapper_before' ) ) { /** * Before Content * Wraps all WooCommerce content in wrappers which match the theme markup * * @return void */ function rivet_woocommerce_wrapper_before() { ?>
'cart', 'title' => esc_html__( 'View your shopping cart', 'rivet' ) ) ); ?> cart->get_cart_subtotal() ); ?> cart->get_cart_contents_count(), 'rivet' ), WC()->cart->get_cart_contents_count() ) );?>