Timeline for If I place custom files in Wordpress root, will they be deleted?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2020 at 21:45 | comment | added | 023023 | I created a must-use plugin as a replacement for functions.php, but instead of using the CSS inside of it, I'm using a css import, here's why I needed to know my custom css file would be overridden upon an update, the file is inside the root folder, but I also have a custom folder in the root and a custom folder inside wp-content. | |
Jun 16, 2020 at 20:14 | comment | added | mozboz | @023023 You can put the file wherever you want. The question is only what location works best for the way Wordpress works and what you're doing. My suggestion is to make your own theme and put the CSS in there as that is a good place, but there are many ways to do it. I'll write another answer with some other options | |
Jun 16, 2020 at 18:40 | comment | added | 023023 | I don't want to put files inside the theme directory. I'm asking if I can put them in the root directory and inside the wp-content folder. | |
Jun 16, 2020 at 13:09 | comment | added | Jacob Peattie | You should not be adding files to the theme directory. They will be erased if/when the theme is updated. Exactly what they were trying to avoid. | |
Jun 16, 2020 at 8:22 | history | answered | mozboz | CC BY-SA 4.0 |