Great to speak with you Daniel. For now you are going to edit the results.php file to make it look like the other pages.
Hi
I looked in your child theme folder (it can be seen in Appearance -> Editor), and you need a folder in that child theme folder called:
search-filter
and not search-filter-pro
Directly inside that should be the results.php file.
I had another look at the form and your results.php file. You have changed the structure of the HTML used in that template, so I added the classes that appear to be correct in here:
Post / Result Selector: .WorkshopListing-item
Infinite Scroll Container: .WorkshopListing
It looks like your site is undergoing changes right now though, so I am unsure if it is safe to test?
I assume you mean that you are using the Shortcode Display Results method. Did you follow the Customising the Results documentation (so you have your own copy of the results.php file)?
If you did not, please do so. Edit the child theme copy of the results.php file to remove these lines (29-44):
Found <?php echo $query->found_posts; ?> Results<br />
Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
<div class="pagination">
<div class="nav-previous"><?php next_posts_link( 'Older posts', $query->max_num_pages ); ?></div>
<div class="nav-next"><?php previous_posts_link( 'Newer posts' ); ?></div>
<?php
/* example code for using the wp_pagenavi plugin */
if (function_exists('wp_pagenavi'))
{
echo "<br />";
wp_pagenavi( array( 'query' => $query ) );
}
?>
</div>
AnonymousInactive
Hi Trevor
This doesn’t work unfortunately. I know this is an external script so it’s not your job to fix it!
Just to check there’s not anything else I’m missing, where is this script supposed to go? In my scripts.js or in my custom search ‘results.php’?
AnonymousInactive
Hi Trevor,
I’m in the same position as Christie, using divi theme and looking for changes to the results.php file. Can you help me out? I’ve been trying to work out how to do this using other threads but many of the replies are private so I can’t piece it together.
See this link for my results URL showing the generic layout: http://stonecrft.wwwnlsrc2.supercp.com/fireside/
I’m looking to have a grid with three columns with each post displaying a featured image and the title below.
Any help would be appreciated.
P.S. My PHP knowledge is non-existant!
In this documentation:
https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results
You can see how to customise the results.php file, and if you edit that file, towards the end, you will see where the message is output. You can change that section as you wish.
Looking at the results.php code, if you have this in a code editor, lines 52-54 look like this:
</td></tr>
</div>
<?php
That </div>
does not have a starting <div>
to correspond to it?
Are you using the shortcode method? Id so, you can make custom results.php files for each form. If the form ID is, for example, 1234, then the custom results.php file for that form would be 1234.php
See this documentation:
https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results
AnonymousInactive
If anyone’s interested, the grid that I’m using is just the Zurb Foundation 6 legacy Float Grid – https://foundation.zurb.com/sites/docs/grid.html
And if you want all the grid columns to be the same height, you can use Foundation’s Equalizer – https://foundation.zurb.com/sites/docs/equalizer.html
I just implemented the necessary code into the custom results.php page that’s in the theme.