Created
November 18, 2019 14:51
-
-
Save patilvikasj/4801391a361c5b0644f558856db674c1 to your computer and use it in GitHub Desktop.
Disable off canvas filter on WooCommerce shop page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php // Do not add this line in your theme's functions.php | |
| add_filter( 'astra_get_option_shop-off-canvas-trigger-type', function( $value ) { | |
| if( function_exists( 'is_shop' ) && is_shop() ) { | |
| return 'disable'; | |
| } | |
| return $value; | |
| }, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment