The theme on this site is “Raven, built on Tidytheme’s Blankslate template”, not Beaver Themer?
AnonymousInactive
I’m using Beaver Themer as well. I’ve set up /articles as the posts page and there’s no scrolling there.
D
Reading that thread, I think that fix looks to see if the theme is Beaver Themer, and NOT if Beaver Builder is installed. I will need to refer this to the plugin developer, Ross.
However, does adding ?page=1 to a page URL cause the same issue on a page with posts on (without using our plugin at all)?
Yes. Something is running the results block twice for that user type. That will be inside Beaver Themer somewhere.
AnonymousInactive
Ah visit the site again, do you see that it is loaded twice? 🙂
Must be Beaver Themer then I guess?
AnonymousInactive
Hello!
I am experiencing a strange problem.
We are using S&F Pro for displaying a CPT. The CPT is using custom roles that I’ve added using Pods and it is making use of a custom capability.
The active page is displayed using a Beaver Themer layout, as we need different Search and filter objects depending on the current user role.
When logging in as our custom admin, the admin bar is not showing and we also get a fatal error cannot redeclare function. This ONLY happens with the custom role, not on the administrator or our other custom roles. I am not sure what to do, but as the admin bar works when S & F Pro is deactivated I am reaching out to you first.
Regards,
Hi Woon
We actually had some issues with implementing my code on the site (copy & paste errors).
We ended up using the code from this post:
https://support.searchandfilter.com/forums/topic/using-beaver-themer-to-display-results-from-more-than-one-post-type/page/2/#post-176523
Let me know if that works for you.
Thanks
AnonymousInactive
have a search form inside my taxonomy or category archive page which when i go to the category archive page it autoselects the category inside the form – i then can select other filters and it works with ajax – but when i select a new category it doesn’t go to that categroy page – it worked once but I’m afraid the settings are wrong…
Lastly – i would like to create more than 1 search form for my custom post type. How can this be done?
I’m using beaver themer and inserting shortcode created by the form creator to insert form. Can I use same shortcode but add some default values…
Hi Ollie
So I’ve made some progress.
I’m not entirely sure why some of the methods you tried with Trevor don’t work, but I’ve found some options.
First, can you clarify, what you mean by the Beaver Builder Grid? Even better, can you setup a grid, so I can see the exact issue you were having in the first place? (on staging of course)
Secondly, I went ahead and did a bunch of testing with Beaver Themer.
There you have the post
module, which allows you to display results in various different ways… Although this works with Archive display mode (because its using the global query) there does appear to be some issues.
I managed to get it almost working with the post module, and “column” view by adding this code to functions.php
:
add_filter("pre_get_posts", "modify_bb_query");
function modify_bb_query($query){
if(!isset($query->query_vars['fl_builder_loop'])){
return $query;
}
//if is page "find-stuff" and this is a <code>fl_builder_loop</code>
if((is_page("find-stuff")) && ($query->query_vars['fl_builder_loop'] == true)){
//then attach S&F to the query
$query->set('search_filter_id', 136);
}
}
You will need to change find-stuff
the the slug of the page you are trying to filter on, and the 136
to the ID of your search form.
Then in S&F settings, for display method, use custom
.
Anyway, if thats a bit confusing, don’t try to replicate for now, just go ahead with recreating your issue as per my note near the top.
Thanks
Hi all
I figured out the issue.
It is actually Beaver Builder Themer doing the scrolling, but only because we make 1 modification to the query.
Basically, if you goto any archive and add ?page=1
, you will see beaver themer kicks in and scrolls the page to the content area – so it is acting on whether the page
variable is set.
On a S&F results page ( ie, your archive ), we set the page variable, even on page load, to 1
, rather than unset as expected by the Themer plugin.
Anyway, I added a fix to our plugin, to not do this when Themer is enabled.
I will follow up separately with a link so you can download the fix.
Thanks