OK. My brain better be awake then!! OK to do first thing in the morning? I will do it one careful step at a time. I will only alter the results.php which should not cause any issues. I have already got a backup of it here.
I will, I will also be working on your/divi results.php layout in a bit (overslept).
mmm
The HTML on the Search results is still faulty. Is the results.php the same as shown in the OP:
https://support.searchandfilter.com/forums/topic/customize-result-php-with-table/#post-53355
To answer that last question first, it would depend on the theme you use. I know that for the theme framework I use, the theme author re-wrote their code to specifically detect the presence of S&F Pro and to get it to work. I have not seen that from any of the other page builder authors.
As long as you have a ‘normal’ sample page that you want the results to look like, and that code doesn’t use special javascript (such as masonry), it isn’t so hard to modify the results.php file to make them look much the same. I can help you do that.
AnonymousInactive
Hei..
I work with taxonomies instead of categories. So for each post in the search result it appears the categoryname “uncategorized”. How can I hide this? If I delete the line <p><?php the_category(); ?><p> in results.php, it doesn’t display the category anymore, but then only one result insteat of all results appears. Can you help me?
Thanks, Micha
OK, can I make sure that you made a search-filter in your theme folder and put a copy of the results.php file into that, as per the documentation:
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results
Let me work with what you have given me? It may be done over the weekend. I have much to do today. I will see.
AnonymousInactive
Great extension, Trevor. Saved me a lot of time and money.
I’m using the shortcode-method for the results page and the only thing I need to modify is the layout. I’m not good in HTML and CSS and wouldnt wonder if you have an example for a results.php with a grid. I need my results in a 2-column-grid like my standard-archivepages with the post-thumb and title.
Hopefully you’ve got a fully styled results.php…?
Best
Ingo
AnonymousInactive
Awesome – thanks for your help and quick reply Trevor.
Actually just found most of the info I needed when you answered someone else’s post here: https://support.searchandfilter.com/forums/topic/cant-get-search-by-keyword-to-work/#post-52981
Sorry, should have searched harder.
Thanks for you link to the relevant part in the docs about customising results.php. I was about to ask how to modify that file without loosing my tweaks when updating plugin. I’d already looked in the docs but missed that bit, so thanks. Wonder if it’d be worth adding to or creating a section called templates…
Anyhow, many thanks for plugin and your help.
Kind regards
Stef
Let us address one question at a time. You need to install the free plugin called Relevanssi and in the S&F Pro form Advanced tab enable support for it. In the Relevanssi settings there is a single setting field for custom meta fields, where you need to enter the value all and the build the index.
If you are using the shortcode method, then you need to customize the results.php file, as per the documentation:
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results
And then use the ACF Pro documentation to output the ACF field values in your results.php file.
Hi Tomi.
I had a chance to look in more detail at your site admin. This what our documentation says about Divi:
S&F Pro works well with Divi, however it does not integrate with the layout builder – so you can use the search.php template for displaying results, or you can customise the results to suit your needs if you know a bit of html/css
I can see that the page IS using our results.php template.
If I inspect the page in Crome, the object inspector console shows a jquery error, which suggests that jquery is being loaded twice. Which is overwriting our file. Looking at the source HTML for the page, it is this line that is the problem:
<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/i18n/jquery-ui-i18n.min.js?ver=2.1.2'></script>