Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Try to inherit a Theme but get an error

Started by TomW 1 day ago · 3 replies · 50 views
1 day ago

I try to inherit the Theme Hadron.

I use this Guide to do this.

When i activate my new theme I get the follow error.

400 - Template "partials/theme-toggle.html.twig" is not defined in "partials/base.html.twig" at line 113.

The Hadron theme is a child theme of Quark2.

So, can I create a child theme of a child theme?

The file mentioned above, “partials/theme-toggle.html.twig,” does not exist in the Hadron theme—only in the Quark2 theme.

Do I simply need to copy this file into my new theme, or what’s the best way to proceed?

11 hours ago

I would never advise to do the manual inheriting. It's much more error prone. Use the CLI with the devtools instead.

Because you are inheriting an inheriting theme, you might get a slight problem with the streams defined in the mynewtheme.yaml.

last edited 11/18/26 by pamtbaau
10 hours ago

I don't have access to the CLi.

What options do I have then? Copying the entire theme doesn't make sense, does it?

3 hours ago

I don't have access to the CLi.

  • Is your hosted webserver all you've got?

    • My advise would be to create a local development environment where you can safely develop, test and screw-up....
  • Can you do ssh to setup a remote secure shell to the server?

    SSH (Secure Shell) is a cryptographic network protocol used to securely log into remote systems, run command-line tasks, and transfer files over an unsecured network.

last edited 11/18/26 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 1 week ago
2 145 1 day ago
Support · by Anna, 3 weeks ago
1 302 3 weeks ago
Support · by webmasterodp, 1 month ago
4 400 1 month ago
Support · by nwhitfield, 1 month ago
2 374 1 month ago
Support · by stell, 2 months ago
5 686 1 month ago