WordPress Themes Editing
Working with Theme in WordPress and WordPress Local
- Open Project
- Navigate to files and have open to edit:
src/themes/project-name/src/sass/theme/components/respective-file.scss
also opensrc/themes/project-name/template/created-item-file.php
also opensrc/themes/project-name/archive-file.php
- Once files are open, resource file is made within WP-Admin in Advanced Custom Fields and creating a new post type, link respective items required of post type and save
- Editing files or CSS of said components requires navigating from CLI to
c/repos/Project-Repo-Name/themes/project-name/src
and runningnpm run watch
. This will compile and rebuild the SCSS to serve to the browser. - Additionally, WP Local must be running the site, and a Symbolic Link must have been established from the
site folder
within WP Local and your local repository.
This post is licensed under CC BY 4.0 by the author.