Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add Sidebar Control for WooCommerce Pages #316

Open
jessecowens opened this issue Nov 11, 2020 · 1 comment
Open

[Feature] Add Sidebar Control for WooCommerce Pages #316

jessecowens opened this issue Nov 11, 2020 · 1 comment

Comments

@jessecowens
Copy link
Member

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

@joe9663
Copy link

joe9663 commented Feb 7, 2022

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants