Re: create subnav not working with child theme
Sorry for telling you to use locate_template(). I didn’t read the thread properly.
You don’t need the bp_badge_load_template_filter() function. It’s only needed for core components. Since your plugin is a subnav of a core component you can delete this function.
Also, you need to tell your users to move the “badge” directory from the “includes/templates” folder into the child theme.
Or you can use the following in your bp_badge_screen() function:
function bp_badge_screen() {
global $bp;
/* Add a do action here, so your component can be extended by others. */
do_action( 'bp_badge_screen' );
add_action( 'bp_template_content', 'bp_badge_screen_content' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}
function bp_badge_screen_content() {
//the body contents of /badge/screen.php
}