What is the benefit of making sub theme in drupal?

Solutions

Some of the benefits of using sub-theme:

  1. You don't need to build your theme from the scratch. You can just use your parent theme styles and its templates. Drupal bootstrap is a best example.

  2. If a new version of your parent theme arrives, you can just replace it with your parent theme since no changes were done in that.

  3. To override any templates, you can just copy your parent theme template in your sub theme and start modifying.

For instance. You override only files you need to and you have in your sub-theme directory only these files, not all. You can update parent-theme and not overriding your customizations.

Tags: Theming

Similar questions

Benefit of config entities over regular config entries?
In Drupal 8 it is possible to store configuration in "config entities". However, the same can also be achieved with non-entity config entries. E.g. one example for a config entity schema, from core.entity.schema.yml: The same information could be stored in entries with type: mapping, like so: In fact, we would not even have to store the 'targetEnti...
Making a sub-theme
The theme I am using has a slider (a panel of automatically changing images to display a topic that the user can choose), but it only shows a few slides. I want to extend it to a dozen slides. I did simple text searches to determine which files in the theme are used to provide the functionality to the slider. That was the easy part. I was able to e...
How to add sub title name in the header using pixture reloaded sub theme of drupal 7.x?
I need to add sub title name(with different font) next line of the "site name" in the header. Am using pixture-reloaded sub theme. could anybody, please help me out, where should i change and what piece of code i should add to diplay it out. for example: site name: Drupal Answers next line of the site name, i need one more line to display : Welcome...
Can't get narrow stylesheet to load in Omega commerce sub-sub-theme
I've got a sub-sub-theme of Omega, namely, a subtheme of omega_kickstart_theme, which is in turn a subtheme of omega_kickstart, which is a subtheme of omega. Here's my .info file (pastebin). I've stuck the file freshstop-omega-alpha-default-narrow.css in the /css folder, and that's supposed to be all she wrote. It's supposed to load for the narrow ...
Sub-sub Theme Not Inheriting CSS
I am trying to extend the Thunder Admin theme by creating a sub-theme in it. This is my first time making a sub-theme in Drupal 8 (other than from bootstrap starter kits). I would have thought that a basic sub-theme would have inherited the css and js from its parent as is explained here All I can see that I should need to do is to create a directo...
How to get Drupal 7 installed in a sub-folder / sub-directory properly?
Currently i'm trying to installing a drupal 7 installation in a subfolder of another drupal public_html folder, but it doesnt seem to work. I am getting a redirect loop error in chrome. I already modified the .htaccess in the parent drupal installation to ignore the sub-folder and i also set the $base_url in the sub-directory drupal installation.

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.