Summary
When using BB Lite, clearing the description field in either the Flip Box or Slide Box module and saving/publishing causes the dummy placeholder text to appear on the frontend instead of nothing.
Root Cause
Beaver Builder Lite does not persist an empty string when an editor field is cleared. It falls back to the field's registered default value. The current rendering check in frontend.php for both modules is:
```php
if ( '' !== $settings->desc_front ) {
```
This only guards against a true empty string ''. When BB Lite saves a cleared editor field, it may save <p></p> or <p><br></p> rather than a true empty string, or it reverts to the default Lorem Ipsum text entirely. Either way, the check passes and the dummy text renders on the live page.
This issue does not reproduce with BB Pro, which correctly persists empty editor values.
Fix
Replace the empty string check with trim( wp_strip_all_tags() ) in the frontend.php of both affected modules. This strips all HTML tags and whitespace before the check, so <p></p>, <p><br></p>, and similar empty HTML structures are treated as empty and not rendered. Real content — including the Lorem Ipsum placeholder on freshly added modules — continues to render correctly.
Files changed:
modules/flip-box/includes/frontend.php — desc_front and desc_back checks
modules/slide-box/includes/frontend.php — desc_front and desc_back checks
Diff:
```diff
- if ( '' !== $settings->desc_front ) {
- if ( '' !== trim( wp_strip_all_tags( $settings->desc_front ) ) ) {
```
(same change applied to desc_back in both modules)
Steps to Reproduce
- Install BB Lite + UABB Lite (no other plugins, default theme)
- Add a Flip Box or Slide Box module to a page
- Clear the description field completely
- Save and publish
- Visit the live page — Lorem Ipsum dummy text appears
Expected Behaviour
No description rendered when the field is empty.
Environment
- UABB Lite: 1.6.10
- BB Lite: 2.10.1.5
- WordPress: latest
- PHP: 8.x
Related support ticket: #1467956
Summary
When using BB Lite, clearing the description field in either the Flip Box or Slide Box module and saving/publishing causes the dummy placeholder text to appear on the frontend instead of nothing.
Root Cause
Beaver Builder Lite does not persist an empty string when an
editorfield is cleared. It falls back to the field's registereddefaultvalue. The current rendering check infrontend.phpfor both modules is:```php
if ( '' !== $settings->desc_front ) {
```
This only guards against a true empty string
''. When BB Lite saves a cleared editor field, it may save<p></p>or<p><br></p>rather than a true empty string, or it reverts to the default Lorem Ipsum text entirely. Either way, the check passes and the dummy text renders on the live page.This issue does not reproduce with BB Pro, which correctly persists empty editor values.
Fix
Replace the empty string check with
trim( wp_strip_all_tags() )in thefrontend.phpof both affected modules. This strips all HTML tags and whitespace before the check, so<p></p>,<p><br></p>, and similar empty HTML structures are treated as empty and not rendered. Real content — including the Lorem Ipsum placeholder on freshly added modules — continues to render correctly.Files changed:
modules/flip-box/includes/frontend.php—desc_frontanddesc_backchecksmodules/slide-box/includes/frontend.php—desc_frontanddesc_backchecksDiff:
```diff
```
(same change applied to
desc_backin both modules)Steps to Reproduce
Expected Behaviour
No description rendered when the field is empty.
Environment
Related support ticket: #1467956