This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Search Results Page Overwrite Layout issue

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search Results Page Overwrite Layout issue

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11259
    tarragontarragon
    Participant

    Hello – Apologies for a ticket but we are replacing the default WP search results with the Ajax Pro results. The url http://www.southface.org/?s=housing as you can see has some odd results at the bottom.. I cannot seem to hide through css.

    Requirements have us with attachments and descriptions ON.. so the page is a bit odd as opposed to the search itself. Is there a template or someplace I can affect the results page itself (not the live search dropbox)? If everything looked like a post result, that would be great but it’s showing page layouts one after the other.

    Any help would be greatly appreciated.

    Thanks!
    Laura

    #11263
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Laura,

    This looks like an override related issue to me. I believe that the plugin might accidentally override another posts loop as well, which causes this weird layout.

    If I’m correct, then the following modification should get rid of the problem. Open up the wp-content\plugins\ajax-search-pro\includes\classes\filters\class-asp-searchoverride.php file on your server and scroll to line 24, which should be this:

    [php]if (!isset($wp_query->query_vars[‘s’])) {[/php]

    ..change that to:

    [php]if (!$wp_query->is_main_query() || !isset($wp_query->query_vars[‘s’])) {[/php]

    and save the file.
    Now try searching again to see if that made any difference.

    #11265
    tarragontarragon
    Participant

    That Did it! Where do I put my file version so it doesnt get overwritten? (theme-dir/asp/includes/classes/filters/class-asp.searchoverride.php)?

    Thank you so much!

    #11266
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Great 🙂

    You can leave it like that for now, the next update will include this change as well.

    #11267
    tarragontarragon
    Participant

    You’re awesome. Thank you for the quick reply and support. You already got 5 stars from me.

    #11268
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Search Results Page Overwrite Layout issue’ is closed to new replies.