Reputation: 641
I have installed WooCommerce on my page, and I'm displaying features posts using shortcode inside of a php file.
<?php echo do_shortcode('[featured_products per_page="3" columns="3"]'); ?>
It displays features products, but the problem is that its displaying them in UL and LI elements. Is there a way I can change how its displayed(for example displaying them inside of a bootstrap row and columns), so it can match the structure of my front end.
Upvotes: 2
Views: 4174
Reputation: 1159
Yes you can easily do it. Please follow the below instructions
wp-content/plugins/woocommerce/templates
from woocommerce plugin folder and paste these files in the woocommerce folder of your theme.loop-start.php
and loop-end.php
remove <ul>
and place your bootstrap divs here.content-product.php
to change the <li>
to your bootstrap columns.Upvotes: 4