Shop sidebar does not display in the left position

This topic has 7 replies, 2 voices, and was last updated 9 months, 2 weeks ago ago by HmirceaD

  • Avatar: HmirceaD
    HmirceaD
    Participant
    July 17, 2023 at 12:58

    Hello,

    I have a product with the filters added on my subcategory page.

    No matter what settings I change they stay on top of the products instead of floating to the left section of the page.

    Thanks in advance!

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 17, 2023 at 13:02

    Hello, HmirceaD,

    Thank you for contacting us and for using XStore.

    We can’t log in. Please check and provide the correct credentials.

    Kind Regards,
    8theme team

    Avatar: HmirceaD
    HmirceaD
    Participant
    July 17, 2023 at 13:42

    Sorry for that, added new details

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 17, 2023 at 13:52

    Hello, HmirceaD,

    Thank you for your response.

    Please go to Pages > click on Shop > change sidebar position https://prnt.sc/-S95TCRBrkdq https://xstore.helpscoutdocs.com/article/45-8theme-page-post-layout-settings-8theme-post-options

    Kind Regards,
    8theme team

    Avatar: HmirceaD
    HmirceaD
    Participant
    July 17, 2023 at 14:51

    Thanks for the solution.

    I have a problem with this though.

    All of the categories have subcategories that show up on the category page.

    I seems that the padding for the sidebar is added even though the filters is not added.

    Is there a way to display this padding only on subcategory page (where the products are) and not on the category page?

    https://imgur.com/a/wzLqrUB

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 17, 2023 at 16:03

    Hello, HmirceaD,

    We created for you a “Hide sidebar on parent categories“ code snippet with code:

    add_filter('etheme_page_config', function($layout) {
        if ( class_exists('WooCommerce') && is_product_category() ) {
            $cat = get_queried_object();
            // if is not subcategory
              if ( $cat->parent > 0  ) {}
              else {
                  set_query_var('et_cat-sidebar', 'without');
                  $layout['sidebar'] = 'without';
              }
        }
        return $layout;
    });

    Backend result: https://prnt.sc/iwe67zR7kUk2
    This code makes the sidebar disabled on parent categories pages.

    Kind Regards,
    8theme team

    Avatar: HmirceaD
    HmirceaD
    Participant
    July 18, 2023 at 07:24

    It works great, thanks Rose!

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Shop sidebar does not display in the left position’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.