ASTRA_Ext_WooCommerce_Markup::shop_page_styles()
Shop page template.
Description
Return
(void) if not a shop page.
Source
File: addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php
public function shop_page_styles() { $wp_doing_ajax = wp_doing_ajax(); if ( ! ( is_shop() || is_product_taxonomy() ) && ! $wp_doing_ajax ) { return; } // Page Title. if ( ! astra_get_option( 'shop-page-title-display' ) ) { add_filter( 'woocommerce_show_page_title', '__return_false' ); } // Breadcrumb. if ( ! astra_get_option( 'shop-breadcrumb-display' ) ) { remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 ); } // Toolbar. if ( ! astra_get_option( 'shop-toolbar-display' ) ) { remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 ); remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 ); } // Off Canvas. if ( 'disable' != astra_get_option( 'shop-off-canvas-trigger-type' ) ) { add_action( 'woocommerce_before_shop_loop', array( $this, 'off_canvas_button' ), 11 ); if ( astra_get_option( 'shop-active-filters-display' ) ) { add_action( 'woocommerce_before_shop_loop', array( $this, 'off_canvas_applied_filters' ), 40 ); } } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |