|
/ Documentation /Spectra 3 Beta/ Responsive Control In Spectra

Responsive Control In Spectra

Design once, perfect for every screen. Adjust block settings separately for DesktopTablet, and Mobile—all inside the Gutenberg editor.

What Are Responsive Controls?

Responsive Controls let you design your blocks differently for Desktop, Tablet, and Mobile — all inside the Gutenberg editor.

No extra tools. No coding. Just switch the device view and adjust settings.

Key Benefits

  • Device-specific design: Tweak spacing, typography, layout, and more per device.
  • Live preview: Instantly see changes in WordPress’ device preview.
  • Smart inheritance: Smaller devices inherit from larger ones unless you override.

Quick Start

  1. Select a Spectra block in the Gutenberg editor.
  2. Open responsive panels like Layout, Typography, Dimensions, Border & Shadow, Background, or Content in the sidebar Settings or Styles tab.
  3. Switch device views by clicking the device buttons (Desktop/Tablet/Mobile) in any panel header—Desktop is active by default.
  4. Adjust settings for each device as needed. Your changes apply only to the currently selected device.

Pro tip: Look for the monitor-smartphone icon next to control labels—this indicates you can set device-specific values for that control.

Device Buttons & Breakpoints

DeviceBreakpoint (px)Inherits From
Desktop≥ 1024—
Tablet768–1023Desktop (if unset)
Mobile≤ 767Tablet → Desktop (if unset)
  • Device buttons appear in panel headers when that panel contains responsive controls.
  • Buttons synchronize with WordPress’ core device preview—clicking either updates both.

How It Works (Workflow)

  1. Select a device via a Spectra panel button or the WordPress core preview.
  2. The preview switches to that device, and all device buttons sync.
  3. Change values—they’re saved only for the active device.
  4. Switch devices anytime to view/edit that device’s values.

Active device is highlighted everywhere.

Inheritance & Reset

Spectra follows a cascading model (like CSS):

  • Mobile: Mobile → (fallback) Tablet → (fallback) Desktop → (fallback) Block defaults
  • Tablet: Tablet → (fallback) Desktop → (fallback) Block defaults
  • Desktop: Desktop → (fallback) Block defaults

Reset options

  • Per control: Right-click a responsive control → Reset clears the current device’s value (inherits from parent device).
  • Per panel: Use the panel menu → Reset to clear all responsive controls in that panel for the current device.

Examples

  • Mobile padding reset: Desktop 20px, Tablet 15px, Mobile 10px → Reset Mobile → becomes 15px (inherits Tablet).
  • Tablet margin reset: Desktop 30px, Tablet 20px → Reset Tablet → becomes 30px (inherits Desktop). Mobile stays unchanged.

On Tablet: “Inherits from Desktop on reset.”
On Mobile: “Inherits from Tablet or Desktop on reset.”

Visual Feedback & Accessibility

  • Active device state: Highlighted device button; ARIA attributes update for screen readers.
  • Help notices: Context messages on Tablet/Mobile panels explain inheritance.
  • Polished UI: Subtle hover states and transitions for smooth interaction.

Supported Controls (Core)

The following WordPress core controls are responsive across Spectra blocks:

Layout

  • Flow, Flex, Constrained, Grid

Typography

  • Font â€“ Choose the typeface
  • Size â€“ Adjust font size (px, em, rem, etc.)
  • Appearance â€“ Font weight & style (e.g., bold, italic)
  • Line height â€“ Vertical spacing between lines
  • Letter spacing â€“ Space between characters
  • Decoration â€“ Text decoration (underline, strikethrough, etc.)
  • Orientation â€“ Text direction/vertical orientation
  • Letter case â€“ Transform text case (uppercase, lowercase, capitalize)

Dimensions

  • Padding â€“ Inner spacing around content
  • Margin â€“ Outer spacing around elements
  • Block Gap â€“ Space between child elements
  • Row span â€“ Number of rows an item spans in a grid
  • Column span â€“ Number of columns an item spans in a grid
  • Row start â€“ Starting row position in a grid
  • Column start â€“ Starting column position in a grid
  • Flex size / width â€“ Options like Fit, Grow, Fixed

Border & Shadow

  • Border width, style, color, radius
  • Shadow (where supported)

Block-Specific Responsive Attributes (Spectra)

Values listed below are per-device configurable when you see device buttons in the panel header.

Container

