Reply To: custom theme appears to be overriding BP standard pages
Yes yes yes yes … I’ve seen that page. It’s not very descriptive.
In this 3rd party theme I have, I’ve noticed to support woocoomerce they’ve added the following in page.php in the main template directory:
<?php while (have_posts()) : the_post(); ?>
<?php if(is_cart() || is_checkout() || is_account_page() || is_wc_endpoint_url()) : ?>
<?php get_template_part('templates/page', 'woocommerce'); ?>
<?php endif; ?>
<?php get_template_part('modules/module', 'loop'); ?>
<?php endwhile; ?>
So you can see that they’re directing WP to load the WC templates when it’s a WC page type, and to their custom block editor template if it’s not.
Is there something similar so that I could add the get_template_part() function for the BP page types (e.g. is_members() or is_activity()…)?