Home Forums WoodMart – Premium Template Disable sidebar only on shop page

This topic contains 8 replies, has 3 voices, and was last updated by Elise Noromit Elise Noromit 21 hours, 57 minutes ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #113265

    nvr
    Customer

    Hey there, any function to remove the sidebar only on shop page?
    Or should i do it via css?
    Waiting for your answer thanks.

    #113286

    Hello,

    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

    #113328

    nvr
    Customer

    Hello 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.

    #113347

    newsprince
    Staff

    @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;
    }
    #113348

    newsprince
    Staff

    Also 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%;
    }
    #113351

    Hello,

    If you have any questions please feel free to contact us.

    Best Regards

    #113476

    nvr
    Customer

    Hey @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.

    #114122

    nvr
    Customer

    Hey there, any chance to help me with the 2nd code to make the shop page products row 100%?
    Thanks

    #114140

    Hello,

    Please provide your shop page URL, if your site is under maintenance, please provide your site admin access to the private area.

    Best Regards

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.