I’m a longtime user of Trellis and Bedrock, but I’ve never ventured into Sage development – until now.
I’m interested in using Sage (9.0.0-beta.3) for a new project but haven’t been able to even activate the theme in WordPress.
I’ve successfully run these commands inside of my bedrock theme directory: site/web/app/themes/
composer create-project roots/sage sage dev-master
yarn
Yet I have no option to active my sage theme inside of WordPress’ admin interface.
Update: I’ve included my theme’s composer.json file below.
Did composer
ask you a bunch of questions? Did you answer them?
Of course!
{
"name": "roots/sage",
"type": "wordpress-theme",
"license": "MIT",
"description": "WordPress starter theme with a modern development workflow",
"homepage": "https://roots.io/sage/",
"authors": [
{
"name": "Ben Word",
"email": "ben@benword.com",
"homepage": "https://github.com/retlehs"
},
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
"homepage": "https://github.com/swalkinshaw"
}
],
"keywords": [
"wordpress"
],
"support": {
"issues": "https://github.com/roots/sage/issues",
"forum": "https://discourse.roots.io/"
},
"autoload": {
"psr-4": {
"Roots\\Sage\\": "app/lib/Sage/"
}
},
"require": {
"php": ">=5.6.4",
"composer/installers": "~1.0",
"illuminate/view": "~5.4.0",
"illuminate/config": "~5.4.0",
"soberwp/controller": "dev-master"
},
"require-dev": {
"squizlabs/php_codesniffer": "^2.8.0"
},
"scripts": {
"test": [
"phpcs"
],
"post-create-project-cmd": [
"Roots\\Sage\\PostCreateProject::updateHeaders",
"Roots\\Sage\\PostCreateProject::selectFramework",
"Roots\\Sage\\PostCreateProject::addFontAwesome",
"Roots\\Sage\\PostCreateProject::buildOptions"
]
}
}
Trellis, Bedrock and Sage are all the latest versions available. Is there a Sage installation instruction I could be overlooking?
What is your development environment?
Are you running bedrock in a Vagrant box provisioned using Trellis?
Are the directories (including themes/) mounted into the Vagrant box?