Advertisement
fauzanjeg

Change WooCommerce Product Grid Column Number

Feb 22nd, 2022
1,624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. /* Change WooCommerce Product Grid Column Number */
  2. if ( ! function_exists( 'loop_columns' ) ) {
  3.     function loop_columns() {
  4.         return 4; // 4 products per row
  5.     }
  6. }
  7. add_filter( 'loop_shop_columns', 'loop_columns', 999 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement