• I created a woocommerce.php file and replaced my theme’s loop with//
    <?php woocommerce_content(); ?>
    It worked perfectly! My sidebar was then placed in the correct position.

    My issue is what it seems to be an invisible sidebar…
    I would like my WooCommerce pages to be full width.
    But each page template seems to have a huge gap on the right hand side (where my sidebar once was)

    I basically would really LOVE to find out what I can do in order to make all Woo Pages full width.

    I will paste whatever code needed in a pastebin, just not sure which, so please let me know!

    https://www.ads-software.com/extend/plugins/woocommerce/

Viewing 14 replies - 31 through 44 (of 44 total)
  • Kwatts,

    Any ideas for using the wootique theme?

    @kwatts22

    thanks man..super cool answer.
    helped a lot

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

    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: https://www.mommyhips.com/wp
    Thanks.

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

    accion mutante

    (@accion-mutante)

    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.

    hornellsab

    (@hornellsab)

    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:
    https://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. ??

    najam ali shahid

    (@najam-ali-shahid)

    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 … ??

    kelbel3abh

    (@kelbel3abh)

    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);

    edelm

    (@edelm)

    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>';
    }

    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.

    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 https://www.rhapsodyskincare.com

    Oh Merry Xmas! ??

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

Viewing 14 replies - 31 through 44 (of 44 total)
  • The topic ‘Trying to remove sidebar from all Woo commerce Pages’ is closed to new replies.