Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author StaxWP

    (@staxwp)

    Hello, you mean to override the templates from the plugin under templates/buddypress/ ?

    Let me know. Thanks

    Thread Starter nergerf

    (@nergerf)

    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

    Thread Starter nergerf

    (@nergerf)

    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;
    
    }
    Thread Starter nergerf

    (@nergerf)

    Thank you very much

    Plugin Author StaxWP

    (@staxwp)

    Sure thing. Don’t forget to support our plugin with a 5 ?? rating. It will mean a lot. Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Templater overwrite’ is closed to new replies.