Categories on main shop page have different breakpoints that products

Solved7 replies2 participantsUpdated by Martin

  • Avatar: kikjou
    Martin
    Participant

    Hello,

    on the main shop page, the categories behave differently from the products on smaller screen sizes. This becomes particularly apparent on tablet sizes where the products have already reordered into 2 columns, but the categories are only shrunk and create text overflow etc.

    You can see it clearly in the screenshot.

    I think the categories should break the same way as the products, or is there a reason for that difference?

    I use the native xstore shop archive without elementor.

    Best regards
    Martin

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.

    7 Answers

    Avatar: Justin
    Luca Rossi
    Support staff

    Hi @Martin,

    Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:

    
    @media (min-width: 768px) and (max-width: 1024px){
        .category-grid.col-sm-3 {
            width: 50%;
        }
    }
    

    Kind regards,
    The 8Theme Team

    Avatar: kikjou
    Martin
    Participant

    Hello,

    thank you, that did the job. I think this would be a worthy inclusion into core features.

    But I also discovered a slight problem with the borders on mobile (see screenshot).

    Thank you
    Martin

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff

    Dear @Martin,

    It’s default bottom margin from WooCommerce plugin.

    To remove that margin, please also add this custom CSS code:

    @media only screen and (max-width: 480px) {
        .products-grid .product-category {
            margin-bottom: 0 !important;
        }
    }

    Hope it helps!

    Avatar: kikjou
    Martin
    Participant

    Hi,
    I think there was a misunderstanding. I don’t want to remove the bottom margin, but the middle vertical margin should close up to the bottom margin.

    Thank you
    Martin

    Avatar: Justin
    Luca Rossi
    Support staff

    Hi @Martin,

    The bottom margin of the category items is causing the border issue.

    Please add the custom CSS code provided above; this will resolve the problem.

    https://prnt.sc/dbHiypARIR9W

    Best regards,
    8Theme Team

    Avatar: kikjou
    Martin
    Participant

    Hi Luca,

    got it, thank you, worked fine!

    Best regards
    Martin

    Avatar: kikjou
    Martin
    Participant

    Thanks for the support! My topic “Categories on main shop page have different breakpoints that products” has been successfully resolved.

The issue related to '‘Categories on main shop page have different breakpoints that products’' has been successfully resolved, and the topic is now closed for further responses