Last active
April 15, 2019 09:57
-
-
Save deeman/eaf5f62854cfbd05adbf55590e322d00 to your computer and use it in GitHub Desktop.
WooCommerce - Change number of Columns per row
This file contains hidden or 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
| /** | |
| * Example: Change number or products per row to 4 | |
| */ | |
| add_filter('loop_shop_columns', 'loop_columns', 999); | |
| if (!function_exists('loop_columns')) { | |
| function loop_columns() { | |
| return 4; // 4 products per row | |
| } | |
| } | |
| // Ref. | |
| // https://docs.woocommerce.com/document/change-number-of-products-per-row/ | |
| Med vänlig hälsning | |
| Daniel Andersson | |
| TFN: +46 (0)73 919 56 51 | |
| @: da.jkpg@gmail.com, hej@daitcon.com | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment