Forums Forums Search & Filter Pro Little improvements

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #188314

    Dear Trevor,
    I need your help again. You helped me in this topic before:
    http://demo.designsandcode.com/sfpro-movie-reviews/#support.searchandfilter.com

    My page should more than your example:
    http://demo.designsandcode.com/sfpro-movie-reviews/#

    Could you tell me how can I:

    – Delete the description “Page 1 of 1”. (All results should be displayed at one page, so I dont need this)
    – The categories should not displayed again at the result area. How can I delete them at this area? Only name, logo and text should be displayed.
    – The infinite scroll should be bigger (double size) How can I increase it?
    – The description “Found 4 Results” should named “Found 4 Companies”
    – The displayed results (the names of the companies) should not link to the Post-site. They should link to my individual site.

    Best regards and
    thank you very much!
    Jens

    Trevor
    #188317

    Are you using our shortcode display results method?

    Anonymous
    #188372
    This reply has been marked as private.
    Trevor
    #188385

    The shortcode display results method uses our exemplar template – results.php. The basic steps for customising the file are set here, but you would need to do the coding:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    In the main you would be deleting parts. Are you currently using an unmodified version of that file?

    Anonymous
    #188495
    This reply has been marked as private.
    Trevor
    #188561

    You can replace the contents of the results.php with this:

    <?php
    /**
     * Search & Filter Pro 
     *
     * Sample Results Template
     * 
     * @package   Search_Filter
     * @author    Ross Morsali
     * @link      https://searchandfilter.com
     * @copyright 2018 Search & Filter
     * 
     * Note: these templates are not full page templates, rather 
     * just an encaspulation of the your results loop which should
     * be inserted in to other pages by using a shortcode - think 
     * of it as a template part
     * 
     * This template is an absolute base example showing you what
     * you can do, for more customisation see the WordPress docs 
     * and using template tags - 
     * 
     * http://codex.wordpress.org/Template_Tags
     *
     */
    
    if ( $query->have_posts() )
    {
    	?>
    	
    	Found <?php echo $query->found_posts; ?> Companies<br />
    	
    	<?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    		<div>
    			<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    			
    			<p><br /><?php the_excerpt(); ?></p>
    			<?php 
    				if ( has_post_thumbnail() ) {
    					echo '<p>';
    					the_post_thumbnail("small");
    					echo '</p>';
    				}
    			?>
    			
    		</div>
    		
    		<hr />
    		<?php
    	}
    }
    else
    {
    	echo "No Results Found";
    }
    ?>

    I am not sure what you mean by:

    The infinite scroll should be bigger (double size) How can I increase it?

    and also

    The displayed results (the names of the companies) should not link to the Post-site. They should link to my individual site.

    Trevor
    #188563

    I just edited that a bit, please copy the code from our forum, and not from the email.

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