Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #46057

    Debby S
    Participant

    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.

    #46260

    Christian
    Moderator

    Hey Debby,

    Please choose Keep Sidebar for your Shop Layout (see http://prntscr.com/3kuegu).

    Hope that helps. 🙂

    #46487

    Debby S
    Participant

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

    #46729

    Christian
    Moderator

    Hey Debby,

    Can you give us access to your WordPress admin?

    Thanks.

    #46789

    rausantaella
    Participant

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

    #46793

    rausantaella
    Participant

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

    #47090

    Debby S
    Participant
    This reply has been marked as private.
    #47443

    Alexander
    Keymaster

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

    #47508

    Debby S
    Participant

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

    #47663

    M Y
    Participant

    Hey 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

    #47792

    Debby S
    Participant

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

    #48085

    Rad
    Moderator

    Yes Debby, without quotes.

    elseif ( function_exists( ‘is_product’ ) && is_product() ) {
    $layout = $shop_layout;
    }

    Thank you.

    #48265

    Debby S
    Participant

    Thanks again! Everything looks great now.

    #48346

    Christian
    Moderator

    You’re welcome Debby.

    #49140

    Shannon H
    Participant

    Can I have someone from support help me with this? I can’t figure it out at all..