Plugin Support
john
(@johnweru)
Hi there,
Thanks for reaching out to us.
In regards to your query here, you can implement template files override in child theme by placing the files that you wish to override under a “buddybuilder” folder that you can create within your child theme. Once this is done, you can then use the template_include filter in the functions.php file of your child theme to filter the path. Below is an example code:
add_filter( 'template_include', 'members_loop_custom', 99 );
function members_loop_custom( $template ) {
if ( is_page( 'members' ) ) {
$new_template = locate_template( array( 'buddybuilder/members-loop.php' ) );
if ( '' != $new_template ) {
return $new_template ;
}
}
return $template;
}
I hope this information helps.
Kind Regards
Thank you for your response but doing this breaks the page. Can you advise?