Changing the number of columns of the WooCommerce shop page is not saved
-
I was trying to change the number of columns per row in the shop page of WooCommerce on my self-hosted website, which runs a child theme of Neve, through Appearance->Customization->WooCommerce->Product Catalog->Products per row. When I change the number, the desired change takes place, however, when I move to the next page of the catalog or leave the shop page and return back(in which the page reloads in both cases) the page returns to its default of 2 products per catalog. I tried using the following snippet, which I found on the internet, in my functions.php file, but to no avail.
add_filter( ‘loop_shop_columns’, ‘wc_loop_shop_columns’, 1, 10 ); function wc_loop_shop_columns( $number_columns ) { return 4; }
My functions.php doesn’t contain any other function that has to do with the shop page.
- The topic ‘Changing the number of columns of the WooCommerce shop page is not saved’ is closed to new replies.