How+to+create+a+sub-theme

**What is the function of sub-themes?**

 * It enables users to customize existing Drupal themes without hacking the code of the original theme
 * It enables users to create new themes simpler by having a base theme to build upon it

**Whats so good about it?**
Since it inherits properties from the original theme, it allows users to create a new theme that uses the same functionality and styling of the original theme. Not only that, it allows users to take what they want from the original theme without any limitation and customize in a way that they like it.

For this example, i have developed a sub-theme of **Bartik** theme (Aware that it can be other themes of your preferences)


 * Step 1: Create a Copy and Move it**
 * 1) Open up your cPanel File Manager
 * 2) Go to /themes directory
 * 3) Copy the directory "/themes/bartik" to the directory "/sites/all/themes
 * 4) Rename "bartik" to "newsub" (This is a purpose of better distinction, you can name it whatever as you please)

//Delete everything from the sub-theme that you want them to remain unchanged.//
 * Step 2: Delete Unnecessary Files**
 * 1) Go to /newsub directory and decide which files to keep and which files to keep
 * 2) everything else other than .**info files, template.php, /css and /templates** directory (if applicable) can be deleted




 * Step 3: Change the theme name**
 * 1) Open all remaining files
 * 2) Change the word "bartik" to "newsub" in every files that has word "bartik" in it (finding tools can be very useful)




 * Step 4: Create your own stylesheet**
 * 1) Create a new file named //newsub.css in the /css directory//


 * Step 5: Update .info**
 * 1) Change the //name field// 'Bartik" to "newsub"
 * 2) What you write in your //Description field// will be appeared on your Appearance(theme) section in Drupal
 * 3) Delete the lines for //package// and //version//
 * 4) Add a new line: base theme = bartik
 * 5) Add another line: stylesheets[all][] = css/newsub.css
 * 6) Delete all other stylesheet declarations
 * 7) Save






 * Step 6: Done**
 * 1) You will be have a new theme at //Appearance (theme selection)// in your Drupal
 * 2) Enjoy and customize your sub-theme!!