A Wordpress Plugin that registers a custom elements for Cornerstone editor.
- Custom Accordion (standard accordion with some extra fields included in the header) This is a work in progress by me, and also my first Open Source project, so please give feedback!
I decided to Open Source this because I noticed there's not much of a clear guideline from Themeco about how to create custom elements. Hoping that sharing my examples might help to get a clearer picture, and maybe we can write some documentation around it later too.
Big thanks to the team at X Theme Users (http://xthemeusers.com) for support. Please comment / PR as you like :)
Built from examples given in: https://community.theme.co/kb/cornerstone-introduction/
When working with the X Theme WP Template, we use the "Cornerstone" plugin for page editing. Instead of writing actual markup, Cornerstone uses UI components called "Elements". It comes with heaps of built in ones that we should try our best to use. But if we did need to make our own, we do it via this repo.
First time use -> This needs to get installed via Wordpress plugins (Appearance > Plugins > Add New). Zip the root directory of this repo and upload it. This basically 'registers' the plugin and connects it with Cornerstone.
Now when you use the Cornerstone Editor, under "Elements" your new elements will be visible