plugin-icon

SYB – Video Don't Loop for Cover Block

作者 shapeyourbits·
Removes the loop attribute from videos inside a core Cover block when the block has "noloop" CSS class in the Additional CSS class(es).
評價
5
版本
1.0.1
最近更新:
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:

  1. Edit a page or post in the WordPress block editor.
  2. Select a Cover block that contains a video.
  3. In the block settings sidebar, scroll down to “Advanced” and add noloop to the “Additional CSS class(es)” field.
  4. 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+
目前已測試版本
WordPress 6.9.4
此外掛程式已可供下載,並可用於你 系統。