For Developers - Extending Theme from Installed Package

Permalink
Hello everybody.
I'm just starting to use this newest version of concrete5 - 5.7, and im a little confused with it's new face :)

The problem for me is that in previous version there was a pritty easy way of extending a theme which was provided with package. If I wanted to add my own .css or .js file I could do this in two ways. Both required creating a folder in main 'themes' folder, which had to have the same name as the theme from package. And now:
1. I had to copy the header.php file from the package's theme folder, and put there proper <link... or <script... tags, and after clearing the cache header.php file was overriden with mine, or
2. Just create in such folder - using the same folders structure like in the package - a file with the same name like one which I wanted to override. After clearing the cache the magic was done.

BUT - now in new concrete5 5.7 it doesnt work. Well files overriding works, but when in main folder 'applications/themes' I create folder with the same name like theme from package and place there some file from this theme to override it, then concrete5 starts to behave very strangely. Yes, It overrides the file which I copied to 'applications/theme/package_theme' folder, but stops to take any settings and content from the original package theme. Also I cannot edit the page content because there disappears a posibility of clicking any content element.

I didn't find in documentation any information about extending existing themes in such way, so I'm writing about this on forum, to ask if in new concrete5 it actually possible and if so ... then how :)

Or maybe just someone could push me into right direction...

1 Attachment

jakubpluzek
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi jakubpluzek,

I don't think I have seen anyone do this yet.
jakubpluzek replied on at Permalink Reply
jakubpluzek
But in previous version like I wrote (I mean version 5.6.3.4) it worked like a charm. So why it cannot work like this in this version? :)
jakubpluzek replied on at Permalink Reply
jakubpluzek
So now I'm working with newset version 8
And I have exactly same problem here with overriding theme files.
So the question is "What is the proper way of extending oryginal theme with not touching it's files in 'packages' folder?"
mnakalay replied on at Permalink Reply
mnakalay
Did you empty your cache? C5 won't even look at your files if the original ones are already cached.
jakubpluzek replied on at Permalink Reply
jakubpluzek
Yes, I cleared my cache :)
drumrby replied on at Permalink Reply
drumrby
Any progress on this? I am wishing to do the same thing and am experiencing the same issues.

I am using the Fundamental theme if that helps. What theme are you trying to extend?
jasteele12 replied on at Permalink Reply
jasteele12
I'd like the same answer - how to do this properly in v8?

It was quite simple in 5.6 :(

https://www.concrete5.org/community/forums/themes/clonemental-overri... (looks permalink should have replaced / with - i.e. elements-header ...)