Home Forums Basel support forum Number of items in search result

Number of items in search result

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8184

    jjuana
    Participant

    I want to know how can I change the number of items displayed when you search a product.

    Thanks

    #8195

    Artem Temos
    Keymaster

    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

    #8196

    jjuana
    Participant

    Sorry for the question but, in the functions.php this function doesn’t exist.

    How can I update the child theme?

    #8197

    Artem Temos
    Keymaster

    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

Viewing 4 posts - 1 through 4 (of 4 total)