On this page
Theming Drupal 7
- Overview of theme files
- Writing theme .info files
- Default .info values
- Assigning content to regions
- Checking if a region is occupied
- Theme settings
- Global settings
- Integration with the Color module
- Creating a sub-theme
- Clearing the theme cache
- Sub Theme - Inheritance Summary
- Example: creating a Garland sub-theme that utilizes the Color module
- Working with CSS
- Working with JavaScript and jQuery
- Using Newer Versions of jQuery
- Core templates
- Template (theme hook) suggestions
- Theming blocks
- Advanced theming
- Overriding themable output
- Creating accessible themes
- Theming HowTos
- Tools and best practices
- Upgrading 6.x themes to 7.x
Theme settings
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
Various page elements can be output by the theme. It can be toggled on and off on the theme's configuration page.
Drupal 7
You can locate these settings at "Administer > Appearance > Settings > themeName". For example, the site's slogan can be suppressed by unchecking the "Site slogan" check box on that page.
Screenshot of features enabled in Drupal 7
These check-boxes show themselves depending on the features enabled inside the .info file. It must be specified with the key of 'features' followed by empty brackets then the feature itself, e.g., features[] = the_feature. If none is defined, the following values are assumed.
features[] = logo
features[] = name
features[] = slogan
features[] = node_user_picture
features[] = comment_user_picture
features[] = comment_user_verification
features[] = favicon
features[] = main_menu
features[] = secondary_menu
Drupal 7 removes the previously available mission and search as theme features (they can be created and controlled as blocks instead) and it adds a toggle for "User verification status in comments".
To disable any features, only add the ones you want into the .info file. The rest will be omitted when defining only the features that are needed for the theme. Some of the features will also enable related form fields. For example, 'logo' will enable an upload field for the image along with the checkbox.
Note:
The contents of the .info file are cached in the database so altering it will not be noticed by Drupal. (Do not confuse this with the theme registry.) To learn how to clear it, check out the options in Clearing the theme cache.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion