Handy WordPress quick bits print which template is being used global $template; print_r( $template ); https://mekshq.com/which-wordpress-template-file-used/ Buddypress Template Hierachy https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/