From 2e9b1d25e196e01c47a5f8a26002fcebc27b3e34 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 24 Jul 2025 12:50:50 +0200 Subject: [PATCH] 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. --- doc/en/tutorials/derived_theme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/en/tutorials/derived_theme.md b/doc/en/tutorials/derived_theme.md index b9a243adc..8cc061280 100644 --- a/doc/en/tutorials/derived_theme.md +++ b/doc/en/tutorials/derived_theme.md @@ -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