CSS functions in block settings, rotating headlines and more
Nectarblocks
·
October 26, 2026

A length in the block sidebar has always been a number and a unit. In Nectarblocks 3.5.0 it can be clamp(1.5rem, 5vw, 4rem): padding that grows with the screen and stops at both ends, typed into the field where 40px used to go. It’s the CSS Functions in Spacing/Size item from our public roadmap.
Five more changes ship with it. Headlines can rotate their words, Post Grid cards can drop their images, background images can load as real responsive images, a page’s own CSS shows while you edit, and the theme’s Customizer has been rebuilt.
Type a CSS function into any length
Click the unit beside a number, the PX next to a padding side under Style > Spacing for instance, and the menu now lists Functions under the units: calc, clamp, min, max and Custom value. Pick clamp and the editor opens with your current value already in the middle, clamp(min, 25px, max), ready to fill in. Tab moves between the parts and Enter applies. Or skip the menu: letters typed after a number search the list, so cl finds clamp, and a whole clamp(1rem, 4vw, 3rem) pasted into the field opens the editor on it. The field then shows the value after an ƒx, one click from editing.
It works on most length settings that have a unit: margin and padding side by side, widths and heights with their minimums and maximums, border widths and corner radii, font size and line height, gaps in rows, grids and lists, transforms, shadows and blur. As you type, the editor suggests functions, units and the keywords that setting allows, names any mistakes once you pause, and keeps Apply disabled until the browser would accept the value.
Rotate words in a headline
Write a headline in the new Rotating Text block, select the words that should change and click Rotate selected text in the block toolbar. Select nothing and the whole headline rotates. The words to cycle go in the sidebar’s Items list, and Style > Color gives them a color or gradient of their own, apart from the rest of the line.
Each Effect brings its own controls. Typewriter has type and erase speeds, a Backspace or Fade erase and an optional cursor. Fade can split by word or letter with a stagger, Pixel sets its block size, and Scramble picks letters, symbols or both. Width either eases the line to each new word or holds the space of the longest one, so nothing around it moves. Screen readers hear one steady sentence, and keyboard users get a pause button.
Post Grid cards without images
The Post Grid’s Layout tab has a new Featured Media toggle. Turn it off and every card drops its image or video along with the space it took. In the layouts that set content beside the media, the text widens to fill the card, and the controls that only act on media hide until you turn the toggle back on.
Hover effects can follow the whole card now too. Set Effects Configuration > Target to Grid Item and opacity, filters and shadows apply to the card and its hover state, so a text-only grid still answers the pointer. Author avatars get a size control of their own as well. Together they suit a news list, a changelog or a grid of quotes, where a photo was only ever filling a hole.
Background images that load as responsive images
Rows, columns, flex boxes, milestones and image grids have a new Output choice in their background image settings, set on the desktop view. Image renders the background as a real <img> with responsive sizes, so a phone downloads a phone-sized file and image optimizers and CDNs can see it. Give tablet or mobile an image of their own and each device gets its own file. A featured-image background in a Query Loop shows each post’s own image, and the first row’s image loads straight away while the rest follow your Lazy Load setting.
Background stays the default, and it’s the one to keep for a repeating pattern, a custom size or a fixed attachment. Whichever you use, hero backgrounds, parallax ones included, now paint without waiting for scripts to load.
See a page’s custom CSS while you edit
CSS added under Post Options > CSS Code used to show only on the published page. It now applies in the editor canvas as well, as soon as you click Save Changes in the CSS window and before the post itself is saved. It lands after the theme’s styles, the order the front end uses, so a rule that wins on the page wins in the editor too.
One-off styling becomes something you can see while you lay the page out: a tighter heading on a landing page, or a class you’ve given a few blocks. When the editor runs without its frame, the rules are scoped to the content area, so they can’t restyle the sidebar. The page’s JavaScript still runs only on the front end.
A rebuilt theme Customizer
The Nectarblocks theme’s Customizer now runs on our own controls instead of the Kirki library it used to bundle. The panels are the ones you know, and your settings carry over, stored the same way as before.
With Kirki gone, the theme no longer depends on a third-party library for its controls. That library added 1.3 MB to the theme and started up on every page your site served, so the theme is lighter without it, and safer, with that much less outside code to keep patched. And custom controls are much easier for us to build on code we own.
What else is in Nectarblocks 3.5.0?
Text block animations gain the same Scramble effect, with letters, symbols or both. On mobile, the header’s icons no longer make the browser restyle the whole page as you scroll, and updates now reach multisite Network Admin when the license was activated on a subsite. The release carries 14 fixes in all, scroll animations, the off-canvas menu and Used CSS optimization among them, and the release notes list every one.
How to update
Everything above except the Customizer is in the Nectarblocks plugin, so update the plugin to 3.5.0. If you run the Nectarblocks theme, update that too, since the new Customizer ships with it.
With your license active, the Authorization tab under Nectarblocks in the admin has an Enable Updates toggle. Turn it on and both updates appear on the WordPress Updates screen, or press Check for Updates to look straight away. Activating your license has a short lesson of its own.
FAQ
Can I use CSS variables in a block setting?
Yes, through Custom value: var(--section-gap, 2rem) works wherever a function does. The editor can’t see what a variable will hold, so it lets the value through with a note, “Uses var(), so the browser checks it when the page renders.” Define the variable where the block appears, or give it a fallback like the 2rem above.
Do screen readers hear every word a Rotating Text headline cycles through?
No. They hear the headline once, with its first item in place. Add Screen reader text in the block’s settings to give them a different sentence; it’s ignored when the headline holds a link, so the link stays reachable.
Do CSS functions change pages I’ve already built?
No. A setting only holds a function once you add one, and settings with plain numbers write exactly the CSS they wrote before.