Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Resolved] Do I need a child theme for JS and uploaded fonts?

Home Forums Support [Resolved] Do I need a child theme for JS and uploaded fonts?

Home Forums Support Do I need a child theme for JS and uploaded fonts?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #523557
    Roland

    Hi there,

    I’m using some extra CSS files and JS files. This is working well, but I’m not sure if these extra files will be erased in case of an update. I saved the files in the wp-content/themes/generatepress/css respectively /js folder. I also want to upload an icon font to the /fonts folder.

    My question is: Does an update delete all files in the theme folder or only the files that came with the theme?

    Second question: If a child theme is better for my purposes and I install it, there is no folder /ccs and /js below /generatepress_child. I think I need to create these folders in my child theme for my css and js files. Is that correct?

    Sorry for the stupid questions. I guess a) all files are deleted during an update and b) I’m better off with a child theme and just create the /css, /js, and /fonts folders myself. I’m just not sure…

    Greetings from Munich
    Roland

    GeneratePress 2.0.2
    GP Premium 1.5.6
    #523766
    Leo
    Staff
    Customer Support

    Hi there,

    Something like that is better to be handled by the child theme:
    https://docs.generatepress.com/article/using-child-theme/

    Let me know if this helps.

    #523899
    Roland

    Hi Leo,

    Thank you for your confirmation.

    I would basically like to know if an update will delete all files in /themes/generatepress or only those that belong to the theme. Just in case I don’t use a child theme for once.

    #524223
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Yes, when WP updates a theme or plugin, it removes the folder completely, then uploads the new one.

    #524747
    Roland

    Hi Leo, hi Tom,

    thank you for your answers. I really appreciate your work.

    #524764
    Leo
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.