I’ve copied the default Buddypress functions.php and added the above code. This just results in the site not loading.
From the various articles i have read it would appear that copying the original files from BP-default such as header.php, footer.php etc to the child themes folder and editing them is meant to work. So far, if I make any changes to them it just breaks BuddyPress.