Skip to content

Instantly share code, notes, and snippets.

@fovoc
Created April 18, 2015 11:50
Show Gist options
  • Save fovoc/1a75131326af85bb9de9 to your computer and use it in GitHub Desktop.
Save fovoc/1a75131326af85bb9de9 to your computer and use it in GitHub Desktop.
Shoestrap 3 Woo child - full width shop page
<?php
/**
* Full width layout for main shop page
*
* How to use:
* Save this file as `wp-contents/mu-plugins/full-width-shop-page.php`
*/
function full_width_shop_page() {
if ( is_shop() ) {
global $ss_layout;
$ss_layout->set_layout( 0 );
add_filter( 'shoestrap_display_primary_sidebar', '__return_false', 999 );
add_filter( 'shoestrap_display_secondary_sidebar', '__return_false', 999 );
}
}
add_action( 'wp','full_width_shop_page' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment