Categories on main shop page have different breakpoints that products

This topic has 8 replies, 2 voices, and was last updated 2 months, 1 weeks ago ago by Martin

  • Avatar: kikjou
    Martin
    Participant
    September 22, 2025 at 14:29

    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
    September 22, 2025 at 16:01

    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
    September 23, 2025 at 16:34

    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
    September 23, 2025 at 17:59

    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
    September 29, 2025 at 07:11

    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
    September 29, 2025 at 08:12

    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
    September 29, 2025 at 16:29

    Hi Luca,

    got it, thank you, worked fine!

    Best regards
    Martin

    Avatar: kikjou
    Martin
    Participant
    September 29, 2025 at 16:29

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

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

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

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