-
AuthorPosts
-
August 4, 2015 at 4:10 pm #482784
Dear Support,
I noticed that sometimes, the number of columns in the shop overview page is one less than the “Column count” setting in woocommerce -> Products -> Display
Please, how can this be solved? OR, kindly show me how to override this setting in code
Regards,
Emin
August 4, 2015 at 7:43 pm #482922Dear Support,
As a follow up to the issue above, I noticed that even when I use the standard code below, the number of columns does not change to 2, for example:
add_filter( ‘loop_shop_columns’, ‘wc_loop_shop_columns’, 1, 10 );
/*
* Return a new number of maximum columns for shop archives
* @param int Original value
* @return int New number of columns
*/
function wc_loop_shop_columns( $number_columns ) {
return 2;
}Please, look into this issue very critically
Regards,
Emin
August 4, 2015 at 9:29 pm #482982Hey!
Please do add the following and let us know if it worked.
add_filter( 'loop_shop_columns', 'wc_loop_shop_columns', 1, 10 ); /* * Return a new number of maximum columns for shop archives * @param int Original value * @return int New number of columns */ function wc_loop_shop_columns( $number_columns ) { return 2; }
Regards,
BasilisAugust 4, 2015 at 9:49 pm #483009Dear Basilis,
The code you asked to add is exactly the code I added before.
It did not work.
I suspect this code is always overridden by the enfold settings in woocommerce -> settings –> products –> Display –> [Columns and Product Count].My problem now is how to disable or override the settings in woocommerce -> settings –> products –> Display –> [Columns and Product Count].
Kindly assist.
Regards,
Emin
August 5, 2015 at 3:59 pm #483434Hey!
I can’t reproduce the issue on my installation. The Column Count settings is working as expected. Can you please provide a link to the actual page with the issue? And let us know the current Column Count setting.
Best regards,
IsmaelAugust 5, 2015 at 8:22 pm #483580Thank you, Ismael.
I will keep a watchful eye on the product pages and let you know immediately if this issue re-occurs.
Regards,
Emin
August 6, 2015 at 6:47 pm #484087Hi!
alright. We wait for a new ticket from you if you need help again. Just post a link of this thread into your new ticket as a reference.
Regards,
Andy -
AuthorPosts
- The topic ‘Column and Product Count’ is closed to new replies.