Home › Forums › Support › My style sheet loses the last changes This topic has 12 replies, 3 voices, and was last updated 7 years, 1 month ago by Leo. Viewing 13 posts - 1 through 13 (of 13 total) Author Posts March 14, 2017 at 2:26 am #291123 Gustavo Hello Tom, Lately, my styles sheet loses the last changes I’ve made. What can be happening? Thank you! March 14, 2017 at 8:07 am #291213 LeoStaff Customer Support 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. March 14, 2017 at 10:15 am #291277 TomLead Developer Lead Developer Does the CSS you add disappear after you save, or does it just not work on the site? March 14, 2017 at 1:18 pm #291447 Gustavo 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. March 14, 2017 at 1:26 pm #291449 LeoStaff Customer Support Sorry is this resolved now? March 14, 2017 at 1:33 pm #291456 Gustavo Hi leo, 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 #291462 LeoStaff Customer 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: 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. March 14, 2017 at 1:57 pm #291479 Gustavo 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? March 14, 2017 at 2:00 pm #291481 LeoStaff Customer Support 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. March 14, 2017 at 3:33 pm #291544 Gustavo 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 #291553 LeoStaff Customer Support Yup that will be fine as well. March 15, 2017 at 2:30 am #291913 Gustavo Thanks, Leo! March 15, 2017 at 7:43 am #292159 LeoStaff Customer Support You’re welcome! Author Posts Viewing 13 posts - 1 through 13 (of 13 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In