Create Your First Theme
Taking into account what you have learned so far, create a custom theme.
- Start by creating a new folder in
- Inside the dgd7 folder, create a new file named
dgd7.infoand add the following code inside it:
- name = DGD7 Theme
- description = A theme written for The Definitive Guide to Drupal 7 book website.
- core = 7.x
- Grab the
screenshot.pngfile from the chapter source code and copy it into the dgd7 directory. This is an optional step. If the screenshot is not defined, you will see the text “No screenshot” instead.
- Now visit
admin/appearanceand reload the page. You should now see the theme under Disabled Themes. Click the “Enable and set default” link to begin using this theme on your site.