Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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

    #482922

    Dear 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

    #482982

    Hey!

    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,
    Basilis

    #483009

    Dear 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

    #483434

    Hey!

    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,
    Ismael

    #483580

    Thank you, Ismael.

    I will keep a watchful eye on the product pages and let you know immediately if this issue re-occurs.

    Regards,

    Emin

    #484087

    Hi!

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Column and Product Count’ is closed to new replies.