-
AuthorPosts
-
May 19, 2014 at 12:11 pm #46057
Not sure if there is a fix for this but on the woocommerce product category pages such as this one, http://www.beegerboxes.com/product-category/pvc-racks/ my right hand sidebar disappears. I would like the sidebar to still show up on those pages if possible. Header and footer are still visible.
May 20, 2014 at 12:04 am #46260Hey Debby,
Please choose Keep Sidebar for your Shop Layout (see http://prntscr.com/3kuegu).
Hope that helps. 🙂
May 20, 2014 at 11:27 am #46487Sorry, that didn’t work. I can see the sidebar on the shop pages just fine but not inside the product category pages or when viewing individual products.
May 21, 2014 at 2:08 am #46729Hey Debby,
Can you give us access to your WordPress admin?
Thanks.
May 21, 2014 at 5:25 am #46789Exactly the same happens to me. It doesn’t appear in the code, even (it’s not set as display:none). It only happens in the Category page.
May 21, 2014 at 5:46 am #46793I solved this. In the file wp_sidebar.php, I changed
if ( function_exists( 'is_shop' ) && is_shop() )
for
if ( function_exists( 'is_shop' ) && (is_shop() || is_product_category() ) )
It seems WooCommerce doesn’t include Category pages (archives) as Shop (that’s only the main page). Other way would be to change is_shop() for is_woocommerce();
May 21, 2014 at 7:27 pm #47090This reply has been marked as private.May 22, 2014 at 2:14 pm #47443Hi there,
Right now X treats the shop categories and tags as “Archive” pages. You can configure the sidebar settings in Customizer for “Archive”
It’s possible to change this with some custom development, as pointed out by Rausantaella in the post above (http://theme.co/x/member/forums/topic/sidebar-disappears-on-woocommerce-category-pages/#post-46793)
May 22, 2014 at 4:41 pm #47508I added the code suggested above but the sidebar is appearing underneath the products now such as on this page http://www.beegerboxes.com/product-category/pvc-racks/
Also, it does not show up on the product page itself.
May 23, 2014 at 2:04 am #47663Hey Debby, you also have to change the line 14
in woocommerce.php (inside your stack-folder)From
<div class=”<?php x_integrity_main_content_class(); ?>” role=”main”>
to
<div class=”x-main left” role=”main”> (or x-main right for sidebar on the right side).Cheers, MY
May 23, 2014 at 11:04 am #47792Thanks everyone for all your help! Category pages now have the sidebar and it displays correctly. Is there a way to get the sidebar on the product pages such as this one, http://www.beegerboxes.com/product/15-tub-6-quart/ , also?
Should I be changing this line in wp-sidebar.php?
elseif ( function_exists( ‘is_product’ ) && is_product() ) {
$layout = ‘full-width’;
}to
elseif ( function_exists( ‘is_product’ ) && is_product() ) {
$layout = ‘$shop_layout’;
}to accomplish this?
May 24, 2014 at 3:04 pm #48085Yes Debby, without quotes.
elseif ( function_exists( ‘is_product’ ) && is_product() ) { $layout = $shop_layout; }
Thank you.
May 25, 2014 at 11:43 am #48265Thanks again! Everything looks great now.
May 25, 2014 at 9:11 pm #48346You’re welcome Debby.
May 28, 2014 at 3:24 am #49140Can I have someone from support help me with this? I can’t figure it out at all..
-
AuthorPosts