Forums Forums Search & Filter Pro ajax not working

Viewing 10 posts - 1 through 10 (of 17 total)
  • Anonymous
    #2594

    Hi there,

    I’m also having trouble with ajax. If I set it as not ajax, the filter works perfectly. I looked over the other threads for possible solutions and tried disabling some plug-ins and changing the content selector without any luck.

    The page is here.
    I’m using search.php under custom template, and #content for content selector.

    Thanks!

    Ross Moderator
    #2633

    Hey Kris

    I had a look and even the URL is not updating (it is supposed to) so I looks like it may be a JS error…

    Can you disable AJAX and so I can have a better look?

    Thanks

    Anonymous
    #2658

    OK, I’ve disabled AJAX. Thanks!

    Ross Moderator
    #2712

    Hey Kris

    Ok, so basically the first thing when you want to use AJAX is to make sure your search page, and the search results page have the same layout (in other words, use the same template).

    So on you link above everything looks ok, then you submit the form, and you are taken to a page that looks different.

    Basically the way the plugin works is, it take your Ajax selector (for example on the link above, a good choice for selector would be #content).. then it loads the results page, looks for #content, and copies over the content into the current page, inside #content

    The problem is your search results page does not have the same layout or elements so this does not work.

    You should try to use a page template for your search results that matches the initial search page (this is use custom template in the settings panel), or simply add the ID content to your results page around your posts, then set the Ajax content selector to #content

    Does that make sense? ๐Ÿ™‚

    Anonymous
    #2742

    OK so I created a custom template and copied the template of the page that the widget is on. But when I use the widget, it basically shows the text of the posts that it’s supposed to show. I’m trying to just get it to show the title, link and an excerpt. Also the widget with the Search Form disappears. I tried changing the content selector from #content to .content-container to .entry-content, with no luck.

    Anonymous
    #2743

    Actually, scratch that. It’s back to not working at all ๐Ÿ™ I thought it started working when I changed “custom template” just to the template of the page, which is the default, so “page.php.” It looked like it was working since the URL updated, but when I went back to check just now it’s back to not working.

    Ross Moderator
    #2787

    Hey Kris if you want to send me your login details I’ll take a look ๐Ÿ™‚

    Anonymous
    #2801
    This reply has been marked as private.
    Ross Moderator
    #2882

    Hey there, just to let you know I will be looking at this tonight.

    Thanks

    Anonymous
    #2894

    Great, thank you so much!

Viewing 10 posts - 1 through 10 (of 17 total)