PanelControls
DimensionsWidth, Height, Min W, Min H, Max W, Max H
BackgroundBackground Type â€“ Choose None, Image, or Video
Background Size â€“ Cover, Contain, Auto sizing options
Background Repeat â€“ No Repeat, Repeat, Repeat X, Repeat Y
Background Position â€“ Focal Point Picker for image positioning

Google Map

PanelControls
DimensionsHeight

Text

PanelControls
Border & ShadowEnable Text Shadow â€“ Toggle on/off
Shadow Color â€“ Text shadow color picker
X Offset â€“ Horizontal shadow shift
Y Offset â€“ Vertical shadow shift
Blur Radius â€“ Shadow blur strength

Button

PanelControls
DimensionsIcon size, Text-Icon Gap

Icon

PanelControls
DimensionsSize

Accordion

PanelControls
DimensionsSize

Accordion Child Header Icon

PanelControls
DimensionsSize

Tabs

PanelControls
DimensionsSize

Tabs Child Tab Button

PanelControls
DimensionsSize, Gap

Countdown

PanelControls
DimensionsWidth, Height, Min W, Min H, Max W, Max H

List

PanelControls
DimensionsIcon Size

List Child Icon

PanelControls
DimensionsIcon Size

Slider

PanelControls
GeneralSlides Per View, Space Between Slides
DimensionsSlider Height, Navigation Size, Arrow Icon Size, Arrow Distance, Dots Position
BackgroundBackground Type â€“ Choose None, Image, or Video
Background Size â€“ Cover, Contain, Auto sizing options
Background Repeat â€“ No Repeat, Repeat, Repeat X, Repeat Y
Background Position â€“ Focal Point Picker for image positioning

Separator

PanelControls
DimensionsWidth, Height, Size

Modal Child Button

PanelControls
DimensionsSize, Gap

Modal Child Icon

PanelControls
DimensionsSize

Modal Child Popup Close Icon

PanelControls
DimensionsSize

Modal Popup Content

PanelControls
ContentWidth, Height, Max Height, Content Height
BackgroundBackground Type â€“ Choose None, Image, or Video
Background Size â€“ Cover, Contain, Auto sizing options
Background Repeat â€“ No Repeat, Repeat, Repeat X, Repeat Y
Background Position â€“ Focal Point Picker for image positioning

Block-Specific Responsive Attributes (Spectra Pro)

Loop Builder → Pagination Next Button

PanelControls
DimensionsIcon size, Text-Icon Gap

Loop Builder → Pagination Previous Button

PanelControls
DimensionsIcon size, Text-Icon Gap

Loop Builder → Filter Checkbox

PanelControls
DimensionsCheckbox Size, Items Gap, Label-Checkbox Gap

Loop Builder → Filter Button

PanelControls
DimensionsIcon size, Text-Icon Gap

Loop Builder → Reset Button

PanelControls
DimensionsIcon size, Text-Icon Gap

Tips & Best Practices

  • Start at Desktop: Set solid defaults first; override only where needed on Tablet/Mobile.
  • Keep changes minimal: The fewer overrides, the easier future edits become.
  • Use Reset often: If something looks off on Mobile, try resetting to inherit Tablet/Desktop.
  • Preview real content: Test with long titles, different images, and real copy.

Troubleshooting

  • I don’t see device buttons.
    That panel may not have responsive controls, or the block doesn’t support them for that property.
  • My Mobile value isn’t changing.
    Check if the control is locked by inheritance. If you previously set a Mobile value, Reset first to fall back to Tablet/Desktop.
  • Preview doesn’t match front end.
    Clear cache and ensure your theme/plugins aren’t overriding styles at those breakpoints.

FAQ

Do I have to set values for every device?
No. Set Desktop first. Use Tablet/Mobile only when needed—others inherit automatically.

Does resetting remove all values?
Reset removes the current device’s value only, causing it to inherit from the next larger device (or defaults).

Are breakpoints configurable?
Spectra uses WordPress’ standard device ranges listed above.

Reference: Device States

  • Desktop  â‰¥ 1024px — Base layer, no upward inheritance.
  • Tablet  768–1023px — Inherits from Desktop when unset.
  • Mobile  â‰¤ 767px — Inherits from Tablet, then Desktop when unset.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Get Notified When Available

Note - You can purchase the Essential Toolkit now and easily upgrade to the Business Toolkit once it becomes available.

Get your hands on Spectra Pro

Enter your name and email address to get access to Spectra Pro.