https://github.com/wpdew/_smodule
https://github.com/wpdew/_smodule
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/wpdew/_smodule
- Owner: wpdew
- License: mit
- Created: 2021-12-21T07:54:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-22T10:43:51.000Z (over 4 years ago)
- Last Synced: 2025-01-11T06:26:35.532Z (over 1 year ago)
- Language: CSS
- Size: 460 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
_smodule
===
Hi. I'm a starter module called `_smodule`. Instead try turning me into the next, most awesome, WordPress module out there. That's what I'm here for.
Getting Started
---------------
If you want to keep it simple, head over to http://wpdew.ru/ and generate your `_smodule` based module from there. You just input the name of the module you want to create, click the "Generate" button, and you get your ready-to-awesomize starter module.
If you want to set things up manually, download `_smodule` from GitHub. The first thing you want to do is copy the `_smodule` directory and change the name to something else (like, say, `megatherium-is-awesome`), and then you'll need to do a five-step find and replace on the name in all the templates.
1. Search for `'_s'` (inside single quotations) to capture the text domain.
2. Search for `_s_` to capture all the function names.
3. Search for `Text Domain: _s` in `style.css`.
4. Search for _s (with a space before it) to capture DocBlocks.
5. Search for `_s-` to capture prefixed handles.
OR
1. Search for: `'_s'` and replace with: `'megatherium-is-awesome'`
2. Search for: `_s_` and replace with: `megatherium_is_awesome_`
3. Search for: `Text Domain: _s` and replace with: `Text Domain: megatherium-is-awesome` in `style.css`.
4. Search for: _s and replace with: Megatherium_is_Awesome
5. Search for: `_s-` and replace with: `megatherium-is-awesome-`
Then, update the rename `_s.pot` from `languages` folder to use the module's slug. Next, update or delete this readme.
Now you're ready to go! The next step is easy to say, but harder to do: make an awesome WordPress module. :)
Good luck!