• Resolved Inbound Horizons

    (@inboundhorizons)


    It looks like WooCommerce 6.5.1 introduced a CSS change that overwrites a WooSwipe style.

    Using WooCommerce 6.5.1 and WooSwipe 2.0.1.

    Problem: Main image in product page shows at 25% width instead of expected 100% width.

    Cause: WooCommerce 6.5.1 introduces the following style rule in /wp-content/plugins/woocommerce/assets/css/woocommerce.css

    .woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
        width: 25%;
        display: inline-block;
    }

    This takes precedence the WooSwipe rule in /wp-content/plugins/wooswipe/wooswipe.css

    .woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
        width: 100%;
    }

    My temporary solution was to mark the width: 100% !important; but it would be nice to have that permanently included in future versions.

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WooCommerce CSS conflict’ is closed to new replies.