-
AuthorSearch Results
-
December 18, 2016 at 10:44 pm #77439
In reply to: Showing full custom posts in the search
TrevorParticipantGreat, then you can make a custom results.php. See the documentation here on how to start.
Where it shows the WordPress function the_excerpt, use the_content
Move the bits around, change the HTML tags, add HTML markup, add theme CSS classes, delete bits, as you need.
December 16, 2016 at 11:18 am #76988In reply to: Will this be possible?
TrevorParticipantHi Rico
Great to talk with you. For now you are going to make a test search/results page to use the Shortcode method and put a copy of the results.php file in a
search-filtersub-folder of your theme and base that on pages for now, where you might have a category to designate those that are the pages you want to index. and then to use the Include category setting to restrict the search to just those pages.Then, when the search works OK, all we have to do is modify the results.php to make it look as you want it to.
Let’s hope that all works as anticipated. I will wait for you to get back to me.
December 16, 2016 at 10:56 am #76984In reply to: How display Result page as Grid ?
TrevorParticipantIs there a list of other script output parameters we can use to display in results.php?
If you identify what you want to display, the code can be found in either the WordPress codex, on the WordPress StackExchange or in the documentation/forums of any plugin (like ACF). I can guide you if you need, but let me know what you want to show?
As far as scripts are concerned, what theme are you using? Many themes have a page where you can add scripts, otherwise there are plugins and other methods to do much the same. I just need to know what you have so I can recommend what best suits you. Clearly, the plugin route is easiest.
The radio button styling needs some Custom CSS. Again, how you add this is the same as for the script:
.searchandfilter li[data-sf-field-input-type="checkbox"] label, .searchandfilter li[data-sf-field-input-type="radio"] label, .searchandfilter li[data-sf-field-input-type="range-radio"] label, .searchandfilter li[data-sf-field-input-type="range-checkbox"] label { padding-left: 20px !important; }December 16, 2016 at 1:44 am #76922In reply to: How display Result page as Grid ?
AnonymousInactiveI looked at results.php and I deleted the category, tags, date so they do not display in page. Is there a list of other script output parameters we can use to display in results.php?
So I still need to know what search page and where to paste your script to display results in grid.
Also I noticed the radio checkmarks are too close to category text in the search form. How do I format it to give some space in between.
This is what I have so far using shortcode in sidebar
http://www.sweetdreamsstudio.com/blog/December 16, 2016 at 1:15 am #76920In reply to: How display Result page as Grid ?
AnonymousInactivehi
I am not familiar with editing scripts. I just use default theme settings mostly.
So where would I find search page to paste this script code? and where in page do I paste script?I followed directions and copied results.php from search filter pro folder into my themes folder. Now what?
Also how do I remove the category tags and the date displayed in results page?
December 15, 2016 at 9:29 pm #76908In reply to: Conflict with Navi
AnonymousInactiveHa Trevor, don’t know where I was getting the Navi from…..must have been a template from the past, apologies for the confusion. Anyways, I am just looking for the path forwards so I can start getting the site underway. If I can edit the results page to show post results in a grid format I will be good with that. From what I have read, it seems I can do that by editing the results.php? Is this correct? Thanks
December 15, 2016 at 9:54 am #76474In reply to: How display Result page as Grid ?
TrevorParticipantHi
You blog page uses Masonry to position and size the posts in the grid, so it will be necessary to trigger this script after the S&F Ajax has finished re-loading the grid. At some point you will need to discover what function (name) your theme uses to do this, but that is for later. We have a sample script that you would use to do this, which you would need to load on the search page:
(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("S&F JS ajax request finished"); // ** here you need to reload your masonry script ** }); }(jQuery));The other thing we need to do is to customize the S&F Pro results.php template. If you have not done so yet, follow the documentation:
So that you have a copy of this template file in a
search-filtersub-folder your (child) theme folder, ready to edit.December 14, 2016 at 6:33 pm #76323In reply to: Search results dates
TrevorParticipantIf you are using the shortcode method and can edit the results.php file, see this post:
https://support.searchandfilter.com/forums/topic/display-results-date/#post-76321
December 14, 2016 at 6:32 pm #76321In reply to: Display results date
TrevorParticipantThere 6 results, the last three do not have dates because they are the same as the preceding post. If you have followed the customizing guidance and can edit the results.php file, find line 65:
<p><small><?php the_date(); ?></small></p>and edit that to:
<p><small><?php echo get_the_date(); ?></small></p>I think that will then cause it to do what you want.
December 14, 2016 at 6:19 pm #76312In reply to: Numeric Pagination Not Working
TrevorParticipantYou are using the Shortcode Display method from what I can see? That should be using the results.php template from our plugin, but the results do not appear to be doing that?
-
AuthorSearch Results