Skip to content

Instantly share code, notes, and snippets.

@nfmohit
Last active November 22, 2017 04:58
Show Gist options
  • Select an option

  • Save nfmohit/4cefe356ebacd85d2a3bb9d1fe4fa567 to your computer and use it in GitHub Desktop.

Select an option

Save nfmohit/4cefe356ebacd85d2a3bb9d1fe4fa567 to your computer and use it in GitHub Desktop.
Make Woocommerce product grid into 3 columns with CSS
<?php
add_action('wp_head', 'woo3cols');
function woo3cols() {
echo '<style>.woocommerce ul.products li.product {clear: none !important;width: 32% !important;float: none !important;display: inline-block;vertical-align: top;}</style>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment