Support Forums

Looking for support? You can access the support system via your account.

Escape2ski

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 31 total)
  • Escape2ski in reply to:
    Body Classes
    #123528
    This reply has been marked as private.
    Escape2ski in reply to:
    Body Classes
    #123517
    This reply has been marked as private.
    Escape2ski in reply to:
    Body Classes
    #123339
    This reply has been marked as private.
    Escape2ski in reply to:
    Body Classes
    #123201

    Since the search is only done from a specific page, the idea that the results page is “picking up” the body classes from the page where the search was done doesn’t seem to relate to this situation. It’s always done from an interior page, not the homepage, but still the “home” class is appearing on the search results for some reason.

    Thanks for looking into this!

    Escape2ski in reply to:
    Body Classes
    #123190

    Here is the search page where the search is initiated:

    http://escape2ski.com/ski-area-search-tool/

    …and the results page, which has a body class of “home”:

    http://escape2ski.com/search-results/

    Escape2ski in reply to:
    Body Classes
    #123072

    That’s odd as it’s the results page for a Search & Filter search.

    Would sharing a link help?

    Escape2ski in reply to:
    Body Classes
    #122764

    Thanks Trevor but I’m afraid I still get the blank screen.

    I notice also there is this error:

    Fatal error: Call to a member function active_sfid() on null in /home/content/p3pnexwpnas09_data02/81/3413981/html/wp-content/themes/whitelight-child/functions.php on line 51

    …but I assume this is due to the undefined variable?

    Escape2ski in reply to:
    Body Classes
    #122656

    Thanks Trevor. I’m getting similar problems to those described here:

    https://support.searchandfilter.com/forums/topic/new-error-fatal-error/

    In that I get a fatal error – $searchandfilter does not exist.

    I notice that the page code stops “nearly” at the end of the opening body tag – it just says <body and that’s all that gets written – thus the blank page.

    Taking a cue from the other (now closed) thread, I tried swapping

    return $classes;

    with

    if(!isset($searchandfilter))
    {
        return $classes;
    }

    But I still get the fatal error.

    Again as per the other thread, S&F is definitely running; I can’t imagine what else would be “trying to access it before the action plugins_ready is fired”. Does it matter where in my functions.php I put the code?

    Escape2ski in reply to:
    Split: Hide Search Results on Page Load
    #50985

    It’s solved! Turns out that if I followed the structure given in your FAQ, with a little customization of course… it worked.

    What seems to have sent me off track was that the code provided in post #3 above, with the ‘(e, x)’ in it, differed quite a bit from the structure in the FAQ, but I stuck with it. Should have really read the FAQ I guess!

    Still unclear on what the purpose of the “(e,x)” stuff is, but I guess for the moment anyway I don’t need to know. Would be good to know how that got into the mix as a suggestion though…. since it does differ from the FAQ… but my bad for not at least trying that FAQ version out.

    Thanks!
    adam

    Escape2ski in reply to:
    Split: Hide Search Results on Page Load
    #50842

    Addendum: since I’d like the results to be visible to my client while I sort this out, I’ve removed the CSS that hides them, and am adding a line to get the jQuery script to do something else noticeable:

    jQuery(document).ready(function($) {
    
    $('#search-filter-results-8513').on('sf:ajaxfinish',function(e, x){
       $('#search-filter-results-8513').show();
       $('#search-filter-results-8513').css({"background-color":"red"});
       console.log(e);
       console.log(x);
    });
    
    });
Viewing 10 posts - 1 through 10 (of 31 total)