- Node.js https://nodejs.org/en/
- Sass https://sass-lang.com/
- Install latest version of Wordpress from https://wordpress.org/download/
cd path_to_wordpress/wp-content/rm -rf pluginsgit clone [email protected]:Shoptet/shoptet-wp-plugins.git pluginscd path_to_wordpress/wp-content/themes/git clone [email protected]:Shoptet/shoptet-wp-theme.git shoptet-wp-themecd shoptet-wp-themegit submodule initgit submodule updategit clone [email protected]:Shoptet/microsite-design-guide.git srccd srcnpm install- only for first timegrunt- enable watch mode for SCSS & JS filesgrunt build- build CSS & JS files
Go to WP admin and:
- set shoptet-wp-theme template
- activate installed plugins
- DO NOT edit anything outside src repository*
- you can use
src/functions.php, e.g. for registering new widgets - you can create custom page templates in
srcfolder - use as many shared parts as possible, use
template-partsfolder - log in to admin in editor role to avoid unwanted theme changes
- when the theme is ready, attach complete export from Wordpress
- in justified cases you can make pull request as well for [email protected]:Shoptet/microsite-styles.git or [email protected]:Shoptet/shoptet-wp-theme.git