Lightweight Wordpress theme focusing on performance and accessibility.
Using Roots Sage as a foundation.
Add the repository as a vcs repo in the repositories section of your composer.json.
{
"type": "vcs",
"url": "https://github.com/xolof/sleipnir"
}
Install the package.
composer require xolof/sleipnir
Go to the theme's directory. In Roots Bedrock it will be in web/app/themes/sleipnir.
cd web/app/themes/sleipnir
composer install
npm i
composer install --no-dev --optimize-autoloader
npm install
npm run build
rm -rf node_modules
Activate the theme in WordPress admin under Appearance >> Themes.
To serve the theme's assets, go to the theme's directory and run:
npm run dev
You will also need to serve Wordpress. I have been using PHP's dev server with some extra workers.
In the directory where index.php of WordPress is located:
#!/usr/bin/bash
export PHP_CLI_SERVER_WORKERS=10 && \
php -S localhost:4000
- Installation with Composer.
- More styling.
- Basic styling.
- Mobile menu.
- Metatags for SEO.
- Image conversion to WebP on upload.
- Disabling of dashicons on frontend.
- Removal of custom CSS section in admin.