Closed bobbingwide closed 2 years ago
Make the block dynamic using Server Side Rendering rather than generating the [github] shortcode
I made the change, or so I thought, but got 404's from the render request.
$args = [ 'render_callback' => 'oik_bob_bing_wide_dynamic_block_github'];
oik-bbw/github
oik-bbw/csv
$args = [ 'render_callback' => 'oik_bob_bing_wide_dynamic_block_github'];
$registered = register_block_type_from_metadata( __DIR__ .'/src/github' );
$args
to the block registration wouldn't it.Say $args out loud, with a silent s.
Attempt to support deprecation.
I think I did it this time.
Remove the redundant, hardcoded header
The redundant header is still needed for the deprecated version though.
Make the block dynamic using JavaScript in the editor and Server Side Rendering in the backend.
We can now:
shortcode
attribute.Delivered in v2.2.1.
The current version of the GitHub block supports setting of text and background colours and also size.
The block needs to be improved.
Requirements
[github]
shortcodeProposed solution
Implementation steps similar to above...
[github]
shortcode