Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Prepare the Theme Info File

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:00
    Prepare the Theme Info File
  • 0:01
    with Emma Jane Westby
  • 0:07
    A theme is comprised of a collection of files, which are all done
  • 0:11
    in different languages-- CSS, HTML and PHP fragments, JavaScript.
  • 0:16
    You may even have some SCSS files in there.
  • 0:19
    We need a way to combine all of those files
  • 0:22
    into something that Drupal can actually
  • 0:24
    read and understand how to deal with.
  • 0:27
    We do this with a .info file.
  • 0:30
    In this lesson, what we're going to do
Loading ...

Prepare the Theme Info File


A theme is comprised of a collection of related files. Our completed theme will have CSS and PHP (with HTML fragments). To ensure all of these files are loaded, we need to tell Drupal where to find them, by listing the files in the theme's .info file. To begin working with our theme's info file we'll start with the only values which are required: name, version of Drupal core this theme can be applied to. We'll also add a few recommended pieces of information: description of the theme, the template engine, and a screen shot for easier selection of the theme from the administrative area. By the end of this lesson, you will be able to create an info file for a theme, and explore the relevant handbook pages for more information on refining your theme's info file.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.