Nand Lal's Profile
Layers User
7 points

Questions
0

Answers
1

  • Layers User Asked on February 10, 2016 in Customization.

    Hi,

    Add this below code in child’s function.php  file

     

    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 3;
    }

     

    • 2918 views
    • 2 answers
    • 0 votes