Skip to main content

CMDG 18: Override built-in modules

Any of the built-in modules can be overridden within your theme by following the steps below.

  1. Create a new folder in your theme's folder named fl-builder.
  2. Create a new folder within your theme's fl-builder folder named modules.
  3. Copy the entire module folder you wish to override from wp-content/plugins/bb-plugin/modules to your theme's fl-builder/modules folder.
Note

Copy the entire module folder and its contents, not just the files you want to override.

The example tree below shows what this structure would look like if you were using the Beaver Builder child theme.

/bb-theme-child
├── fl-builder
│   └── modules
│   ├── audio
│   ├── button
│   ├── menu
│   └── post-grid
├── functions.php
└── style.css

That's it! You can now start editing the module to suit your needs. Note that even though you can customize the module's code, the module's folder name, main PHP file name, and main class name must remain unchanged to be recognized by Beaver Builder.

Tip:

If you’re not seeing your changes, try clearing the Beaver Builder cache.