Number of items in search result
-
I want to know how can I change the number of items displayed when you search a product.
Thanks
Hello,
Thank you for choosing our theme and contacting us.
Try to override the following function in your child theme. Just place the code to the functions.php
file in the child theme and change the product number (now it is set to 10)
function basel_header_block_search() {
$header_search = basel_get_opt( 'header_search' );
if( $header_search == 'disable' ) return;
?>
<div class="search-button basel-search-<?php echo esc_attr( $header_search ); ?>">
<a href="#">
<i class="fa fa-search"></i>
</a>
<div class="basel-search-wrapper">
<div class="basel-search-inner">
<span class="basel-close-search"><?php esc_html_e('close', 'basel'); ?></span>
<?php basel_header_block_search_extended( false, true, array('thumbnail' => 1, 'price' => 1, 'count' => 10), false ); ?>
</div>
</div>
</div>
<?php
}
Kind Regards
XTemos Studio
Sorry for the question but, in the functions.php this function doesn’t exist.
How can I update the child theme?
We meant that you need to place it there. By doing so, you will override parent theme function basel_header_block_search
and don’t loose any changes after update.
Regards