Skip to content

v1.0.14 — plugin-level section padding

Choose a tag to compare

@jcasey76 jcasey76 released this 21 May 15:51
· 18 commits to main since this release

New setting: Section padding (top/bottom + left/right) under Behavior in the AQM Popup settings.

Why this exists

Divi's Fullwidth Sections have `padding: 0` locked in the theme's base CSS at specificity (0,2,0). Divi UI's own padding control on a Fullwidth Section generates per-section CSS at lower specificity (0,1,0), so the lock wins and the Divi UI padding setting is silently ignored. The `Section → Advanced → Custom CSS → Main Element` workaround with `!important` also fails because Divi has multiple internal locks for fullwidth section padding.

How v1.0.14 fixes it

When you set a value in the new Section padding fields, the plugin emits an inline `<style>` block targeting:

```css
#aqm-popup-content .et_pb_section {
padding: Vpx Hpx !important;
}
```

Specificity 1,1,0 + `!important` reliably beats Divi's fullwidth lock, and the padding is applied to the Divi section element itself — NOT the overlay or container. Your section's background, border, and box-shadow still cover the padded area.

Behavior matrix

Setting Result
Both = 0 (default) No `<style>` emitted; Divi UI controls section padding (works fine for Regular Sections, ignored for Fullwidth Sections)
Vertical = 60, Horizontal = 0 Section gets 60px top/bottom, 0 left/right
Vertical = 60, Horizontal = 40 Section gets 60px top/bottom, 40px left/right
Edge-to-edge mode ON + padding set here Edge-to-edge zeros row/column/module spacing; this setting controls section padding