Home Forums Basel support forum ajax search not showing view all products link

ajax search not showing view all products link

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9127

    yita33
    Participant

    Hello,
    I have updated the theme to the latest version 2.10.0
    if I understand right the changelog, now it should add a link to the ajax search to view more results, but it doesnt.
    You can check it here:
    http://www.webchange.es/alupe-vieja/

    I also was given this code to show more products oh these results (to modify functions.php) and I would want to know if I must modify it to suit this latest version:

    `function basel_header_block_search() {
    $header_search = basel_get_opt( ‘header_search’ );
    ?>
    <div class=”search-button basel-search-<?php echo esc_attr( $header_search ); ?>”>

    <i class=”fa fa-search”></i>

    <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’ => 16), false ); ?>
    </div>
    </div>
    </div>
    <?php
    }

    #9133

    Artem Temos
    Keymaster

    Hello,

    Yes, try to add this code to your functions.php file in the child theme

    	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' => 15), false ); ?>
    					</div>
    				</div>
    			</div>
    		<?php
    	}

    Regards

    #9135

    yita33
    Participant

    But there is no link to view more products, as you say in the changelog?

    #9136

    Artem Temos
    Keymaster

    Actually, it exists on your website. See screenshot

    Regards

    #9179

    yita33
    Participant

    Sorry, I was having problems with the cache, the link is there!
    Thanks!

    #9180

    Artem Temos
    Keymaster

    Great, you are welcome 🙂

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

The topic ‘ajax search not showing view all products link’ is closed to new replies.