Centrally aligned related and cross sell products in case there are only three of them.

This topic has 4 replies, 2 voices, and was last updated 1 years ago ago by Rose Tyler

  • Avatar: ziga32
    ziga32
    Participant
    November 18, 2024 at 22:33

    Sometimes there are only 3 products in my Related products (or cross sell products)
    https://dev.flamula.si/zari/elektricni-zari/elektricni-zar-flamula-elq3000/

    In case there are only three, is it possible for them to be centrally aligned?
    https://tinyurl.com/24pqwunx

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 19, 2024 at 08:44

    Hello,

    Thank you for reaching out to us.

    There is no such option, but you can try to use custom CSS code:

    /* Center align related and cross_sells products if there are 3 items */
    @media (min-width: 768px) {
        .elementor-widget-woocommerce-product-etheme_related .swiper-wrapper,
        .elementor-widget-woocommerce-product-etheme_cross_sells .swiper-wrapper {
            display: flex;
            justify-content: center;
        }
    }

    display: flex; and justify-content: center;: These properties will center the items within the container.

    Best Regards,
    8Theme’s Team

    Avatar: ziga32
    ziga32
    Participant
    November 19, 2024 at 11:16

    works flawlesly, thank you!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 19, 2024 at 11:17

    Hello,

    You’re welcome!

    Best Regards,
    8Theme’s Team

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

The issue related to '‘centrally aligned related and cross sell products in case there are only three of them.’' 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.