Forums Forums Search & Filter Pro Styling disappears when showing search results

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #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
    #249176

    Are you able to send me a live link/URL to your search page so I can take a look?

    The problem is that by removing that string, the page will reload, so the problem is likely to go away anyway.

    If you disable Ajax in the form, what then happens?

    Anonymous
    #249262
    This reply has been marked as private.
    Trevor
    #249304

    I 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>
Viewing 4 posts - 1 through 4 (of 4 total)