Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

HTML output of woocommerce product_categories shortcode is not responsive

Home / Forums / Virtue Theme / HTML output of woocommerce product_categories shortcode is not responsive

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
August 15, 2016 at 1:49 pm

Hi!
I noticed that when I use a shortcode on a page, the HTML output is not responsive. I use the shortcode
[product_categories number=”8″ parent=”XX”]

which generates this code (for one product category):

<div class="tcol-md-3 tcol-sm-4 tcol-xs-4 tcol-ss-6 kad_product" style="position: absolute; left: 0px; top: 0px;">
<div class="product-category grid_item product first">
<a href="XXXXX"><img src="XXXXX" width="300" height="150" alt="XXXXX"> <h5>Title of category<mark class="count">(36)</mark> </h5>
</a>
</div>
</div>

On smaller screens (from 600px and lower) this generates 4 images which all stack upon each other.

For instance, the introduction widget on the homepage, has this code, which has perfect responsive behaviour:

<div class="tcol-lg-3 tcol-md-3 tcol-sm-6 tcol-xs-6 tcol-ss-12 home-iconmenu kad-animation homeitemcount2" data-animation="fade-in" data-delay="300" style="opacity: 1; top: 0px;"><a href="XXXXX" target="_blank" title="XXXXX" class="home-icon-item"><img src="XXXXX"> <h4>XXXXX</h4></a></div>

Is there a way to give the product_category shortcode the same bootstrap grid definitions?

  • The forum ‘Virtue Theme’ is closed to new topics and replies.