Created
May 25, 2014 15:20
-
-
Save Willem-Siebe/2f2f64012b9cfe36df1a to your computer and use it in GitHub Desktop.
Change the UL for WooCommerce product loop start and end if your are not using a list, but for example Twitter Bootstrap. There are two other ways of doing this, overwriting the WooCommerce template files or using your own templates files. See https://github.com/woothemes/woocommerce/issues/5197.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change the UL for WooCommerce product loop start and end if your are not using a list, but for example Twitter Bootstrap. See https://gist.github.com/Willem-Siebe/2f2f64012b9cfe36df1a. | |
function woocommerce_product_loop_start() { | |
echo '<div class="wsis-wc-product-loop">'; | |
} | |
function woocommerce_product_loop_end() { | |
echo '</div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you shouldn't really overwrite the template files.
To be exact, you can actually change the loop start and loop end by copying the files: wp-content/plugins/woocommerce/templates/loop/loop-start.php into your themes folder -> wp-content/themes/mysuperchildtheme/woocommerce/loop/