Forums Forums Search & Filter Pro Highlighting Search Terms

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #209212

    1. Why are search terms not highlighted? I have a legal web site in which there are extremely long posts.
    2. How to have some animation during the time the posts get filtered?

    Trevor
    #209265

    In answer to your two questions:

    1. Our plugin does not support this type of feature. It IS something we plan to support, but probably by extending the functionality of our support for the free Relevanssi plugin (which has this type of option, but again, whist we support Relevanssi, we do not support highlighting from it).

    2. You would need to add some of your own (or third party) javascript to do this, but it is possible. The JavaScript would look something like this:

    (function ( $ ) {
    	
    	"use strict";
    	
    	//detects the start of an ajax request being made
    	$(document).on("sf:ajaxstart", ".searchandfilter", function(){
    	  console.log("ajax start");
    	  //show your loader
    	});
    
    	//detects when the ajax request has finished and the content has been updated
    	// - add scripts that apply to your results here
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		console.log("ajax complete");
    		//hide your loader
    	});
    
    	
    }(jQuery));

    But you would need to actually add something to this code (and maybe to the page) to actually show and hide.

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