After reading the documentation on buddy press a new strategy has been used during the redesign of the community flats website.
Firstly I do not need to copy all the files from the buddy press default theme as I had assumed as we only need to create ones to override the default ones if the theme is created correctly.
So to start I created a new directory called theflat. Inside this we create the style.css file which has a header this is the key into creating a theme that inherits from the default theme. The header should look as follows:
/*
Theme Name: The Community Flat
Theme URI: http://www.redkiteweb.co.uk/index.php/category/projects/theflat/
Description: The Community Flat Theme for Buddy Press
Version: 1.0
Author: RedKiteWeb
Author URI: http://www.redkiteweb.co.uk/
Template: bp-default
Tags: buddypress, two-column, grey, dark
*/
This has the details of the theme. A breakdown of these lines is as follows:
- Theme Name: The name of the theme.
- Theme URI: The location of the details.
- Description: The description of the theme.
- Version: The version of the theme.
- Author: The Author of the theme.
- Author URI: The location of the authors site.
- Template: This detail of the header is important as this is the details of the parent template that will be used. In the above case bp-default is the buddy press default theme.
- Tags: This is a list of features of the theme. IMPORTANT if the theme is to be used as a buddy press theme the list of tags must include the tag BuddyPress.
Once this style sheet has been created we can start to change the theme itself.