Forums Forums Search & Filter Pro Best method for displaying results in Salient with page builder.

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #180671

    Hi!

    I’m using S&F Pro to filter a blog view by category and/or author. Unfortunately, I’m having to do this in a prebuilt theme – Salient. The blog is being pulled in via a Masonry blog block.

    The only way I’m finding to get results is by 2 adding shortcodes in a block just above the blog block:

    [searchandfilter id="428"]
    [searchandfilter id="428" action="filter_next_query"]

    But this doesn’t seem to work with ajax enabled. I could almost live with this, but now the URL refreshes and doesn’t scroll down to filtered results. Is there a better way to approach this?

    Thanks!

    Trevor
    #180677

    Does Salient include Visual Composer?

    Alternatively, the issue that you face is that Masonry is not being triggered when our Ajax runs.

    This post shows a method that you might use (if you are good with coding or have access to a coder):

    https://support.searchandfilter.com/forums/topic/reload-masonry-grid-after-ajax-call/#post-165867

    If those do not work, then you need to use our Shortcode Display Results method:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/

    Anonymous
    #180725

    Salient does use VC – now called WPBakery Page Builder. Not a tool I’m used to using. I’m not a fan…

    I am using the shortcode method now. If I set to “show results” I end up with an unstyled post listing – something I could fix, but budget is short on this one, and this client is used to / comfortable with working with Salient.

    Your point on masonry not loading in ajax views totally makes sense. I should have thought of that! I’ll look over that solution and see if it will work. Worst case scenario, I’ll add a js function that looks at the referring url, and if it sees the search pattern, scroll the reloaded page down to the filter form. I just wanted to make sure there wasn’t a better method that I didn’t know about.

    Trevor
    #180730

    I will wait to hear back from you then.

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