Astra_Posts_Structure_Markup::astra_woocommerce_banner_layout_1_compatibility()
Layout 1 will also needed for WooCommerce product.
Description
Case: WooCommerce by default adds "Shop" title, breadcrumb on shop/product-archive frontend, but this should also get linked to banner layout 1.
Return
(void)
Source
File: inc/modules/posts-structures/class-astra-posts-structure-markup.php
public function astra_woocommerce_banner_layout_1_compatibility() { // For custom title page. if ( is_shop() ) { add_filter( 'woocommerce_page_title', array( $this, 'astra_archive_custom_title' ) ); } add_filter( 'woocommerce_show_page_title', '__return_false' ); remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 ); remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description' ); remove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description' ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |