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 2 weeks ago · 8 replies · 225 views
2 weeks 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?

2 weeks 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
2 weeks 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?

2 weeks 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
2 weeks ago

Right now, I only have my hosted web server.

This web server does not allow SSH connections—or rather, the plan I'm on does not.

2 weeks ago

My advise would be to create a local development environment where you can safely develop, test and screw-up....

On Windows Laragon is quite popular. You don't need a super-duper laptop (or desktop) for it to run.

last edited 11/20/26 by pamtbaau
2 weeks ago

I'll take a look at that.

Thanks

8 hours ago

I've now installed Laragon, but how do I access the CLI for the grav commands?

Or do I need to install something else?

7 hours ago

I've figured out what the problem is.

I need to type “php bin/grav ...”

Suggested topics

Topic Participants Replies Views Activity
Support · by alex, 2 months ago
8 666 22 hours ago
Support · by Supple, 5 days ago
1 97 1 day ago
Support · by TomW, 1 week ago
3 158 3 days ago
Support · by TomW, 6 days ago
2 105 5 days ago
Support · by TomW, 1 week ago
3 199 1 week ago