Stable
New: Stackless blocks. Callout, Content Upgrade, FAQ, Steps, Key Takeaway, Pull Quote, Quote, Related Content, Share Notice, Spoiler, Section, Query Loop, Side Promotion, Arrow and Table of Contents are in the editor under Stackless. Each block loads its own small stylesheet only on pages that use it, and only the FAQ, Spoiler, Table of Contents, Slider and Carousel have a script.
Read full notes
34 changes
- New Stackless blocks. Callout, Content Upgrade, FAQ, Steps, Key Takeaway, Pull Quote, Quote, Related Content, Share Notice, Spoiler, Section, Query Loop, Side Promotion, Arrow and Table of Contents are in the editor under Stackless. Each block loads its own small stylesheet only on pages that use it, and only the FAQ, Spoiler, Table of Contents, Slider and Carousel have a script.
- New card blocks. Plugin Card, Theme Card, GitHub Card, npm Package Card, Book Card, YouTube Card and Podcast Card fill themselves in from a slug, a repository, a package name, an ISBN, a video link or a feed. Each card saves its data in the post, so a page view waits on no outside service, and none of them loads a script. Plugin and theme images are copied into the media library. The YouTube card links to the video and loads no player.
- New the Plugin, Theme, GitHub and npm cards keep their ratings, installs, stars and versions up to date. The numbers are fetched in the background at most once a day and are never waited for on a page view.
- New style variations for core blocks: paragraphs, headings, lists, buttons, images, tables, groups, covers, videos, separators and the query loop. A variation's stylesheet loads only on pages that use it.
- Removed the one-off settings importer for sites moving from another theme. The theme's own settings export, import and backups are unchanged.
- New icons chosen in a block are drawn as Tabler icons, and each block can be hidden, replaced or filtered through the theme's hooks.
- New colors, fonts and heading letter case in Customize > Stackless Theme now update the preview as you change them, without reloading it. A bundled font still loads only once it is picked.
- New plugins can rearrange the header. A filter places the logo, menu, search, account, cart and menu button at the start, center or end of the bar, so a centered logo or a centered menu needs no template copy. The default header is unchanged.
- New pages and custom post types can sit beside a sidebar and pick a header style in the editor's Layout panel, like posts. Without a choice they look as before.
- New add-ons can add their own sections to the Stackless Theme panel in the Customizer, in a set order among the theme's.
- New the Stackless Theme panel in the Customizer mentions Stackless Theme Pro in one line, which goes away once Pro is active.
- Fixed a post with no tags showed an empty tag after it.
- Fixed on store pages where a plugin loads its own .container styles (FluentCart does on some pages), the header and footer could be narrower than the page at some screen widths.
- New a shared focus trap for drawers, dialogs and popups (the stackless-theme-focus script, window.StacklessFocus). The FluentCart cart drawer and mobile filters now use it and behave as before.
- New a dark set of the theme's colors, used when the page's html element has the stackless-dark class. The theme never adds the class itself, and declares theme support for stackless-dark-mode so a plugin can tell the colors are there. Links stay at 4.5:1 or more in dark whatever the primary color, and the store layers' leftover light colors (overlays, the zoom button, loading spinners, the Buy now button and the store notice) now follow the theme's colors.
- New a Sale badge on FluentCart product cards and product pages when a product's compare-at price is above its price, drawn like WooCommerce's. EDD has no sale price, so its cards and download pages show the badge only when the stackless_theme_product_on_sale filter says so.
- Changed the Callout block's Tip, Info, Warning, Success and Error presets take their colors from the theme instead of fixed light colors in the markup, so they follow the site's colors and stay readable in dark. They look the same as before on a light page.
- Changed a store plugin is optional. The theme was checked with no store active (front page, blog, posts, pages, search, 404 and the Customizer), and the description and Customizer panel no longer assume a store. A post with no author no longer shows an empty byline.
- New Header layout in Customize > Stackless Theme > Header and menu. Centered puts the logo in the middle with the menu on the left. Split puts the primary menu on the left of a centered logo and a new Header right menu on its right. On phones and tablets both menus open from the Menu button. Default looks as before.
- New a Sidebar header layout for app-style sites. A fixed side rail holds the logo, a search field, the primary menu, a Sidebar list menu and an account menu, with a slim top bar for search and cart. Visitors can collapse it to icons or hide it, and the choice is remembered in their browser. Below 1080px the rail is a drawer. A page can switch back to the top header from its Layout panel. The stylesheet loads only with this layout.
- New menu items can have an icon, picked from the theme's icons in Appearance > Menus. It shows before the label in any menu.
- New Header over the first section, for the whole site. Choose the front page, pages that open with a Cover block or hero, or every page that opens with a full-width section, and light or dark header text. Pages that open with a title keep the solid header, and a page's own Layout choice still works.
- New Hide the header while scrolling down. It comes back on any scroll up, and never hides while the menu or search is open or keyboard focus is in it.
- New the --st-header-height CSS property holds the header's real height, for blocks that have to clear it.
- New Slider block. Full-width photo slides with a heading, text and buttons laid over each, a focal point and an overlay per slide, and small, medium, large or screen-height sizes. Arrows, dots and looping are options, and autoplay (off by default) adds a pause button, stops while the pointer or keyboard is on the slider, and never runs for visitors who ask for reduced motion. Under a header laid over the first section, the slides leave room for the header and the header switches to light text.
- New Carousel block. A sideways row of any blocks (cards, columns, images, product and post blocks), with items in view set for desktop, tablet and phone, a gap, arrows, dots or a progress bar, and snapping. With a single Query Loop, Product Collection, product grid, Columns or Gallery inside, it scrolls that block's own list.
- New the Slider and Carousel move with CSS scroll snap and share one small script for the arrows, dots, arrow keys and autoplay, loaded only on pages that use them. Without the script they are plain horizontal scrollers. Both are labelled for screen readers ("2 of 5"), follow the site's colors and dark colors, keep their space while loading, and lazy-load every photo but the first slide's.
- Fixed with the header over the first section, a dropdown menu could show white text on a white panel, and menu hover backgrounds were too light to see.
- Fixed a Cover block at the top of a page with the header over it started 32px down, leaving a strip of page background under the header.
- Changed the "Built with Stackless" footer link points to wpstackless.com.
- New the --st-header-offset CSS property moves the header over the first section down, so a bar printed above the header (Pro's announcement bar, for one) stays visible.
- Fixed a full-width Group with its own content or wide size kept the theme's reading width instead.
- Fixed on phones, pages jumped about 78px on first load while the menu switched from its no-JavaScript state. The page is now marked as scripted before it draws.
- New more Typography settings: heading sizes (four scales), heading weight, body text size, line height and letter spacing, and heading line height and letter spacing. Each previews live and stays at the theme default until you set it.