Options for Block Themes

Àpèjúwe

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Ìtumọ̀ Yorùbá: ’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 Logic.

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Ìtumọ̀ Yorùbá: ’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.

Ìgbéwọlẹ̀

  1. Install Options for Block Themes automatically or upload the plugin ZIP file.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. 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Ìtumọ̀ Yorùbá: ’s content down.

For each template whose content should begin below the header:

  1. Open the template in the Site Editor.
  2. Select the first suitable Group or other container immediately after the Header template part.
  3. Add top padding equal to the initial, fully expanded header height.
  4. In WordPress 7.1 or later, use the blockÌtumọ̀ Yorùbá: ’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.

Àwọn àgbéyẹ̀wò

Ọ̀pẹ 15, 2024 1 ìdáhùn
Options for Block Themes by Oliver Campion of Web:D has built in an option to: enable expandable submenus to the Navigation Block modal – which is tech speak for collapsible submenus on mobile devices. This plugin works and solves our top burning issue with WP 6.7 (and prior to that WP 6.6). Thank you Oliver Campion of Web:D. Our thanks to Hans-Gerd Gerhards who highlighted the new functionality of the Options for Block Themes plugin in a German language post on his website: Aufklappbare Untermenüs bei Block Themes (Expandable submenus in block themes).
Igbe 10, 2024 1 ìdáhùn
The great plugin “Options for Block Themes” offers some interesting things that are very interesting for users who create their websites with a block theme such as Twenty Twenty-Four. For me, an important aspect was the shrinked header. But the other options are also very helpful because they simplify the management of block themes.
Èrèlé 23, 2022 1 ìdáhùn
Not for rookies as it takes a little bit of fiddling but this fiddling is necessary and not a lot. If you have any experience at all and want to create new or modified template copied this plugin is the bomb.
Èrèlé 19, 2022 1 ìdáhùn
This plugin has been a huge help to me because we run multiple websites, and even with the Site Editor making all of the sites identical would be tiresome. In our case, it was simply a matter of installing Template Manager on both sites, then one click to select a template on the donor site, and a second click to download it. Then (in the recipient site) after a click or two to delete modifications to the old templates, a final click to upload the new one. All that then remains is to edit a page and select the new template in the setting dropdown. It saves hours and hours of work!
Ka gbogbo àwọn àgbéyẹ̀wò 3

Àwọn Olùkópa & Olùgbéejáde

“Options for Block Themes” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

A ti túmọ̀ “Options for Block Themes” sí àwọn èdè agbègbè 3. Ọpẹ́lọpẹ́ fún àwọn atúmọ̀ èdè fún àwọn ìkópa wọn.

Túmọ̀ “Options for Block Themes” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

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

  • Added option to close other Details Blocks when selected one is opened

1.3.5

  • Added full block link option for Group and Cover Blocks

1.3.4

  • Added an option for expandable submenus to the Navigation Block modal

1.3.3

  • Fixed a minor JavaScript bug

1.3.2

  • Updated “Shrink header logo” option to add “shrink-logo” class to the header on scroll even if a Site Logo block isnÌtumọ̀ Yorùbá: ’t present

1.3.0

  • Added support for persistent object cache when uploading global styles to the active theme

1.2.9

  • Fixed a bug when saving settings

1.2.8

  • Re-enabled Google Font functionality for classic themes, fixed bug with mulitple logos shrinking

1.2.7

  • Bug fixed when using a child them with “Remove Theme Fonts” option

1.2.6

  • Preparing for the release of WordPress v6.5

1.2.5

  • Added the ability to download, delete and upload global styles

1.2.4

  • Updated the JavaScript for sticky headers when the admin bar is showing

1.2.3

  • If Google font download fails then notice is shown and plugin falls back non-local fonts

1.2.2

  • Fixed bug with Theme Font Removal
  • Fixed bug with Google Font Weight Order
  • Fixed bug with hosted Google Fonts not loading in the editor
  • Added weights to Google Font dropdowns

1.2.1

  • Fixed a bug with sticky header when the admin bar is showing
  • Added option to choose Google “font-display” property
  • Added a fix for the Shortcode Block bug introduced in WordPress v6.2.2

1.2.0

  • Fixed a bug when removing theme fonts, added an option to hide links to the Customizer

1.1.9

  • Bugs fixed and work undertaken to prepare for Fonts API

1.1.8

  • Various bugs and translation issues fixed

1.1.7

  • Paved the way for more on-scroll header animations
  • Added an option for shrunken logo width

1.1.6

  • General housekeeping

1.1.5

  • Fixed a bug that prevented multiple font styles for the same Google font

1.1.2

  • Added a theme option to attempt to host Google Fonts locally

1.1.1

  • Added a theme option to animate (shrink) the header Site Logo block on scroll

1.1.0

  • Added ability to disable and prevent FSE fonts from being loaded
  • Bug fix

1.0.9

  • Added ability to upload, download or delete template parts
  • Added Google Fonts to editor

1.0.8

  • Bug fix

1.0.7

  • Tweaked sticky header CSS
  • Bug fix

1.0.6

  • Added option to set the header as a sticky header

1.0.5

  • Show the “Customize” admin menu item in “Dashboard Ìtumọ̀ Yorùbá: – Appearance” and in the Admin Bar

1.0.4

  • Added the ability to select, download templates from inactive themes and to delete templates

1.0.3

  • Bug fixes

1.0.2

  • Added the ability to download and upload templates

1.0.1

  • Added the ability to edit or duplicate customized templates

1.0.0

  • First version of the plugin