Astra_Woocommerce::shop_page_products_item_class( Array $classes = '' )

Add products item class on shop page


Description


Parameters

$classes

(Array) (Optional) product classes.

Default value: ''


Return

(array.)


Source

File: inc/compatibility/woocommerce/class-astra-woocommerce.php

		public function shop_page_products_item_class( $classes = '' ) {

			if ( is_shop() || is_product_taxonomy() ) {
				$shop_grid = astra_get_option( 'shop-grids' );
				$classes[] = 'columns-' . $shop_grid['desktop'];
				$classes[] = 'tablet-columns-' . $shop_grid['tablet'];
				$classes[] = 'mobile-columns-' . $shop_grid['mobile'];

				$classes[] = 'ast-woo-shop-archive';
			}
			// Cart menu is emabled.
			$rt_section = astra_get_option( 'header-main-rt-section' );

			if ( 'woocommerce' === $rt_section ) {
				$classes[] = 'ast-woocommerce-cart-menu';
			}

			return $classes;
		}

User Contributed Notes

You must log in before being able to contribute a note or feedback.