Replace mention of theme_init function

The theme_init function is no longer needed, and the example isn't using
it. So we replace it with a bit more description of the theme info in
the comment, and how that works.
This commit is contained in:
Harald Eilertsen
2025-07-24 12:50:50 +02:00
parent 8604ba016e
commit 2e9b1d25e1

View File

@@ -38,7 +38,9 @@ Inside it, put the following information - edit as needed
*/
```
Remember to rename the `mytheme_init` function with your theme name. In this case we will be extending the theme 'redbasic'.
The top comment in the file makes up the information that is used by $Projectname for the information about the theme. Each of the lines is a kayword followed by a colon and a value. Notice the last line in the comment: `Extends: redbasic`. This is what tells $Projectname that this is a derived theme, and that it should get any elements missing from this theme from the parent theme. In this case we will be extending the theme 'redbasic'.
We don't need any further code in this file for now, so just leave it empty.
#### The PCSS file and style.css