boldgrid-theme-framework icon indicating copy to clipboard operation
boldgrid-theme-framework copied to clipboard

[Feature] Add Sidebar Control for WooCommerce Pages

Open jessecowens opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently, the sidebar for the WooCommerce "Shop" page uses the same setting as the "Blog Page." Add a separate control for the sidebar on the shop page.

Describe the solution you'd like Add a Control under Customize > Design > WooCommerce that duplicates the Customize > Design > Blog > Blog Page interface: image

Describe alternatives you've considered Alternatively, we can assume the user wants the same sidebar functionality on their Blog Page as their Shop. This isn't an ideal alternative because some users will want to use a sidebar on their blog, but not their shop, or vice versa.

Additional context This feature is related to user feedback submitted in the BoldGrid Support Forums

jessecowens avatar Nov 11 '20 18:11 jessecowens

function hide_shop_sidebar() {
    if ( is_woocommerce() ) { 
	return false; 
    }
    else {
        return true;
    }
}

add_filter( 'boldgrid/display_sidebar' , 'hide_shop_sidebar' );

joe9663 avatar Feb 07 '22 17:02 joe9663