Site logo

Archived topic

My style sheet loses the last changes

12 replies · Started by Gustavo on March 14, 2017

Viewing posts 1–13 of 13

Hello Tom,
Lately, my styles sheet loses the last changes I've made. What can be happening?
Thank you!

Hi Gustavo,

Can you explain a little more? Was it changes made in the theme's style sheet or your child theme's style sheet?

Let us know.

Does the CSS you add disappear after you save, or does it just not work on the site?

Hello Tom,
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.

Sorry is this resolved now?

Hi leo,
I would like to know if the problem has been caused by not having created the child theme.
Thanks.

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:
https://docs.generatepress.com/article/adding-css/
https://docs.generatepress.com/article/adding-php/

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:
https://docs.generatepress.com/article/using-child-theme/

Let me know if this answers your question.

Thanks Leo,
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?

The CSS inside Simple CSS will still be there if you start a child theme right now :)

The only time you risk losing changes is when you make them to the parent theme files.

Thanks for the good news, Leo! :)
And the rest of the files will be preserved? I have used sections in all of them.

Yup that will be fine as well.

Thanks, Leo!

You're welcome!

This archived topic is closed to new replies.