Shop and Product page content width (2 posts)

  1. Johnny Bravo
    Posted 2 years ago #


    Please see here http://www.artbyherbie.com/shop/

    So far going great but a slight layout issue. I edited my theme years ago to include a second grey sidebar on the right. In doing so I narrowed down the content area to make space for the 2nd sidebar. I think css editing was involved as i narrowed down the content divs etc

    The woocommerce shop and single page dont pull in this 2nd sidebar, which i usually declare in the template php. The cart and checkout pages DO include the 2nd sidebar so im thinking they either use post.php or a different template.

    I'm happy not having the 2nd sidebar on the shop and product pages, but how can i increase the content area of these pages to cover the gap left over from the 2nd sidebar, ie the original dimension?

    Is this a CSS issue? Can i override this for the WC pages only:
    #content {
    padding:30px 0 30px 0;
    width: 530px
    #content-page {
    padding:30px 0px 30px 50px;

    But now I'm stuck with the 2nd sidebar showing underneath. How can I 'undeclare' the 2nd sidebar now?

    Also, I'd rather woocommerce use a template where the 2nd sidebar is not included on ALL pages and the content width is increased, would this be an easier solution?

  2. Johnny Bravo
    Posted 2 years ago #

    i added:

    <?php include ("sidebar2.php"); ?>

    to woocommerce.php to include the 2nd sidebar for now, the gap looks too ugly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic