Astra_Woocommerce::replace_store_sidebar( String $sidebar )

Assign shop sidebar for store page.


Description


Parameters

$sidebar

(String) (Required) Sidebar.


Return

(String) $sidebar Sidebar.


Source

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

		public function replace_store_sidebar( $sidebar ) {

			if ( is_shop() || is_product_taxonomy() || is_checkout() || is_cart() || is_account_page() ) {
				$sidebar = 'astra-woo-shop-sidebar';
			} elseif ( is_product() ) {
				$sidebar = 'astra-woo-single-sidebar';
			}

			return $sidebar;
		}

User Contributed Notes

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