Site logo

Archived topic

Disable sidebar in shop page (Woocommerce)

7 replies · Started by Francisco on September 4, 2020

Viewing posts 1–8 of 8

Hi,

I am trying to disable the sidebar in shop page and I can´t!

I have disabled it in the page admin. But in the front end I still see it.

The strange thing is that in the HTML code I can´t find the PAGE ID as Wordpress shows in all the entries or pages to add a custom CSS code

What should I do?

Thanks,
Francisco

Hi there,

did you use a Site from the library to set up your site ?

Hi!

yes.

Don´t worry I have finally added a custom CSS inside the "HTML block " that hides the right sidebar and expands primary sidebar to 100%

Thanks!
Francisco

Hi Francisco,

Would you mind sharing the custom CSS you used?

Thank you,

JC.

Hi!!

I can´t remember in which site I had this problem.

But I had inserted something like this as an HTML BLOCK in that page

<style>
.ID_SIDEBAR {
display: none !important;
}

.ID_main_div {
width: 100% !important;
}

</style>

Thank you!

JC.

@Francisco Awesome, yeah that will work assuming you know the right selectors.

@Jhinuk

You have to know the unique selector for your shop page if you want the CSS to apply exclusively on the shop page only. :)

This archived topic is closed to new replies.