Forums › Forums › Search & Filter Pro › Styling disappears when showing search results
- This topic has 3 replies, 2 voices, and was last updated 4 years, 5 months ago by Trevor.
-
Anonymous(Private) June 17, 2020 at 3:00 pm #249136
Hi.
I’m using Search and Filter Pro with the Divi Blog Module.
I’m using the Divi 100 Extension, ‘Divi 100 Article Card’ to change the layout of the Divi Blog Module.When I hit one of the search filters that I connected with the blog module, all the styling of the ‘Divi 100 Article Card’ plugin disappears.
But – if I remove the ‘post_fonts=0+100’ that is added to the URL after hitting the search filter, I’m getting the search results WITH the styling remaining.
So my question is – how to stop the filtering from adding that ‘post_fonts=0+100’ to the URL?
Kind Regards Peter
Trevor(Private) June 18, 2020 at 10:18 am #249304I do not think so, as the ‘Divi 100 Article Card’ plugin must therefore be using JavaScript to apply itself to the Post archive display.
The chances are it is letting the page load, then, on document ready, is running the javascript.
You might ask the plugin author if there is a way to reapply the style after an Ajax refresh of just the grid/results is made. We have some code that function could be placed inside:
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ // call your script or function here }); }(jQuery));</script>
-
AuthorPosts