Proper process of theming Concrete5 5.7
Permalink 2 users found helpfulMoved a copy of Elemental theme to application/themes.
Renamed the theme in description.txt and went on to install the theme.
Errors after activation of the new theme even though it is exact copy of "Elemental".
Some paths should change.
I than changed CSS path @ page_theme.php to point to application/themes [which is oddly camel cased even though it was said to be lowercased] and even got core css copied to applications/css just to stay on the safe side while testing.
Got the site running with this new theme, but as soon as I tried to customise the theme from the front end and few lines in main.less I get tons of errors related to less compiler.
So what's the proper process of theming Concrete5 5.7.
To be honest I wasn't so lucky to find this link even though I did search concrete5.org & search engines. This should become more prominent. Thank you for the attached theme. It will be useful for many I'm sure.
You probably started with an empty site.
It throws tons of errors.
I'll check these theming instructions now.
1. Place a copy of Elemental Theme in application/themes/
2. Changing title in application/themes/yourtheme/description.txt is... well recommended - to be able to tell the difference between two theme copies.
3. Edit namespace: 2nd line in application/themes/yourtheme/page_theme.php:
From: Concrete\Theme\Elemental
To: Application\Theme\Yourtheme [camel cased]
4. Edit relative path in application/themes/yourtheme/css/main.less 6th line to load required core css:
From:
@import "../../../css/build/core/include/mixins.less";
To:
@import "../../../../concrete/css/build/core/include/mixins.less";
And there you go, Elemental theme is now functional from application/themes folder and ready for customisation.
A gold star in return for your wisdom, sir. :D
I tried clearing cache, but that didn't help?
Any thoughts?
Much appreciated!
application\themes\
while the video and corresponding documentation indicates both camel and singular theme directory under application:
<?php namespace Application\Theme\Urbanic; use Concrete\Core\Page\Theme\Theme; class PageTheme extends Theme { }
Also, I have no Core directory under Concrete in 5.7.01.
What am I missing here?
>
> Also, I have no Core directory under Concrete in 5.7.01.
>
> What am I missing here?
I think you're missing the fact that namespaces are not directory paths. By convention, there is often a close correlation between the two, but they are not one and the same.
http://php.net/manual/en/language.namespaces.rationale.php...
BTW, the "Core" namespace maps to the directory "/concrete/src".
-Steve
can you be more specific about step 5? i'm guessing it's for the build portion where it compiles the .less files, but I don't know which existing lines need to be changed in main.less, or in what directory the .less parse exists.
As for step No.5, .less compiler should be in concrete/vendor directory. Turn "Show errors in page" on [System & Settings>Environment>Debug Settings] and see what errors you get. It will show you the exact path.
Dirty solution would be to just copy these folders from Concrete to Application folder.
What line(s) in main.less did you change so they point to the concrete/vendors directory?
http://www.concrete5.org/about/blog/concrete5-sightings/5-7-develop...
I have now got my head around the basics. Three of my custom themes run perfectly, apart from customisation.
If you want to try installing and playing with good old GY, I've attached to download. just put it in the application/themes folder.