jQuery(document).on( 'jp_carousel.selectSlide', '.jp-carousel-wrap', function( event, slides ) {
// This is just to show you what values get passed in. Delete it before going to production.
if ( window.console ) {
console.log( this );
console.log( event );
console.log( slides );
console.log( slides[0] );
}
// Do whatever extra stuff you want here.
} );
You can read more about it here.How to add JavaScript events to the Carousel view
Add this to your site’s js to enable events such as adding Google Analytics tracking code to individual Carousel slides:
Jetpack のメリットを見る
Jetpack が WordPress サイトの保護、速度向上、成長にどう役立つかをご覧ください。
ご質問がありますか?
この記事へのコメントは締め切られていますが、引き続きサポートいたします。サポートフォーラムにアクセスしていただければ、ご質問にお答えします。


