You need to read the BP codex, documentation should always be your primary port of call first, then you’ll have a better idea of what’s possible and how things work. You can copy BP templates over to your theme and create versions that are full template files – as opposed to the normal template file which as you spotted doesn’t have the header or footer parts as they are injected into standard file e.g page,php –
Theme Compatibility
I think though that a better question might be whether it’s possible to address the insecure content issue, rather than just trying to yank out the parts causing the issue.
@hnla thank you for the guidance. FWIW, I did try doing as much research as possible (and trying out a few things) before posting my question here.
I reviewed the information contained in the link you provided. Thanks for that. But after reading through that information, what I’m still unclear about is how/what template I should modify in order to affect ONLY the BP Registration page. (FYI, I’m not a php developer, so I do need a bit of hand holding for some of this kinda stuff.)
I read through the info on how to “Customize the layouts of BuddyPress pages within the WordPress Default Themes”. However, the instructions provided there seem to apply to scenarios where a site admin is wanting to make page template changes that apply to all BP pages on a site (i.e., by placing a customized buddypress.php file in the child theme folder).
In my case, I’m only wanting to change a single page (the Registration page) to remove the headers and footers. So I’m still unsure how I would go about doing that (even after reading through the info). Thank you very much for any specific guidance you can provide me with to accomplish this.
@simpleone
Registration page
If you are on the registration page, BuddyPress will use the following template hierarchy:
/buddypress/members/index-register.php
The rest of the base templates as listed here.
If you now rename the existing file you have overloaded as per the instructions for working with BP templates in a theme or child theme to the above what will happen is that BP will consider it a template handling and indeed needing all the necessary template parts i.e header and footer and all parts in between – think of the file now as similar to your page.php template but with the register content where the page loop for title and content would be. You now can traet this file as standalone and modify as you require.
@hnla appreciate the additional guidance on this! I was able to get it figured out thanks to your help.