[Resolved] Disable sidebar in shop page (Woocommerce)

Home Forums Support Disable sidebar in shop page (Woocommerce)

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1431403
    Francisco

    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

    #1431677
    David
    Staff
    Customer Support

    Hi there,

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

    #1431689
    Francisco

    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

    #1461551
    Jhinuk

    Hi Francisco,

    Would you mind sharing the custom CSS you used?

    Thank you,

    JC.

    #1461574
    Elvin
    Customer Support

    Hi JC,

    I’ve answered you topic related to this. Please check it out.

    https://generatepress.com/forums/topic/how-to-remove-sidebar-on-shop-page/#post-1461572

    A wise man once said:
    "Have you cleared your cache?"

    #1461597
    Francisco

    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>

    #1461610
    Jhinuk

    Thank you!

    JC.

    #1461612
    Elvin
    Customer Support

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

    A wise man once said:
    "Have you cleared your cache?"

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.