You've already forked wc-bootstrap
Fix single product layout conflicts with WooCommerce CSS
WooCommerce's layout CSS fought Bootstrap's grid in three ways: 1. Float-based two-column layout (width: 48% + float) on div.images and div.summary squeezed content inside our col-lg-6 columns. Reset with float: none; width: 100%. 2. Nested content wrapper (.container + #primary + <main>) from woocommerce_output_content_wrapper doubled up on the parent theme's existing .container. Remove the hooks entirely. 3. Sale badge (position: absolute; top: -.5em; z-index: 9) escaped the image column and blocked breadcrumb clicks. Override to top: 0.5em; z-index: 1 and use gx-* (horizontal-only gutters) to avoid negative margin-top on the .row. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,9 +34,9 @@
|
||||
<div id="product-{{ product_id }}" class="{{ product_class }}">
|
||||
|
||||
{# Two-column layout: images left, summary right #}
|
||||
<div class="row g-4 g-lg-5 mb-5">
|
||||
<div class="row gx-4 gx-lg-5 mb-5">
|
||||
{# Left column: Sale flash + Product images #}
|
||||
<div class="col-lg-6">
|
||||
<div class="col-lg-6 position-relative">
|
||||
{{ do_action('woocommerce_before_single_product_summary') }}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user