rlj-blocks
Custom blocks for the WordPress Gutenberg editor
by Raffael Jesche · github.com/raffaelj/wordpress_rlj-blocks
★ 0stars
5composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/raffaelj/wordpress_rlj-blocks/archive/refs/heads/master.zipAlso on Packagist as raffaelj/wordpress-rlj-blocks:
composer require raffaelj/wordpress-rlj-blocksFrom the readme
rlj-blocks
Experimental WordPress Plugin to provide a wrapper block with a background image, a video link block and an extension for image titles
I called the block "Section". It is only a wrapper block, that contains other blocks, but with the ability to add a background image. It adds a handful of classes and adds one style attribute if the section has a background image.
The CSS will not load automatically in the frontend. You have to add your own custom styles. It's a bad design decision, to run tons of requests just to add 10 lines of css for each plugin. I use it with a child theme of Twentynineteen.
The video link block requires the unreleased and legacy addon rlj-wp-utils or the experimental plugin WPMultiplane. I'll fix that later...
The image title extensions are experimental.
Installation
Copy all files of this repository into /wp-content/plugins/rlj-blocks.
I don't know, how to add a plugin to the official WordPress plugins, yet.
Notes
If you use the new, fancy Gutenberg features, Wordpress will try to load a Webfont from Google. They still default to kick their users privacy straight into the ass. So dont't forget to install Disable Google Fonts.
Custom CSS