- This topic has 7 replies, 4 voices, and was last updated 8 years ago by
Leo.
-
AuthorPosts
-
March 13, 2016 at 6:17 pm #179060
John
Hi,
I am an old-school web developer perl/mysql/html. I am moving into the new century and learning to develop sites with WP and WooCommerce and of course, GeneratePress. I bought the plugin package and this has made my job so much easier.
Here is my question, I installed WC and it generated several pages automatically, shop, show products, cart and checkout. My problem is I would like the shop page to have no sidebar. I edited the ‘shop’ page and changed the page template accordingly, but the page still shows the sidebar. I looked around this forum and saw some references to an upcoming updated version or using an add_filter but I am a little lost.
WP 4.4.2
GP Theme 1.3.28
GP Premium 1.2.79
WC 2.5.5
Thanks in advance,
John N.March 13, 2016 at 7:12 pm #179062John
I may have figured it out. I installed generate_simple_php and added the add_filter snippet found in this forum that returns ‘no-sidebar’ if page is woocommerce and it works. Imagine that. I was concerned about just adding the code to functions.php without creating a child theme and losing changes with theme updates. This was very clean.
March 13, 2016 at 7:43 pm #179073Tom
Lead DeveloperLead DeveloperThat’s perfect – glad you found the solution and it worked 🙂
March 13, 2016 at 8:41 pm #179083John
The cart and checkout pages are not affected by this add_filter code, but changing the template by editing the page does work. So shop and show_product are changed with the add_filter code and cart and checkout pages are changed with editing those 2 pages. Weird. Thanks for answering these posts, you have a great product and great service.
March 13, 2016 at 10:28 pm #179093Tom
Lead DeveloperLead DeveloperThose are physical pages, so you can change the layout setting while editing the page: https://generatepress.com/knowledgebase/choosing-sidebar-layouts/#metabox
March 22, 2018 at 2:18 pm #526860Melynda
I’m looking for a solution to the same problem. I want to get rid of sidebars on all WooCommerce product pages.
Can you please give me clearer instructions? I’m not sure what you did. Can’t find a “generate simple php” plugin. Any help you can offer is most appreciated.
March 22, 2018 at 3:19 pm #526978John
Melynda,
Tom has it much easier now. Go to your Customizer>Layout>WooCommerce and in the SHOP section select ‘No Sidebars’ and you should be done.March 22, 2018 at 3:52 pm #527046Leo
StaffCustomer SupportYup this post is old.
If you still need help please open a new topic.
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.