Responsive Containers provides a framework for applying styles to blocks & widgets based on how large they appear on screen.
As of April 2026, Responsive Containers is a WordPress container queries plugin with 10 active installations and a 0/5 rating0. It has been downloaded 2.4K+ times in total. Requires WordPress 5.2.0+ and PHP 5.6.20+. Available on WordPress.org since 2019. Last updated 6 years ago — may have compatibility concerns.
CSS media queries let us style elements based on the size of the screen. What if we wanted to style them based on the size of their container? A widget or block should often look different if it’s full-width or constrained within a column or sidebar, but we didn’t have any way to write container queries to style those elements based on their on-screen width… until now!
This plugin loads a small JavaScript file that conditionally applies classes to elements based on how wide those elements are in the browser. This can be used by other themes and plugins to write container-specific styles for editor blocks or widgets, so that they will display correctly wherever they are placed in the page.
The script works on the frontend and in the block editor — see your responsive sty…
| WordPress | 5.2.0+ requiredTested up to 5.2.24 |
| PHP | 5.6.20+ required |
responsive_container_breakpoints() method until it is confirmed to be a useful helper.Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.