The WPP Column Context Plugin is a proof of concept (POC) WordPress plugin that demonstrates how to extend block context for core/columns
and core/column
blocks and dynamically calculate responsive image sizes based on column widths. The plugin adds custom context keys for columns and column widths, allowing block types like core/image
to access this information when rendering.
- Download the plugin and place it in your WordPress
wp-content/plugins/
directory. - Activate the plugin through the WordPress admin dashboard.