• Can anyone tell me how to disable the following:

    // Override theme default specification for product # per row

    function loop_columns() {

    return 2; // 2 products per row

    }

    add_filter(‘loop_shop_columns’, ‘loop_columns’, 999);

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter suddy12007

    (@suddy12007)

    t

    This is Shoeb B-)

    Go ahead with this code

    // Change number or products per row to 2
    add_filter('loop_shop_columns', 'loop_columns');
    if (!function_exists('loop_columns')) {
    	function loop_columns() {
    		return 2; // 2 products per row
    	}
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable PHP function’ is closed to new replies.