Overrides being Overwritten
- This topic has 1 reply, 1 voice, and was last updated 1 year, 5 months ago by .
- November 22, 2019 at 5:39 pm#834twocats
Hoping I can get some assistance here. New to Publii, and am loving it so far. CMS-like functionality in a static site, without a database, is something I was looking for, and this is exactly what I wanted.
However, I’ve run into a roadblock that I can’t seem to work out.
Basically, I’m trying to set up an override for the style.css, for the technews theme.
I have the following setup, inside my themes folder:
I have the style.css saved in there. I made sure it’s not set to read-only (it was previously, but fixed the permissions/ownership on it, so it’s fine now).
So… I’m trying to change the background color for the “u-header” class from #fff to a darker gray color.
I edit the file, save.. and will re-open the file to make sure it’s still saved correctly (it is).
However, when I click “preview site” in Publii, the background of “u-header” is reverting to white. When I reopen the style.css file, it’s set back to #fff.
Isn’t the whole point of the overrides to, well, override the default theme settings? Why is it overwriting that file? It seems to defeat the purpose of having overrides, no?
I’m putting this in General Inquiry, because I don’t know if it qualifies as a bug. If it is, then perhaps an admin can move it to that area.
Either way, any help here is appreciated.
-TwoCatsNovember 22, 2019 at 9:08 pm#835twocats
So, I think I figured it out.
Seems you have to make CSS changes through the tools> custom CSS option, not through an override.
Will leave this here in case it can be helpful to anyone else with the same question.
- The topic ‘Overrides being Overwritten’ is closed to new replies.