Looking for support? You can access the support system via your account.
Escape2ski
Forum Replies Created
-
Escape2ski in reply to:
Body Classes(Private) July 29, 2017 at 6:42 pm #123528This reply has been marked as private.Escape2ski in reply to:
Body Classes(Private) July 29, 2017 at 5:19 pm #123517This reply has been marked as private.Escape2ski in reply to:
Body Classes(Private) July 28, 2017 at 10:10 am #123339This reply has been marked as private.Escape2ski in reply to:
Body Classes(Private) July 27, 2017 at 5:48 pm #123201Since 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(Private) July 27, 2017 at 5:40 pm #123190Here 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”:
Escape2ski in reply to:
Body Classes(Private) July 27, 2017 at 6:49 am #123072That’s odd as it’s the results page for a Search & Filter search.
Would sharing a link help?
Escape2ski in reply to:
Body Classes(Private) July 26, 2017 at 12:00 am #122764Thanks 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(Private) July 25, 2017 at 5:27 pm #122656Thanks 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(Private) July 12, 2016 at 9:26 pm #50985It’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!
adamEscape2ski in reply to:
Split: Hide Search Results on Page Load(Private) July 12, 2016 at 1:23 am #50842Addendum: 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); }); });
-
AuthorPosts