Free cookie consent management tool by TermsFeed Generator
All Products & Integrations

jalpi page builder docs

Content Controls

Every inspector control, its values, defaults, data path and validator.

Jalpi CoreDeveloper
3 min read Β· November 2026

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:

ControlComponentValues
TextTextInputFree string
Textareanative <textarea>Free string, newlines preserved
Rich textcontenteditable on the canvaswp_kses_post() HTML
SelectSelectOne option key
TogglecheckboxBoolean
Number / SliderTextInput, SliderDimInput, PopupSliderFieldNumeric string
URLTextInput + DynamicTagPickerhttp / https / mailto, or a {{tag}}
MediaMediaPickerInput, ImageUploadInputAttachment URL via wp.media
IconIconInput + IconPickerModalIconValue
Repeaterper-widget item editorsArrays of item objects
Dynamic tagDynamicTagPickerInserts {{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().

GroupControlStyle key(s)Accepted values
AlignmentAlignButtonstextAlignleft, center, right, justify
TypographyTypographyPopupfontFamilyLetters, digits, spaces, quotes, commas, hyphens only
TypographyTypographyPopupfontSize, lineHeight, letterSpacing, wordSpacingAny sanitize_dimension() value
TypographySelectfontWeightnormal, bold, bolder, lighter, or a 3-digit number
TypographySelectfontStylenormal, italic, oblique
TypographySelecttextTransformnone, uppercase, lowercase, capitalize
TypographySelecttextDecorationnone, underline, line-through, overline
Text ShadowTextShadowPopuptextShadowH, textShadowV, textShadowBlur, textShadowColorComposed into one text-shadow
Text StrokeinputstextStrokeWidth, textStrokeColorComposed into -webkit-text-stroke
ColorsColorPropRowcolor, colorHoverHex, rgb(a), hsl(a), 25 named keywords, var(--…)
BackgroundtogglebackgroundTypeclassic, gradient
BackgroundColorPropRowbackgroundColor, backgroundColorHoverColour
BackgroundColorPropRowgradientColor1, gradientColor2, and their Hover twinsColour
BackgroundrangegradientAngle\d+deg
BorderSelectborderStylenone, solid, dashed, dotted, double, groove, ridge, inset, outset
BorderColorInputborderColor, borderColorHoverColour
BorderBoxSpacingControlborderTopWidth and the other three sidesDimension
BorderBoxSpacingControlborderRadius, plus the four corner keysDimension
ShadowImgBoxShadowPopupboxShadow, boxShadowHoversanitize_css_value()
EffectsslideropacityFloat 0–1
DisplaySelectdisplayblock, inline, inline-block, flex, grid, none
SizeDimensionInputwidth, height, minHeightDimension
Iconper-icon controlsiconSize, iconPadding, iconColorHover, iconBoxColor, iconBoxColorHoverDimension / colour
IconinputiconRotate\d+(\.\d+)?deg

Advanced tab#

GroupControlData pathValidator
MarginBoxSpacingControlstyles.marginTop/Right/Bottom/Leftsanitize_dimension()
PaddingBoxSpacingControlstyles.paddingTop/… β€” outerPadding* for buttonssanitize_dimension()
VisibilityVisibilityDeviceRownode.hideOn.{desktop,tablet,mobile}Boolean cast in sanitize_node()
CSSTextInputsettings.cssIdsanitize_html_class()
CSSTextInputsettings.cssClassSplit on whitespace, each part sanitize_html_class()ed
ClassesClassPickersettings.cssClasses[]sanitize_key(), deduplicated, capped at 50
Custom CSSCustomCssGroupsettings.customCsssanitize_custom_css() β€” 5000 chars, injection patterns stripped
Width (heading / text)DimensionInputsettings.elWidthsanitize_text_field()
Background (heading / text)SectionBgEditorsettings.bgNormal / bgHoversanitize_bg_data()
Overlay (heading / text)SectionBgEditorsettings.overlayNormal / overlayHoversanitize_bg_data()
Border (heading / text)groupsettings.borderNormal / borderHoversanitize_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.

GroupKeys
Layout β€” SectioncontentWidth, boxedWidth, alignItems, height
Layout β€” ContainerlayoutMode, then the flex or grid key group
Layout β€” Columnwidth, alignSelf
BackgroundbgNormal, bgHover
OverlayoverlayNormal, overlayHover
BorderborderNormal, borderHover
CSScssId, cssClass, cssClasses, customCss

Animation tab#

GroupControlData path
AnimationAnimationPresetPickerCreates an InteractionRule with trigger scrollIntoView
InteractionInteractionRuleEditornode.interactions[]
Interactionper-breakpoint togglesinteractions[].responsive
Split AnimationSplitTextGroupsettings.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.

FieldApplies toValidator
colorclassicsanitize_color()
imageUrlclassicsanitize_url()
imagePosition / imageSizeclassicsanitize_text_field()
gradientColor1 / gradientColor2gradientsanitize_color()
gradientLocation1 / gradientLocation2gradientNumeric
gradientTypegradientlinear / radial
gradientAnglegradientNumeric degrees
videoUrlvideosanitize_url()
opacityoverlay bucketsFloat

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.

ControlKeyWorkaround
Position β†’ ModepositionPer-element Custom CSS
Position β†’ Top / Right / Bottom / Lefttop, right, bottom, leftPer-element Custom CSS
Position β†’ Z-IndexzIndexPer-element Custom CSS
Order & Display β†’ OrderorderPer-element Custom CSS
Link Color / Link Color HoverlinkColor, linkColorHoverCustom CSS: selector a { color: … }
Paragraph SpacingparagraphSpacingCustom 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