Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vanbess/sb-dev-underscores-wordpress-theme-boilerplate
A WordPress starter theme template based on the well known Underscores starter theme. Provides a great template to get your custom WP theme going.
https://github.com/vanbess/sb-dev-underscores-wordpress-theme-boilerplate
wordpress wordpress-development wordpress-theme
Last synced: 3 days ago
JSON representation
A WordPress starter theme template based on the well known Underscores starter theme. Provides a great template to get your custom WP theme going.
- Host: GitHub
- URL: https://github.com/vanbess/sb-dev-underscores-wordpress-theme-boilerplate
- Owner: vanbess
- License: gpl-2.0
- Created: 2024-07-14T17:26:04.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T17:32:30.000Z (5 months ago)
- Last Synced: 2024-11-02T14:42:15.511Z (about 2 months ago)
- Topics: wordpress, wordpress-development, wordpress-theme
- Language: PHP
- Homepage:
- Size: 564 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Silverback Dev Underscores WordPress Theme Starter/Boilerplate
===Hi. I'm a fork of the starter theme called _s (aka Underscores). I'm a template theme meant to be the next, most awesome, WordPress theme out there. That's what I'm here for. Simply click on the green 'Use this template' button to create your own new repo with this one as template.
Installation
---------------### Requirements
`_s` requires the following dependencies:
- [Node.js](https://nodejs.org/)
### Quick Start
#### Docker DEV Environment (optional)
Naaah, don't use Docker, seriously... It's way too heavy/bloated for this kind of work.
#### Theme
Change the theme's name to something else (like, say, `megatherium-is-awesome`), and then you'll need to do a seven-step find and replace on the name in all the templates.
1. Search for `'_s'` (inside single quotations) to capture the text domain and replace with: `'megatherium-is-awesome'`.
2. Search for `_s_` to capture all the functions names and replace with: `megatherium_is_awesome_`.
3. Search for `Text Domain: _s` in `css/style.scss` and replace with: `Text Domain: megatherium-is-awesome`.
4. Search for `_s.pot` and replace with: `megatherium-is-awesome.pot`.
5. Search for_s
(with a space before it) to capture DocBlocks and replace with:Megatherium_is_Awesome
.
6. Search for `_s-` to capture prefixed handles and replace with: `megatherium-is-awesome-`.
7. Search for `_S_` (in uppercase) to capture constants and replace with: `MEGATHERIUM_IS_AWESOME_`.Then, update the stylesheet header in `css/style.scss` and rename `_s.pot` from `languages` folder to use the theme's slug.
### Setup
To start using all the tools that come with `_s` you need to install the necessary Node.js dependencies :
```sh
$ npm install
```### Available CLI commands
`_s` comes packed with CLI commands tailored for WordPress theme development :
- `npm run watch` : watches _all_ SASS and JS files and recompiles them when they change.
- `npm run build` : compiles _all_ SASS and JS files for production use.#### Icon font
You can easily create your own icon font. Put all your svg icons in `/media/fonts/Icont/icons`
and run `npm run icont:generate`.List all your icons (alphabetical order) in `/css/_variables.scss` to create a map
to convenient access the content declaration of the icons: e.g. `map-get($Icont, NAME)`;---
Now you're ready to go! The next step is easy to say, but harder to do: make an awesome WordPress theme. :)
Happy coding and good luck!