I’ve done some customisation to my site to include an accordion displaying Woocommerce product attributes below the short product description. Unfortunately, they are running off of the page, and I cannot find the appropriate CSS to reign it back in. Could you help point me in the correct direction?
At the moment, this is being done on a local dev machine, and not live anywhere. However, I have posted the code that I’ve included in my template below, and attached a screenshot of the behaviour.
Thanks in advance
<?php
$fabricvalues = get_the_terms( $product->id, 'pa_fabric');
$carevalues = get_the_terms( $product->id, 'pa_product-care');
?>
<section class="container"><div class="row">
<div class="spb_accordion spb_content_element" data-active="">
<div class="spb_wrapper spb-asset-content spb_accordion_wrapper ">
<div class="spb_accordion_section group">
<h4><a href="#fabric" id="fabric">Fabric</a></h4>
<div class="row-fluid">
<section class="container"><div class="row">
<div class="spb_content_elementspb_text_column">
<?php
foreach ( $fabricvalues as $fabricvalue ) {
echo $fabricvalue->name;
} ?>
</div>
</div>
</div>
</div>
</div>
</div>
<section class="container"><div class="row">
<div class="spb_accordion spb_content_element" data-active="">
<div class="spb_wrapper spb-asset-content spb_accordion_wrapper ">
<div class="spb_accordion_section group">
<h4><a href="#care" id="fabric">Product Care</a></h4>
<div class="row-fluid">
<section class="container"><div class="row">
<div class="spb_content_elementspb_text_column">
<?php
foreach ( $carevalues as $carevalue ) {
echo $carevalue->name;
} ?>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
Attachments:
You must be
logged in to view attached files.