I am a newbie to Drupal, and I really don't understand the difference between sub-theme and base theme. Why can't I directly edit the base theme?
I am working on a website which is live and has bartik as default theme. I don't know where to start.
I am a newbie to Drupal, and I really don't understand the difference between sub-theme and base theme. Why can't I directly edit the base theme?
I am working on a website which is live and has bartik as default theme. I don't know where to start.
You haven't really asked a question. But i'll assume that you want to know what a base and sub-theme is in drupal.
A drupal subtheme inherits the template files (*.tpl.php) and assets (javascript, css, images) of the base theme. If you need to modify or change the template files.
I think your best bet is to google it. I googled, "drupal subtheme" and found you drupal documentation regarding subthemes:
Sub-themes are just like any other theme, with one difference: They inherit the parent theme's resources. There are no limits on the chaining capabilities connecting sub-themes to their parents. A sub-theme can be a child of another sub-theme, and it can be branched and organized however you see fit. This is what gives sub-themes great potential.
Source: Creating a sub-theme (drupal.org)
In addition to the node page, if you're more inclined to watch a video this is probably a good bet: Drupal Subthemes (youtube.com)
Besides the reasons stated on the other answer, you should not modify the base themes because of updates.
Think about a situation where you get a base theme and heavily modify it, then a bug, or worse a security bug is found in the base theme. If you apply the update, you will loose the changes made to that theme and if you don't apply the update, well who knows what could happen.
More here about upgrading and subtheming in general.