lighthouseuk/wp-gcb-block-asset-tweaks

WordPress plugin to move Genesis Custom Blocks style includes to <head>.

v1.0.0 2024-11-13 15:15 UTC

This package is auto-updated.

Last update: 2024-12-02 11:05:36 UTC


README

Latest Stable Version

This plugin adds some small QoL improvements to Genesis Custom Blocks.

  • Moves block styles to <head> element instead of footer of site. This fixes CLS issues.
  • Enqueues global block styles in <head> as a requirement of other blocks. This is different to previous behaviour where the global styles could be enqueued after the block styles.
  • Uses filemtime for block stylesheet versions. Previously this was set to the theme version.

Could be merged into the main plugin - see this issue for more info.

Installing

Require this package as a dependency with Composer.

composer require lighthouseuk/wp-gcb-block-asset-tweaks

TODO

  • Register block JavaScript files.