Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanve/subaction
WP child theme base for use with Action theme
https://github.com/ryanve/subaction
child-theme wordpress
Last synced: about 1 month ago
JSON representation
WP child theme base for use with Action theme
- Host: GitHub
- URL: https://github.com/ryanve/subaction
- Owner: ryanve
- Created: 2013-04-22T20:37:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-03T19:51:45.000Z (over 10 years ago)
- Last Synced: 2024-05-02T00:08:48.660Z (7 months ago)
- Topics: child-theme, wordpress
- Language: PHP
- Homepage: http://actiontheme.com
- Size: 160 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [subaction](../../)
#### starter WP child theme for use with the [action](https://github.com/ryanve/action) parent theme## Resources
- [actiontheme.com/#usage](http://actiontheme.com/#usage)
- [ryanve](https://github.com/ryanve)/[action](https://github.com/ryanve/action)## Hooks
Most customizations can be made via action or filter hooks. Use the [/subaction/functions.php](functions.php) file (or plugins) to add or remove actions or filters.
#### WP hook references
- [Actions API](http://codex.wordpress.org/Plugin_API#Actions)
- [Filters API](http://codex.wordpress.org/Plugin_API#Filters)
- [Actions list](http://codex.wordpress.org/Plugin_API/Action_Reference)
- [Filters list](http://codex.wordpress.org/Plugin_API/Filter_Reference)## Templates
Developers can override parent theme (/action) files by creating a file of the same name in the child theme (/subaction) folder.
For example, if you create `/subaction/branding.php`, it will override `/action/branding.php` file.
**Never edit files in the parent theme folder.** Override them from the child theme folder as described.
Copying files from `/action` to `/subaction` for editing there is fine.#### Scripts and styles
The proper way to add scripts or styles in WordPress is via the queue system. See [functions.php](functions.php) for example. Avoid hardcoding `link[rel="stylesheet"]` or `script[src]` tags in templates.
- [wp_enqueue_style()](http://codex.wordpress.org/Function_Reference/wp_enqueue_style)
- [wp_enqueue_script()](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)## Releasing your theme
Feel free to rename `subaction` to a custom name. To do so, simply change the folder name and the theme name in [style.css](style.css). Happy theming =)
## Fund
Fund development with [tips to @ryanve](https://www.gittip.com/ryanve/) =)
## License
[MIT](http://en.wikipedia.org/wiki/MIT_License)