Home › Forums › WoodMart support forum › Disable sidebar only on shop page
Disable sidebar only on shop page
- This topic has 10 replies, 4 voices, and was last updated 5 years, 4 months ago by Elise Noromit.
-
AuthorPosts
-
March 16, 2019 at 3:09 am #113265
JohnParticipantHey there, any function to remove the sidebar only on shop page?
Or should i do it via css?
Waiting for your answer thanks.March 16, 2019 at 9:23 am #113286
Elise NoromitMemberHello,
If you remove the sidebar on the shop page, the category page would not have the sidebar as well. You can disable the sidebar in the Theme Settings > Shop > Sidebar and Title > set the full-width window.
Please consider the option “Off-canvas sidebar for the desktop” The sidebar will be hidden and it will be shown on button click
Best Regard
March 16, 2019 at 1:59 pm #113328
JohnParticipantHello again.
So there is no solution only for shop page maybe a function with if page or maybe some css to hide it.
I would like to keep this format with sidebar on left not with off canvas and on shop page to show the main categories. Thanks maybe you can help me all the best.March 16, 2019 at 4:10 pm #113347
newsprinceParticipant@nvr
If you want to hide the sidebar on your shop page but keep it on product category pages add this code to your Custom CSS options
body.post-type-archive-product .main-page-wrapper .sidebar-container{ display: none; }
March 16, 2019 at 4:30 pm #113348
newsprinceParticipantAlso add this to make the shop page products row 100% width now that the sidebar is missing.
body.post-type-archive-product .main-page-wrapper .description-area-after{ max-width:100%; -webkit-flex-basis:100%; -ms-flex-preferred-size:100%; flex-basis:100%; }
March 16, 2019 at 4:57 pm #113351
Elise NoromitMemberHello,
If you have any questions please feel free to contact us.
Best Regards
March 17, 2019 at 6:24 pm #113476
JohnParticipantHey @newsprince really appreciate for your code the first one works flawless but the 2nd seems not to set the full width to 100%.
Any ideas 🙂 thanks in advanced.March 21, 2019 at 12:11 pm #114122
JohnParticipantHey there, any chance to help me with the 2nd code to make the shop page products row 100%?
ThanksMarch 21, 2019 at 1:11 pm #114140
Elise NoromitMemberHello,
Please provide your shop page URL, if your site is under maintenance, please provide your site admin access to the private area.
Best Regards
July 19, 2019 at 7:32 pm #133671
juanrojodesignParticipantHi Elise. Hope all is well.
Was hopeful you have the solution to this. See private message.
July 20, 2019 at 3:22 pm #133737
Elise NoromitMemberHello,
It is not possible to hide the sidebar on the shop page and show on the categories pages and these pages types have the same classes.
I see filters for watches, there is filter by brand http://prntscr.com/ohq3gw
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register