- This topic has 12 replies, 3 voices, and was last updated 3 years, 4 months ago by Leo.
March 14, 2017 at 2:26 am #291123Gustavo
Lately, my styles sheet loses the last changes I’ve made. What can be happening?
Thank you!GeneratePress 1.3.44March 14, 2017 at 8:07 am #291213LeoStaffCustomer SupportMarch 14, 2017 at 10:15 am #291277TomLead DeveloperLead DeveloperMarch 14, 2017 at 1:18 pm #291447Gustavo
This time I forgot to create the theme son!!:( (I’m working directly on the template)
Styles disappear once I save the style sheet, for example, all the styles I wrote yesterday, today they were not, he had to rewrite them.
Thank you.March 14, 2017 at 1:26 pm #291449LeoStaffCustomer SupportMarch 14, 2017 at 1:33 pm #291456Gustavo
I would like to know if the problem has been caused by not having created the child theme.
Thanks.March 14, 2017 at 1:44 pm #291462LeoStaffCustomer Support
Yup if you add CSS to the theme’s stylesheet or made changes to the theme’s core files then it won’t be saved through updates.
Any additional CSS or custom functions should be added using one of these methods here:
If you don’t have lots of CSS then I would recommend Simple CSS plugin: https://docs.generatepress.com/article/adding-css/#simple-css
This page explains when you should be considering a child theme:
Let me know if this answers your question.March 14, 2017 at 1:57 pm #291479Gustavo
I’m already using Simple CSS, that’s where I write styles.
Is it possible to create a child theme and preserve the css files and styles I have already written?March 14, 2017 at 2:00 pm #291481LeoStaffCustomer SupportMarch 14, 2017 at 3:33 pm #291544Gustavo
Thanks for the good news, Leo! 🙂
And the rest of the files will be preserved? I have used sections in all of them.March 14, 2017 at 3:53 pm #291553LeoStaffCustomer SupportMarch 15, 2017 at 2:30 am #291913Gustavo
Thanks, Leo!March 15, 2017 at 7:43 am #292159
- You must be logged in to reply to this topic.