Contributors: webdevstudios
Donate link: https://webdevstudios.com
Tags:
Requires at least: 4.4
Tested up to: 4.7.2
Stable tag: 0.0.0
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
The WDS Components Library is a collection of WordPress-ready components that can be dropped into any WordPress project. The WDS Components Library works really great with our starter theme wd_s, but can be used with any WordPress theme.
Integration with Advanced Custom Fields Pro.
- Upload the entire
/wds-component-library
directory to the/wds-content/plugins/
directory. - Activate WDS Component Library through the 'Plugins' menu in WordPress.
- Create an issue so we can discuss your brilliant idea.
- Fork WDS Components Library
- Create a feature branch off master, e.g. git checkout -b feature/my-awesome-feature
- Commit your changes to your feature branch
- Continue merging master into your feature branch while working
- Test Test Test
- Submit a pull request
- If your pull request passes our tests, we'll merge your PR
- Celebrate! 🍻
The WDS Component Library is built with the WDS Plugin Generator, so a basic knowledge of adding includes with the plugin generator is a good start.
You will also need ACF Pro to view / add / update custom fields.
You will also need node.
Once you have all prerequisites, run
npm install
within the wds-components-library
directory.
To add a new component, add a template part to the components
directory. Components should be named component-
+ name_of_component.php
. name_of_component
must match the name used within the ACF Components flexible content field group (including underscores). This allows the component display function to automatically grab the correct template part.
As an example, let's look at the image hero component. Within the flexible content field group, it is named image_hero
. Therefore, it's template part must be named component-image_hero.php
.
Please see the README.md within the components
directory for more information.
- First release
First Release