Beschreibung
Options for Block Themes adds practical settings to core blocks and provides focused tools for transferring Global Styles, templates and template parts between themes or WordPress sites.
Theme and block options
The Theme Options screen brings the plugin’s enhancements together in one place:
- Make a block-theme header sticky and optionally shrink its Site Logo while scrolling.
- Add expandable submenus and an on-scroll overlay option to the Navigation block.
- Turn Group and Cover blocks into full-block links.
- Give Details blocks accordion-style behaviour by closing other open Details blocks.
- Populate a Gallery block from an ACF or SCF Gallery field.
- Show or hide blocks conditionally by date and time with Block Conditions.
Transfer Global Styles
Download Global Styles as a JSON file independently of templates and template parts. Use the file as a backup, migrate styles to another site or theme, or edit the JSON before uploading it to the active theme.
This focused styles-only workflow is useful when you do not want to export and move an entire block theme.
Transfer templates
Download customized templates individually as JSON files and upload them to the active theme on another site. You can also:
- View customized templates associated with the active or an inactive theme.
- Change a template’s title, description or slug.
- Save a template as a copy associated with the active theme.
- Delete a database customization without deleting the original template supplied by the theme.
Custom slugs can follow the WordPress Template Hierarchy for custom post types, taxonomies, specific posts, pages and other contexts.
Transfer template parts
Download customized headers, footers and other template parts individually as JSON files, then upload them to the active theme on another site. Customized template parts associated with inactive themes can also be viewed, downloaded or deleted.
Classic-theme compatibility
The plugin retains its original options for enabling the block Template Editor on a classic theme and restoring legacy Customizer links where applicable.
Installation
- Install Options for Block Themes automatically or upload the plugin ZIP file.
- Activate the plugin through the Plugins screen in WordPress.
- Go to Appearance > Options for Block Themes to configure theme options or transfer design data.
FAQ
-
How do I stop a sticky header covering the beginning of a template?
-
The Sticky Header option deliberately fixes the header over the page. This supports transparent headers, headers that only occupy part of the viewport width, and headers that collapse or shrink while scrolling. The plugin therefore does not automatically move every template’s content down.
For each template whose content should begin below the header:
- Open the template in the Site Editor.
- Select the first suitable Group or other container immediately after the Header template part.
- Add top padding equal to the initial, fully expanded header height.
- In WordPress 7.1 or later, use the block’s responsive styles to set appropriate top padding for desktop, tablet and mobile layouts. Check each layout visually because logos, navigation and other header content may resize or wrap.
Use the initial expanded height when Animate Logo is enabled, not the smaller scrolled height. Do not include the WordPress admin bar in this padding; the plugin positions the sticky header below the admin bar separately.
Padding is generally preferable to margin when the first container has its own background, because the background then extends through the reserved space. Leave the padding unset on templates designed to begin behind the header, such as a Cover or hero section.
On older WordPress versions without responsive block controls, use theme spacing presets where they provide a suitable result, or add narrowly scoped CSS media queries for the affected templates. Avoid a single site-wide value unless the header and required spacing are genuinely the same at every screen size.
Rezensionen
Mitwirkende und Entwickler
„Optionen für Block-Themes“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:
Mitwirkende„Optionen für Block-Themes“ wurde in 3 Sprachen übersetzt. Danke an die Übersetzer für ihre Mitwirkung.
Übersetze „Optionen für Block-Themes“ in deine Sprache.
Interessiert an der Entwicklung?
Durchstöbere den Code, sieh dir das SVN-Repository an oder abonniere das Entwicklungsprotokoll per RSS.
Änderungsprotokoll
1.5.0
- Renamed the conditional block display options to Block Conditions
- Migrated legacy conditional block attributes in memory so existing posts continue to work without being updated
- Prevented hidden dynamic blocks and their inner blocks from rendering unnecessarily
1.4.9
- Repositioned the admin screen around block-theme options and design transfer workflows
- Improved template and template-part query performance
- Updated plugin initialization, version handling and shared helper functionality
- Improved block context detection and resolved issues highlighted by Plugin Check
- Moved admin JavaScript from the main plugin file into a dedicated file and replaced its jQuery interactions
- Reworked the plugin description and feature documentation
- Added responsive spacing guidance for templates used with the Sticky Header option
1.4.8
- Fixed issues highlighted by „Plugin Check“ code review and preparing for WordPress v7.0
1.4.7
- Fixed a bug with legacy Google Fonts for classic themes
1.4.6
- Fixed a bug with ACF / SCF Gallery Block option
1.4.5
- Added an option to populate the Gallery Block with an ACF / SCF Gallery field
1.4.4
- Fixed a translation bug in JavaScript
1.4.3
- Fixed a translation bug
1.4.2
- General housekeeping preparing for „Plugin Check“ code review
1.4.1
- Fixed a margin / block spacing bug with „Full Block Link“ option
1.4.0
- I18N issues resolved thanks to Alex Lion @alexclassroom
1.3.9
- Added a new optional feature to apply conditional logic to show or hide blocks
1.3.8
- Added an option to show the Overlay Menu in the Navigation Block when scrolling down
1.3.7
- Fixed some minor bugs and added „scrollIntoView()“ when opening Details block
1.3.6
- Option zum Schließen anderer Detail-Blöcke hinzugefügt, wenn der ausgewählte Block geöffnet wird
1.3.5
- Vollständige Block-Link-Option für Gruppen- undCoverblöcke hinzugefügt
1.3.4
- Eine Option für erweiterbare Untermenüs zum Navigationsblock-Modal hinzugefügt
1.3.3
- Geringfügigen JavaScript-Fehler behoben
1.3.2
- Die Option „Logo in der Kopfzeile verkleinern“ wurde aktualisiert, um der Kopfzeile beim Scrollen die Klasse „shrink-logo“ hinzuzufügen, auch wenn kein Site-Logo-Block vorhanden ist
1.3.0
- Unterstützung für persistenten Objekt-Cache beim Hochladen von globalen Stilen beim aktiven Theme hinzugefügt
1.2.9
- Fehler beim Speichern von Einstellungen wurde behoben
1.2.8
- Google-Font-Funktionalität für klassische Themen wieder aktiviert, Fehler beim Schrumpfen mehrerer Logos behoben
1.2.7
- Fehler behoben, wenn ein Child Theme mit der Option „Theme-Schriften entfernen“ verwendet wird
1.2.6
- Vorbereitung auf die Veröffentlichung von WordPress v6.5
1.2.5
- Es wurde die Möglichkeit hinzugefügt, globale Stile herunterzuladen, zu löschen und hochzuladen
1.2.4
- Das JavaScript für Sticky-Header wurde aktualisiert, wenn die Admin-Leiste angezeigt wird
1.2.3
- Wenn der Download von Google-Schriften fehlschlägt, wird ein Hinweis angezeigt und das Plugin greift auf nicht-lokale Schriften zurück
1.2.2
- Fehler beim Entfernen von Theme-Schriften behoben
- Fehler bei Google-Schriften Weight Order behoben
- Fehler behoben, bei dem gehostete Google Schriften nicht im Editor geladen wurden
- Schriftstärke zu Google-Schrift-Dropdowns hinzugefügt
1.2.1
- Es wurde ein Fehler mit dem Sticky Header behoben, wenn die Admin-Leiste angezeigt wird
- Option hinzugefügt, um die Google-Eigenschaft „font-display“ auszuwählen
- Es wurde ein Fix für den Shortcode-Block-Fehler hinzugefügt, der in WordPress v6.2.2 eingeführt wurde
1.2.0
- Es wurde ein Fehler beim Entfernen von Theme-Schriften behoben, es wurde eine Option hinzugefügt, um Links zum Customizer auszublenden
1.1.9
- Behobene Fehler und Vorbereitungen für die Fonts-API
1.1.8
- Verschiedene Fehler und Übersetzungsprobleme behoben
1.1.7
- Ebnete den Weg für mehr On-Scroll-Header-Animationen
- Option für geschrumpfte Logobreite hinzugefügt
1.1.6
- Allgemeine Haushaltsführung
1.1.5
- Es wurde ein Fehler behoben, der verhinderte, dass mehrere Schriften für dieselbe Google-Schrift verwendet werden konnten
1.1.2
- Es wurde eine Theme-Option hinzugefügt, mit der versucht werden kann, Google Schriften lokal zu hosten
1.1.1
- Es wurde eine Theme-Option hinzugefügt, um den Header-Site-Logo-Block beim Scrollen zu animieren (zu verkleinern)
1.1.0
- Es wurde die Möglichkeit hinzugefügt, das Laden von FSE-Schriftarten zu deaktivieren und zu verhindern
- Fehlerbehebung
1.0.9
- Möglichkeit zum Hochladen, Herunterladen oder Löschen von Template-Teilen hinzugefügt
- Google Schriften zum Editor hinzugefügt
1.0.8
- Fehlerbehebung
1.0.7
- Sticky-Header-CSS optimiert
- Fehlerbehebung
1.0.6
- Option hinzugefügt, um den Header als Sticky Header festzulegen
1.0.5
- Zeige den Admin-Menüpunkt „Anpassen“ in „Dashboard – Darstellung“ und in der Admin-Leiste an
1.0.4
- Es wurde die Möglichkeit hinzugefügt, Templates aus inaktiven Themes auszuwählen, herunterzuladen und Templates zu löschen
1.0.3
- Fehlerbehebungen
1.0.2
- Es wurde die Möglichkeit hinzugefügt, Templates herunterzuladen und hochzuladen
1.0.1
- Es wurde die Möglichkeit hinzugefügt, benutzerdefinierte Templates zu bearbeiten oder zu duplizieren
1.0.0
- Erste Version des Plugins
