Home / Forums / You Theme Support / Sidebar only on woocommerce category page, not on single product page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts

  • goingonlinenl
    Participant

    Hi,

    When customize the default page format for woocommerce, and add a sidebar to it, it does this for all the woocommerce pages.

    How can i just add a sidebar for the category pages and not for single product pages?

    Hi @goingonlinenl

    The best option is to add CSS to hide the sidebar on single product pages.

    You can copy and paste this CSS into Theme Options > Custom CSS:

    .single.single-product .sidebar{
    display: none;
    }

    Regards,


    goingonlinenl
    Participant

    Thank you, but this doesn’t work as i hoped.

    The conent still ‘believes’ the sidebar is there and is aligned to the right: http://yenrfashion.goingonline.nl/product/t-shirt-prestine/

    Is there a way to exclude the sidebar via html/php?

    Hi @goingonlinenl

    That will require a lot of changes unless you create a dedicated templated for the single product page.

    Try to add this CSS to force the content page to go fullwidth, covering the space supposedly for the sidebar.

    .single.single-product .large-8 {
        width: 100%;
    }

    Regards,

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

You must be logged in to reply to this topic.