WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Trying to remove sidebar from all Woo commerce Pages (45 posts)

  1. kwatts22
    Member
    Posted 11 months ago #

    You can change the margin-left and the width to suite your needs.

  2. zfields
    Member
    Posted 11 months ago #

    Kwatts,

    Any ideas for using the wootique theme?

  3. zfields
    Member
    Posted 11 months ago #

  4. sasha1
    Member
    Posted 11 months ago #

    @kwatts22

    thanks man..super cool answer.
    helped a lot

  5. Cor Sand
    Member
    Posted 10 months ago #

    @kwatts22 You're super! Helped me a lot! Thanks!

    I've copied all the edited files to my own theme putting them in a map called Woocommerce and using the same directory structure as Woocommerce. Now it won't be erased after an update of the Woocommerce plugin.

  6. jmprahm
    Member
    Posted 10 months ago #

    I also need help removing the sidebar in woocommerce! I have removed it from all other pages of my site but I can't seem to figure out how to remove it on my woocommerce pages. I am also very concerned about messing up code since this is my first site build. Any help is appreciated!!!
    If you would like to see the issue on my site: http://www.mommyhips.com/wp
    Thanks.

  7. M. Georgiev
    Member
    Posted 10 months ago #

    Thank you kwatts22, your solution did the trick quickly and cleanly.

  8. accion mutante
    Member
    Posted 9 months ago #

    Hi, I just found the cleanest way to hack it imo.

    There's a line to add in wp-content/themes/my_theme/includes/theme_options.php:

    At line 316, replace

    "options" => array(
    'layout-left-content' => $url . '2cl.png',
    'layout-right-content' => $url . '2cr.png')

    by

    "options" => array(
    'layout-full' => $url . '1c.png',
    'layout-left-content' => $url . '2cl.png',
    'layout-right-content' => $url . '2cr.png')

    You are now able to enable full width in the website's administration in Wootique->Theme Options->Layout Options tab->Main Layout.

    Hope it'll help.

  9. hornellsab
    Member
    Posted 9 months ago #

    I've been trying to figure out the best way to get ride of the sidebar on WC pages, but nothing seems to work. Does anyone have a 100% solution for the problem?

    Here's the link:
    http://www.hornells.com/webbutiken/

    I don't want the sidebar with "pages", "archives" and "categories". In the page I have specified "no sidebar" in the options but that doesn't help when I have stated "webbutiken" as default shop site in the WC admin settings.

    If I don't run it as "standard" the sidebar doesn't appear, so the problem comes when WC treat it as the "main shop" page. And also on the product category pages.

    Hope you understand what I mean. :)

  10. najam ali shahid
    Member
    Posted 8 months ago #

    go to plugin > woocommerce > template > shop > sidebar.php and remove
    <?php
    /**
    * Sidebar
    *
    * @author WooThemes
    * @package WooCommerce/Templates
    * @version 1.6.4
    */

    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

    get_sidebar('shop'); ?>
    and enjoy ... :)

  11. kelbel3abh
    Member
    Posted 8 months ago #

    Hi! I am trying to remove the sidebar from the product page, but leave it on the categories page. I also would like to use a function, so that it doesn't get overwritten with a woocommerce update. Is there a way to make this function given into one for the product pages only? Thx!

    /**
    * WooCommerce
    *
    * Unhook sidebar
    */
    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);

  12. edelm
    Member
    Posted 8 months ago #

    kelbel3abh, You can try this, just find how to detect that you are in products (or the web site home page):

    if (! we're in products or somewhere else we want to show sidebar){
    echo '<style>#main{width:100%} .widget-area{display: none}</style>';
    }
  13. Cohesive Web Design
    Member
    Posted 8 months ago #

    You can take the sidebar out simply by commenting out the information in the woocommerce/templates/shop/sidebar.php file like splashing suggested. Simply put a /* and */ around everything there and it will take it out. We just used it for one of our web design customers. That should fix it and it should work after the Woocommerce 2.0 update.

  14. rhapsodynz
    Member
    Posted 7 months ago #

    Ive read most of the posts but before I try any of the offered solutions on my site, I am using the Parament theme.
    Although it doesnt declare its woocommerce compatible, it has been so far..but I also have the issue of products not going across the page. The first three products do and then its just single column.

    I am totally useless when it comes to coding and need both hands held,( its taken me 5 days to not get blurry photos!) so can someone please let me know which of the above would be most effective with the theme I am using?.
    I would be very grateful! At the rate I am going it will take a year to list 20 items bahahahahaha!

    my site is http://www.rhapsodyskincare.com

    Oh Merry Xmas! :)

  15. rhapsodynz
    Member
    Posted 7 months ago #

    I have a quick update, I was playing around and enabled the continuous scroll in jetpack..that helped, but now I have three product listings across the top, one listing in the middle and three along the bottom.
    It should be three rows of three products. Nothing I have done will get the three rows of three..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic