mirror of
https://github.com/10h30/ycb.vn.git
synced 2026-07-11 18:56:17 +09:00
Change product loop column to 3
This commit is contained in:
+9
-1
@@ -405,4 +405,12 @@ function themeprefix_cpt_layout() {
|
|||||||
return 'sidebar-content';
|
return 'sidebar-content';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_filter( 'genesis_site_layout', 'themeprefix_cpt_layout' );
|
add_filter( 'genesis_site_layout', 'themeprefix_cpt_layout' );
|
||||||
|
|
||||||
|
// Change number or products per row to 3
|
||||||
|
add_filter('loop_shop_columns', 'loop_columns');
|
||||||
|
if (!function_exists('loop_columns')) {
|
||||||
|
function loop_columns() {
|
||||||
|
return 3; // 3 products per row
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user