Currently my folder structure looks something like
...\themes\MyTheme
- \lib
- \src
- index.php
- style.css
- more theme files
- .gitignore
- README.md
- many other non-Wordpress files
I’d like to change it into something more like
...\themes\MyTheme
- \lib
- \src
- \wp - Pretty much all my theme's .php files
- .gitignore
- README.md
- many other non-Wordpress files
1 Answer
The answer is yes. Like @Kvvaradha mentioned in his comments. If you put
header.php
footer.php
index.php
functions.php
style.css
must be in /wp-content/themes/your-theme-folder. And other your library, components and includes could be put anywhere that you prefer. But, make sure files and folders structure are flexible. Good luck in your codes 🙂