Home Forums Basel support forum Extend ajax search results to more than 4 items.

Extend ajax search results to more than 4 items.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #841

    Autoxie
    Participant

    Hey there,
    Can you give me the code to extend the ajax search results to display more than 4 items at a time.
    Thanks 🙂

    #845

    Artem Temos
    Keymaster

    Hi,

    Thank you for creating a topic on our forum.

    Here is a code snippet to place into functions.php file inside the basel-child theme.

    
    function basel_header_block_search() {
    $header_search = basel_get_opt( 'header_search' );
    ?>
    <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' => 4), false ); ?>
    		</div>
    	</div>
    </div>
    <?php
    }
    

    Here you can change value ‘count’ from 4 to your desired number.

Tagged: ,

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

The topic ‘Extend ajax search results to more than 4 items.’ is closed to new replies.