WebFacing – Autoplay for Post Carousel Block from GoDaddy® CoBlocks

説明

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

Translation ready. Ready translations are

  • Norwegian (bokmål)

Current features

  • Starts autoplay for Post Carousel blocks by CoBlocks
  • Pause autoplay on hover/mouseover
  • Adjust the interval through Plugin API (filter hook), default 5 seconds
  • Disable pause through Plugin API (filter hook), default on
  • Require specific css class for autoplay through Plugin API (filter hook), default none

スクリーンショット

  • Post Carousel in autoplay mode

FAQ

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.

評価

このプラグインにはレビューがありません。

貢献者と開発者

WebFacing – Autoplay for Post Carousel Block from GoDaddy® CoBlocks はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“WebFacing – Autoplay for Post Carousel Block from GoDaddy® CoBlocks” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“WebFacing – Autoplay for Post Carousel Block from GoDaddy® CoBlocks” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.0.3

  • Mar 08, 2022
  • Fix: Coding Standards

1.0.1

  • Feb 01, 2022
  • WP 5.9 tested

1.0

  • Initial release, Jul 14, 2021.