SYB – Video Don't Loop for Cover Block
·
Removes the loop attribute from videos inside a core Cover block when the block has "noloop" CSS class in the Additional CSS class(es).
Valoraciones
Versión
1.0.1
Última actualización
Apr 10, 2026
By default, videos inside WordPress Cover blocks loop endlessly. Video Don’t Loop gives you a simple way to stop that — just add the CSS class noloop to any Cover block and the video will play once and stop.
How to use:
- Edit a page or post in the WordPress block editor.
- Select a Cover block that contains a video.
- In the block settings sidebar, scroll down to «Advanced» and add
noloopto the «Additional CSS class(es)» field. - Save or publish — the video will no longer loop.
No settings page, no configuration needed. Lightweight and focused on doing one thing well.
Requirements
PHP 8.0+ , WordPress 5.7+