SYB – Video Don't Loop for Cover Block
v1.0.1shapeyourbits · 2026年4月10日 上架
Removes the loop attribute from videos inside a core Cover block when the block has "noloop" CSS class in the Additional CSS class(es).
- 正在使用
- 20+
- 评分
- 5.0 / 5
- 累计下载
- 427
- 最近更新
- 2026年4月10日
1 条评价需要 WordPress 5.7+已测试到 6.9.12PHP 8.0+
贡献者
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+