Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to change number of products displayed per row in WordPress

    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 249
    Comment on it

    WooCommerce- CHANGING THE NUMBER OF PRODUCTS DISPLAYED PER ROW

    Hello Readers !
    There is no rocket science used for changing the number of products displayed per row below I am providing simple and short method.

    Here, I am using loop_shop_columns filter and will return our own value (in this case 5) in our own function.

    <?php
    //change the number of products per row to 5
    add_filter('loop_shop_columns', 'loop_columns');
    if (!function_exists('loop_columns')){
    function loop_column(){
    return 5;
    }
    }
    ?>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: