lighthouseuk / wp-gcb-block-asset-tweaks
WordPress plugin to move Genesis Custom Blocks style includes to <head>.
Package info
bitbucket.org/lighthouseuk/gcb-block-asset-tweaks/
Type:wordpress-plugin
pkg:composer/lighthouseuk/wp-gcb-block-asset-tweaks
v1.0.0
2024-11-13 15:15 UTC
Requires (Dev)
README
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
filemtimefor 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.