This plugin adds a new page at WPBakery Page Builder > Disable Elements so you can disable elements not in use. This plugin was created for use wit …
This plugin adds a new page at WPBakery Page Builder > Disable Elements so you can disable elements not in use. This plugin was created for use with the Total Theme since many of our customers have requested it, but it should work with any well coded theme.
Screenshots
FAQ
Why would I use this plugin?
The WPBakery Page Builder includes many core elements and depending on what theme or addon plugins you are using it could include even more. If there are elements you either don’t like or don’t need for your website this plugin can be used to unregister them and remove unnecessary bloat.
What happens when I disable an element?
Disabled elements pass through the WPBakery vc_remove_element which removes them from the page builder “mapper” and are also unregistered from the site via the core remove_shortcode function.
Why do I see disabled elements code on the site?
This plugin does not scan your site and remove any previously added elements. When you disable an element it becomes unregistered and won’t render on the live site so instead you will see the shortcode in text form.
Technically we could code the plugin to “hide” disabled element’s output on the front-end automaticall. To do so, would require registering disabled elements as shortcodes with an empty output, which, defeats would defeat the purpose of the plugin (slim down bloat).
If you wish to remove all previously added elements from a site this would require manual site editing.
ChangeLog
1.2
- Updated the tested up to version number to 6.6.
- Updated the admin page so the elements are ordered alphabetically.
- Updated the admin page so the elements are shown with the enabled elements first and the disabled ones last.
- Updated the admin page design so the table has a max-width so it’s not so overwhelming.
- Updated the admin page so you can click on an element’s table row to enable/disable it without having to click on the checkbox.
- Removed the element descriptions on the admin page to slim down the table.
1.1
- Removed the required elements from the list of items that can be disabled (Row, Inner Row, Column, Inner Column) to prevent errors.
- Updated the admin page to include labels so you can click the element names to uncheck/check items.
- Updated the get_disabled_elements() function to be public.
- Added extra permissions check to the admin screen.
1.0