Skip to content

Instantly share code, notes, and snippets.

@Willem-Siebe
Created May 25, 2014 15:20
Show Gist options
  • Save Willem-Siebe/2f2f64012b9cfe36df1a to your computer and use it in GitHub Desktop.
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.
// 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>';
}
@simkne
Copy link

simkne commented Nov 21, 2014

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment