This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_posts/2012-05-23-info-file-drupal-7-theme.md

41 lines
862 B
Markdown
Raw Normal View History

2015-03-16 21:18:03 +00:00
---
title: Writing a .info file for a Drupal 7 theme
2015-03-17 04:04:02 +00:00
nav: blog
use:
- posts
2015-03-16 21:18:03 +00:00
slug: writing-info-file-drupal-7-theme
tags:
- Theming
2015-04-11 22:21:27 +00:00
- - drupal-theming
- drupal
2015-03-16 21:18:03 +00:00
- Code
---
~~~
name = My Theme
description = A description of my theme
core = 7.x
# Add a base theme, if you want to use one.
base = mybasetheme
# Define regions, otherwise the default regions will be used.
regions[header] = Header
regions[navigation] = Navigation
regions[content] = Content
regions[sidebar] = Sidebar
regions[footer] = Footer
# Define which features are available. If none are specified, all the default
# features will be available.
features[] = logo
features[] = name
features[] = favicon
# Add stylesheets
stylesheets[all][] = css/reset.css
stylesheets[all][] = css/mytheme.css
stylesheets[print][] = css/print.css
# Add javascript files
styles[] = js/mytheme.js
~~~