CSS Theme Editing / Elemental
PermalinkWhat is the best way to go about doing what I'm attempting to do? Should I just make a theme from scratch, making it look like Elemental? Is there a way to edit the CSS of Elemental without making a copy? Or is there an easy way to make a copy of the Elemental theme that won't leave it striped of its features and filled with errors?
I understand most of my questions are due to my lack of understanding c5.7 but I feel that the simple edits I want to make should be a lot easier to do than they have been, I am also confused as to why copying the Elemental theme doesn't seem to work, as it just becomes a mess when you do.
Picture after trying edit mode.
What version of 5.7 are you using?
Found out these also will break it.
Space in the theme name. 'test theme'
Hyphen 'test-theme
Underscore 'test_theme'
They all screw it up in different ways.
If so, was the problem resolved?
If not, what error or issues are you experiencing?
It turned out the original problem I had was the folder was named Test instead of test, apparently it was that simple. All of your steps worked out perfectly, thank you so much for helping me with this!
:]
"Call to a member function hasPageThemeGridFrameworkOffsetClasses() on a non-object"
underneath the slider. Any fixes?
Are you using the default grid framework or a custom grid framework?
At what step do you get the error?
public function getThemeName() { return t('Elemental'); } public function getThemeDescription() { return t('Elegant, spacious theme with support for blogs, portfolios, layouts and more.'); }
"Cannot redeclare class Concrete\Theme\Test\PageTheme"
EDIT: Oops! I figured it out. I had another "Test" theme in another directory where Elemental was stored, it was causing issues. After I deleted that one it worked perfectly, thanks.
In an attempt to recreate the errors you are having. I just went through the steps to use a copy of Elemental as a new theme called Test.
1. copy the elemental folder from the core themes directory into the application directory
2. rename the "elemental" folder to "test"
3. go to the Pages & Themes area in the dashboard
4. first error:
5. first error fix: in page_theme.php
find:
namespace Concrete\Theme\Elemental;
change to:
namespace Application\Theme\Test;
6. in your Test theme directory, open description.txt - change "Elemental" to "Test"
7. install the Test theme
8. activate the Test theme
9. return to website
10. second error:
11. second error fix: in main.less (application\themes\test\css\main.less)
find:
change to:
12. return to website
13. the site works and is now using a copy of Elemental called Test
For the most current information, refer to this How-To:
https://www.concrete5.org/documentation/how-tos/designers/how-to-cop...