This WordPress plugin demonstrates how to create custom elements for the WPBakery Page Builder. It includes simple and essential examples covering common use cases, making it a helpful starting point for developers extending WPBakery with their own elements.
Clone this repo to your wp-content/plugins folder of your wordpress project.
git clone https://github.com/wpbakery/dev-example.gitThen go to wordpress dashboard plugins section, and activate the newly installed "WPBakery: Kitchen sink custom elements" plugin there.
Alternatively, if you have WP-CLI set up, you can install and activate the plugin using a terminal command.
wp plugin install https://github.com/wpbakery/dev-example/archive/refs/heads/main.zip --activate --force;
wp plugin activate dev-example;After plugin activation, you can find all plugin elements in the "Test Elements" category in the WPBakery editor.

- Folder:
elements/basic - Description:
- A simple box element with a title and content.
- Customizable background and text color.
- Uses standard WPBakery parameters for easy editing.
- Output is styled with padding, border radius, and box shadow.
- Folder:
elements/with-custom-class - Description:
- Pricing box element with discount logic handled in a custom PHP class.
- Parameters for title, base price, discount, label, background color, and features list.
- Demonstrates how to extend element logic using PHP classes.
- Folder:
elements/with-custom-param - Description:
- Element featuring a custom parameter type (multi-checkboxes).
- Lets users select one or more options via custom radio/checkbox UI in the WPBakery editor.
- Shows how to register and use custom param types in WPBakery.
- Folder:
elements/html-template-base - Description:
- Show how use html_template vc_map param to render output using a separate HTML template file.
- Show how to use the custom js_view vc_map param.
- Folder:
elements/container - Description:
- A container element that allows nesting of other elements.
- Container supports background color customization.
- Demonstrates use of
as_parentandis_containerfor nested/child elements in WPBakery.