If you want to change the number of products that display on every page in Product list, example from 8 products in every page to 12 products in every page, please following our guide:
Please go to the file wp-content\themes\OUR_THEME\lib\woocoommerce-hook.php and find:
1
2
3
4
5
6
7
8
9
10
11
12
13
|
function ya_woocommerce_catalog_ordering() {
global $data;
parse_str($_SERVER['QUERY_STRING'], $params);
$query_string = '?'.$_SERVER['QUERY_STRING'];
// replace it with theme option
if($data['woo_items']) {
$per_page = $data['woo_items'];
} else {
$per_page = 8;
}
|
=> Edit $per_page = 8; to your number
and find:
1
|
$html .= '<span><a>'.esc_html__('8', 'shoppystore').'</a></span>';
|
=> Edit 8 to your number
and find:
1
2
3
4
5
6
7
8
9
10
11
|
function ya_loop_shop_per_page()
{
global $data;
parse_str($_SERVER['QUERY_STRING'], $params);
if($data['woo_items']) {
$per_page = $data['woo_items'];
} else {
$per_page = 8;
}
|
=> Edit $per_page = 8; to to your number
Hope this help.
Thanks