← Back to all posts
Uncategorized

WordPress -Sage Theme (Windows WSL)

  • Install WSL, Volta, Yarn
wsl --install

#hold shift on windows explorer directory then right click to open linux command prompt
volta install node
npm install --global yarn

https://learn.microsoft.com/en-us/windows/wsl/install
https://roots.io/sage/docs/installation/
https://nodejs.org/en/download 
https://getcomposer.org/download/ 
https://git-scm.com/download/win
  • Install Sage Theme, Acorn
#go to file php.ini and activate extension=zip
cd C:\laragon\www\wordpress\wp-content\theme
composer create-project roots/sage sage-theme
cd sage-theme
composer install
composer require roots/acorn

#add to composer.json 
"scripts": {
  //...
  "post-autoload-dump": [
    "Roots\\Acorn\\ComposerScripts::postAutoloadDump"
  ]
}

#Update bud.config.js with your local dev URL
#open linux command line (wsl linux)
yarn
yarn build

Continue Reading