- This topic has 15 replies, 2 voices, and was last updated 5 months, 4 weeks ago by
Leo.
-
AuthorPosts
-
February 28, 2017 at 6:41 am #285012
Nicholas
Hi,
Thanks again for a great theme and support, it has been a extremely nice process working with generatepress theme.
I’m having a small issue, I would either like to remove my blog sidebar or change it to a different sidebar all together. The issue I am having is that my Woocommerce page is using the same sidebar as my blog, so if I remove in global settings the blog sidebar it removes my Woocommerce sidebar. I also don’t want to use the same sidebar that I use on my Woocommerce page on my blog page because it is not relevant. So how would I go about removing just the blog sidebar.. or changing its contents completely.
February 28, 2017 at 8:21 am #285072Leo
StaffCustomer SupportHi Nicholas,
Glad you are enjoying GP π
The setting should be in Customizer > Layout > Sidebars > Blog Sidebar Layout.
Let me know if this helps.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 28, 2017 at 9:11 am #285106Nicholas
The problem with setting that to Content(No sidebar) is that it also takes it off my WooCommerce Shop page? Im not sure why it uses the blog layout but it apparently does.
February 28, 2017 at 9:13 am #285107Leo
StaffCustomer Supportahh yes WooCommerce pages are also index pages. Try this CSS then:
.blog .sidebar { display: none; }
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this works.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 28, 2017 at 9:17 am #285112Tom
Lead DeveloperLead DeveloperInstead of using CSS, you should use a filter: https://docs.generatepress.com/article/sidebar-layout/#using-a-function
There’s a lot of examples there, including how to target WooCommerce π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 28, 2017 at 9:21 am #285117Leo
StaffCustomer Supportahh right. If you want to hide sidebar on normal blog page and keep it on WooCommerce, then try this:
add_filter( 'generate_sidebar_layout','tu_custom_category_sidebar_layout' ); function tu_custom_category_sidebar_layout( $layout ) { // If we are on blog page, set the sidebar if ( is_home() ) return 'no-sidebar'; // Or else, set the regular layout return $layout; }
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let us know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 28, 2017 at 9:23 am #285119Nicholas
Leo, that was easy :D. Thank you (def an option for me to use if I can’t figure other option out)
Tom, is there a way with the functions for Woocommerce, to allow that to have a different right sidebar then my blog page? The Woocommerce page having my cart widget etc.. and my blog sidebar showing my recent posts widgets etc?
February 28, 2017 at 9:25 am #285121Leo
StaffCustomer SupportYou’re welcome π
Can try using a plugin like this:
https://en-ca.wordpress.org/plugins/custom-sidebars/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 28, 2017 at 9:29 am #285128Tom
Lead DeveloperLead DeveloperThere’s also Content Aware Sidebars, Easy Custom Sidebars, Display Widgets etc..
Lots of options π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 28, 2017 at 9:34 am #285137Nicholas
Oh okay perfect I will look into some of those plugins, thank you both!
Always impressed by the quick response and support and I have only had the theme for a week π thanks!
February 28, 2017 at 9:35 am #285142Leo
StaffCustomer SupportWe try our best to keep up! π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 23, 2018 at 5:45 am #477914Michael
Hi Leo
How do I completely remove the sidebars?
When I go to pages>screen options there’s no sidebar layout being listed.
I went to disable element to content(no sidebars) save update and refresh.
the sidebar is still there when i view my site.
help pleaseJanuary 23, 2018 at 5:47 am #477915Michael
basically i want to use element or to customise my theme.
January 23, 2018 at 7:46 am #478082Leo
StaffCustomer SupportThe global sidebar layout options are in the customizer: https://docs.generatepress.com/article/sidebar-layout/
If you need additional info, please open a new topic.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 30, 2020 at 10:01 am #1424128Dallas
I wanted to chime in here. I’ve been using GeneratePress now for about 5 years as a premium customer, and I ran into the same situation as others in GeneratePress being perceived as more of a blogger’s template. Nothing could be further from the truth! I am now creating an eCommerce site to begin a dropshipping business. The control for premium customers over the theme and especially WooCommerce is like nothing else out there! I was able to take the advice Leo las mentioned, and was able to easily turn off all of the sidebars with just a simple dropdown selection under Customize->Layouts. If you are not a premium customer, you owe it to yourself to get on board. Thank you Leo, for a great product in GeneratePress/Premium and endless support second to none!
-
AuthorPosts
- You must be logged in to reply to this topic.