Editing main.css file
Permalink
Hi,
I've done a bunch of edits to my main.css file but I have a suspicion that I've done it in the completely wrong place - I'm a bit of a noob.
The only main.css file I could find was in /MySite/application/files/cache/css/equinox/main.css which is also the style sheet referenced in the header of my site:. However, I'm worried I'm going to loose this work at some stage given it's in a cache folder?
A friend has said that it's better to go through Page Settings and then customize the theme from there but I find it hard to work this way.
Should I:
1. Continue working in /MySite/application/files/cache/css/equinox/main.css?
2. Make a copy of my main.css somewhere else and change the reference to my stylesheet to a different directory? (where is the best place to save the main.css file and which php file will I need to update?)
3. Make a copy of my main.css file and save it somewhere where it will overwrite the styles (where?)?
4. stop working in css files directly and go through Page Settings > Theme > Customization (urgh)?
Not sure what best practice is for working with css in concrete5?
Thanks,
Choppie
I've done a bunch of edits to my main.css file but I have a suspicion that I've done it in the completely wrong place - I'm a bit of a noob.
The only main.css file I could find was in /MySite/application/files/cache/css/equinox/main.css which is also the style sheet referenced in the header of my site:
<link href="/CinemaParadiso/application/files/cache/css/equinox/main.css" rel="stylesheet" type="text/css" media="all">
A friend has said that it's better to go through Page Settings and then customize the theme from there but I find it hard to work this way.
Should I:
1. Continue working in /MySite/application/files/cache/css/equinox/main.css?
2. Make a copy of my main.css somewhere else and change the reference to my stylesheet to a different directory? (where is the best place to save the main.css file and which php file will I need to update?)
3. Make a copy of my main.css file and save it somewhere where it will overwrite the styles (where?)?
4. stop working in css files directly and go through Page Settings > Theme > Customization (urgh)?
Not sure what best practice is for working with css in concrete5?
Thanks,
Choppie
Hi Ramon,
There is indeed! \MySite\packages\equinox\themes\equinox\css\main.less.
Does that mean I should be doing my changes in the main.less file instead?
Cheers,
Choppie
There is indeed! \MySite\packages\equinox\themes\equinox\css\main.less.
Does that mean I should be doing my changes in the main.less file instead?
Cheers,
Choppie
Yup, you should/could. But bear in mind if you update the theme at some point, changes will be lost.
How to make an oweride file and where. I just start using C5. I now how to do this in joomla but not here.
OK. I resolve that with installing the Clonemental theme for editing.
Thank you.
Thank you.
packages/equinox/themes/equinox/css/main.less.
Something like that. Or less/main.less, not sure what is used as I haven't got this theme. Do not edit your cache files, as they may get overwritten at some point.