Product Category Columns not filling width of page
-
I just did the 2.6.1 updater for Woo, and the 4.5.3 updater for WP. Suddenly my category page shop columns aren’t diplaying full width on desktop displays. I have four columns, but they’re displaying as 2 columns, but on the left side of the page. I reduce the screen to mobile display and it becomes 2 columns and is full-width there.
I tried changing the css so that
.woocommerce-page ul.products li.product
has a smaller width than the 22.05% that is by default. That only made the columns narrower and still on the left.I have the WooCommerce Products Per Page plug-in installed and that gives a shop column choice in the dashboard. I wondered if that was a conflict with the new update, so I deactivated it. No change there either. So I know it’s not the plug-in. I then tried changing the shop columns in the plug-in to 5, and I got two items in a first row, then three items in a second row. I tried a setting of 3 and got one on the first row, two in the second row. So my rows are getting split into two parts, and are flush left. And when I try 3 or 5, my li.product margins disappear so the products are touching each other.
I wondered if I had an out-of-date modified template, but the new update didn’t say I did. I checked my modified
content-product_cat.php
file I had this code in there…// Store column count for displaying the grid if ( empty( $woocommerce_loop['columns'] ) ) $woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );
so I took it out, and still no changes. So I’m stumped as to why I’m getting only two columns.
I’ve turned off the plug-in and removed the above code from my template. Still 2 columns and to the left.
Any ideas someone could give would be appreciated. Thanks!
- The topic ‘Product Category Columns not filling width of page’ is closed to new replies.