Linux 软件免费装
Banner图

WebFacing - Autoplay for Post Carousel Block from GoDaddy® CoBlocks

开发者 knutsp
更新时间 2022年5月25日 05:47
PHP版本: 7.3 及以上
WordPress版本: 6.0
版权: GPLv2 or later
版权网址: 版权信息

标签

page builder blocks gutenberg carousel autoplay

下载

1.0 1.0.3

详情介绍:

🕸️ By WebFacing. Adds autoplay - and pause on hovering - to the Post Carousel Block from GoDaddy® CoBlocks plugin.

屏幕截图:

  • Post Carousel in autoplay mode

常见问题:

Does this plugin add database tables, store options, insert custom post type content, add blocks or scheduled actions?

No, not, zero, none.

How do I change the autoplay interval?

add_filter( 'wf_coblocks_post-carousel_interval', static function( int $interval ): int { $interval = 10; // Seconds return $interval; } );

How do I disable the autoplay pause on hover?

add_filter( 'wf_coblocks_post-carousel_pauseonhover', '__return_false' );

How do I restrict autoplay to only selected blocks/carousels or posts/pages?

add_filter( 'wf_coblocks_post-carousel_class', static function( string $class ): string { $class = 'my-autoplay'; // Or whatever valid css class you wish to use return $class; } );
Then add this css class to the selected CoBlocks Post Carousel blocks under the Advanced section in the editor. Other carousels will then not autoplay.

Can I contribute to this plugin?

Use support tab for feedback, reports and suggestions until further notice, and Github repo creation.

更新日志:

1.0.3 1.0.1 1.0