[Resolved] My style sheet loses the last changes

Home Forums Support [Resolved] My style sheet loses the last changes

Home Forums Support My style sheet loses the last changes

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #291123
    Gustavo

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

    #291213
    Leo
    Staff
    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.

    #291277
    Tom
    Lead Developer
    Lead Developer

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

    #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.

    #291449
    Leo
    Staff
    Customer Support

    Sorry is this resolved now?

    #291456
    Gustavo

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

    #291462
    Leo
    Staff
    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.

    #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?

    #291481
    Leo
    Staff
    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.

    #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.

    #291553
    Leo
    Staff
    Customer Support

    Yup that will be fine as well.

    #291913
    Gustavo

    Thanks, Leo!

    #292159
    Leo
    Staff
    Customer Support

    You’re welcome!

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.