This reference is organised by inspector tab. For each control it names the data path it writes and the server-side function that validates it β the two facts you need to predict whether a value will survive a save.
Content tab#
Controls here are per-widget and write to node.content.*. They are validated by the matching case in Jalpi_Sanitizer::sanitize_content(), or by sanitize_generic_content() for schema widgets.
See each widget page for its exact content schema; the shared primitives are:
| Control | Component | Values |
|---|---|---|
| Text | TextInput | Free string |
| Textarea | native <textarea> | Free string, newlines preserved |
| Rich text | contenteditable on the canvas | wp_kses_post() HTML |
| Select | Select | One option key |
| Toggle | checkbox | Boolean |
| Number / Slider | TextInput, SliderDimInput, PopupSliderField | Numeric string |
| URL | TextInput + DynamicTagPicker | http / https / mailto, or a {{tag}} |
| Media | MediaPickerInput, ImageUploadInput | Attachment URL via wp.media |
| Icon | IconInput + IconPickerModal | IconValue |
| Repeater | per-widget item editors | Arrays of item objects |
| Dynamic tag | DynamicTagPicker | Inserts {{tag}} into the focused field |
Style tab#
Writes to node.styles on desktop, or node.tabletStyles / node.mobileStyles on the other breakpoints. Validated by Jalpi_Sanitizer::sanitize_styles().
| Group | Control | Style key(s) | Accepted values |
|---|---|---|---|
| Alignment | AlignButtons | textAlign | left, center, right, justify |
| Typography | TypographyPopup | fontFamily | Letters, digits, spaces, quotes, commas, hyphens only |
| Typography | TypographyPopup | fontSize, lineHeight, letterSpacing, wordSpacing | Any sanitize_dimension() value |
| Typography | Select | fontWeight | normal, bold, bolder, lighter, or a 3-digit number |
| Typography | Select | fontStyle | normal, italic, oblique |
| Typography | Select | textTransform | none, uppercase, lowercase, capitalize |
| Typography | Select | textDecoration | none, underline, line-through, overline |
| Text Shadow | TextShadowPopup | textShadowH, textShadowV, textShadowBlur, textShadowColor | Composed into one text-shadow |
| Text Stroke | inputs | textStrokeWidth, textStrokeColor | Composed into -webkit-text-stroke |
| Colors | ColorPropRow | color, colorHover | Hex, rgb(a), hsl(a), 25 named keywords, var(--β¦) |
| Background | toggle | backgroundType | classic, gradient |
| Background | ColorPropRow | backgroundColor, backgroundColorHover | Colour |
| Background | ColorPropRow | gradientColor1, gradientColor2, and their Hover twins | Colour |
| Background | range | gradientAngle | \d+deg |
| Border | Select | borderStyle | none, solid, dashed, dotted, double, groove, ridge, inset, outset |
| Border | ColorInput | borderColor, borderColorHover | Colour |
| Border | BoxSpacingControl | borderTopWidth and the other three sides | Dimension |
| Border | BoxSpacingControl | borderRadius, plus the four corner keys | Dimension |
| Shadow | ImgBoxShadowPopup | boxShadow, boxShadowHover | sanitize_css_value() |
| Effects | slider | opacity | Float 0β1 |
| Display | Select | display | block, inline, inline-block, flex, grid, none |
| Size | DimensionInput | width, height, minHeight | Dimension |
| Icon | per-icon controls | iconSize, iconPadding, iconColorHover, iconBoxColor, iconBoxColorHover | Dimension / colour |
| Icon | input | iconRotate | \d+(\.\d+)?deg |
Advanced tab#
| Group | Control | Data path | Validator |
|---|---|---|---|
| Margin | BoxSpacingControl | styles.marginTop/Right/Bottom/Left | sanitize_dimension() |
| Padding | BoxSpacingControl | styles.paddingTop/β¦ β outerPadding* for buttons | sanitize_dimension() |
| Visibility | VisibilityDeviceRow | node.hideOn.{desktop,tablet,mobile} | Boolean cast in sanitize_node() |
| CSS | TextInput | settings.cssId | sanitize_html_class() |
| CSS | TextInput | settings.cssClass | Split on whitespace, each part sanitize_html_class()ed |
| Classes | ClassPicker | settings.cssClasses[] | sanitize_key(), deduplicated, capped at 50 |
| Custom CSS | CustomCssGroup | settings.customCss | sanitize_custom_css() β 5000 chars, injection patterns stripped |
| Width (heading / text) | DimensionInput | settings.elWidth | sanitize_text_field() |
| Background (heading / text) | SectionBgEditor | settings.bgNormal / bgHover | sanitize_bg_data() |
| Overlay (heading / text) | SectionBgEditor | settings.overlayNormal / overlayHover | sanitize_bg_data() |
| Border (heading / text) | group | settings.borderNormal / borderHover | sanitize_border_data() |
On tablet and mobile the tab shows a reduced set β Margin, Padding, Responsive Size (width, height), Responsive Typography (fontSize, fontWeight, lineHeight, letterSpacing, textAlign, color) and Order & Display β all writing into the breakpointβs sibling style map.
Settings tab (Section, Container, Column)#
For the three structural types the fourth tab is labelled Settings and shows SectionSettingsTab instead of the generic Advanced tab.
| Group | Keys |
|---|---|
| Layout β Section | contentWidth, boxedWidth, alignItems, height |
| Layout β Container | layoutMode, then the flex or grid key group |
| Layout β Column | width, alignSelf |
| Background | bgNormal, bgHover |
| Overlay | overlayNormal, overlayHover |
| Border | borderNormal, borderHover |
| CSS | cssId, cssClass, cssClasses, customCss |
Animation tab#
| Group | Control | Data path |
|---|---|---|
| Animation | AnimationPresetPicker | Creates an InteractionRule with trigger scrollIntoView |
| Interaction | InteractionRuleEditor | node.interactions[] |
| Interaction | per-breakpoint toggles | interactions[].responsive |
| Split Animation | SplitTextGroup | settings.st_* |
Background editor values#
SectionBgEditor writes a BgData object. Accepted type values, per sanitize_bg_data(): classic, gradient, video, slideshow, plus the legacy color and image.
| Field | Applies to | Validator |
|---|---|---|
color | classic | sanitize_color() |
imageUrl | classic | sanitize_url() |
imagePosition / imageSize | classic | sanitize_text_field() |
gradientColor1 / gradientColor2 | gradient | sanitize_color() |
gradientLocation1 / gradientLocation2 | gradient | Numeric |
gradientType | gradient | linear / radial |
gradientAngle | gradient | Numeric degrees |
videoUrl | video | sanitize_url() |
opacity | overlay buckets | Float |
Controls whose values do not persist#
These write style keys that sanitize_styles() does not accept, so the value is dropped on save. They are listed here so the behaviour is not mistaken for a rendering bug.
| Control | Key | Workaround |
|---|---|---|
| Position β Mode | position | Per-element Custom CSS |
| Position β Top / Right / Bottom / Left | top, right, bottom, left | Per-element Custom CSS |
| Position β Z-Index | zIndex | Per-element Custom CSS |
| Order & Display β Order | order | Per-element Custom CSS |
| Link Color / Link Color Hover | linkColor, linkColorHover | Custom CSS: selector a { color: β¦ } |
| Paragraph Spacing | paragraphSpacing | Custom CSS: selector p { margin-bottom: β¦ } |
The settings.position / posTop / posRight / posBottom / posLeft keys declared in the SectionSettings and ContainerSettings TypeScript interfaces are likewise absent from sanitize_settings() and from the PHP source entirely.
Important
- Everything in βControls whose values do not persistβ updates the canvas but is lost on save. Use per-element Custom CSS for those properties.
Source
Files
admin/editor/src/components/panels/PropertiesPanel.tsx includes/class-jalpi-sanitizer.php includes/class-jalpi-renderer.php admin/editor/src/types/index.ts
Classes
Jalpi_Sanitizer Jalpi_Renderer
Functions
sanitize_styles sanitize_settings sanitize_bg_data sanitize_border_data sanitize_custom_css styles_to_css
Last updated: November 2026