Changes made in template CSS files are not retained - Forum | JoomShaper
Staff replied Templates

Changes made in template CSS files are not retained

Asked by giampaolo 6 months ago Last activity 6 months ago

I'm creating the shaper_resort template. When I make changes, the template.css and preset1.css files remain visible as long as I'm working. When I reopen the site the next day to continue working, I can't find the changes I've made, and the files revert to their original values, as if they'd automatically regenerated to the default settings. This problem has never occurred to me, even though I've been using your templates for almost a year on several sites. How do I fix it?

8 replies

giampaolo Asked this

I'm correcting the question. I've checked the modified files now and the values ​​are the ones I entered when I modified them, but I can't see them in the front end of the site. Why?

giampaolo Asked this

OK. Anyway, it's strange because I've used your templates, including the one in question, and I've always made the changes directly in the files, not in the custom.css, and they've never given me these problems. Why am I having this problem this time? Really strange.

Paul Frankowski Senior Staff

Editing template core file(s) is never a good idea.

Just use custom.css file for changes as we teach in manual.

giampaolo Asked this

and what if I need to modify the preset1 css file?

Paul Frankowski Senior Staff

What would happen if you update template in next weeks/months that will override that file anyway. think!!! you have answer already.

giampaolo Asked this
6 months ago · edited

ok I understood this and that is that I can modify the template.css file via custom.css file, but I would like to know what I should do to modify the preset1.css file
I also wanted to ask you to better understand why when I open the template.css file I see the changes I made but I don't see them on the site's front end. Which file does the site read that saw that the changes I made in the template.css file are there?
thank you

Paul Frankowski Senior Staff

check on front-end order of loading .css files, when custom.css is loaded, after or before presets and template.css

Log in to reply.