Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)