Plugin Author
StaxWP
(@staxwp)
Hello, you mean to override the templates from the plugin under templates/buddypress/ ?
Let me know. Thanks
Hello,
Yes, I would like. For example: stax-buddy-builder / templates / buddypress / members / members-loop.php, following position “<? Php if (bp_has_members (bp_ajax_querystring (‘members’))):?>”
change to “<? php if (bp_has_members (bp_ajax_querystring (‘members’). ‘& type = alphabetical’)):?>”
Thanks
Plugin Author
StaxWP
(@staxwp)
Hi, I will add an option so you can add that directly from the Elementor editor 🙂
But if you want to override it you can just copy it in your child theme in buddypress/members/members-loop.php
Thank you.
I have overwritten it in ChildTheme / buddypress / members / members-loop.php. Unfortunately it doesn’t work with builder, but only without stax-buddy-builder
thank you
Plugin Author
StaxWP
(@staxwp)
Hi, let me check that and get right back
Plugin Author
StaxWP
(@staxwp)
An update will be released in a few hours and you will be able to override the templates in child theme: /buddybuilder/
Also just for that override I recommend to add this snippet instead to functions.php
add_filter( 'bp_ajax_querystring', 'stax_override_bp_querystring', 10, 2 );
function stax_override_bp_querystring( $query_string, $object ) {
if ( $object === 'members' ) {
$query_string .= '&type=alphabetical'; //custom query here
}
return $query_string;
}
Plugin Author
StaxWP
(@staxwp)
Sure thing. Don’t forget to support our plugin with a 5 🌟 rating. It will mean a lot. Thanks