Clonemental - Overriding elements/header.php
PermalinkI created a new file application/elements/header.php containing just this:
and it shows in the overrides section of the environment dashboard, but has no effect.
Cache has been cleared/disabled during development.
Do overrides not work for packaged themes, or am I doing this in the wrong place?
How do you make modifications that won't be overwritten if a package gets updated?
This seems like a major step backwards from 5.6 :(
What, am I supposed to tell a client "Don't ever update that package!" ???
I'm a bit surprised. I didn't use clonemental but with elemental (so not a package) when having the file application/themes/elemental/elements/header.php it does override the original one.
One thing if you're using a package is to try to use $view->inc('filename') instead of $this->inc('filename'). That might work.
Alternatively, you could forget about the whole overriding issue and use my free Elemental Cloner packagehttps://www.concrete5.org/marketplace/addons/elemental-cloner...
It will let you make a clone of Elemental as a new packaged and independent theme. Like that you can modify it directly without worrying about overrides or future updates.
This feels like a bug...
Thanks, I'll take a look at your package!
And yes, anytime you upgrade that package any changes you make to the files will get wiped out.
No advice on how to do this "correctly" though.