1

I've always used the same comment header names in my style.css document. Theme Name, Theme URI, Author etc. For example:

/*
Theme Name: Example
Theme URI: http://example.com
Author: John Doe
Author URI: http://example.org
Description: An example.
Version: 1.0.0
Tags: tags
*/

Which of these lines are mandatory?

3
  • 2
    Technically speaking, just Theme Name: Example Commented Dec 1, 2014 at 17:14
  • @PieterGoosen as an answer please.
    – Rarst
    Commented Dec 1, 2014 at 18:46
  • 1
    If it's a child theme, don't you now also need Template: [parent name] ?
    – shanebp
    Commented Dec 1, 2014 at 18:51

1 Answer 1

2

Technically speaking all you need is the Theme Name in your stylesheet header. This will identify your theme. All the other info is need-to-know info and can be omitted.

If your theme is a child theme, you will need to have Template as well as this will be the path to the parent theme.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.