[Plugin: Section Widget] Auto-rotating Tabs? (2 posts)

  1. Ryan
    Posted 6 years ago #

    What an awesome plugin. I've used it to replace Tabbed Widgets, as TW doesn't work with 2.8+ (at the time of writing).

    One thing that I'm missing from TW is the ability to have the tabs auto-rotate -- the active tab switches at a set interval.

    Does anyone know how to implement such a feature using Section Widget?


  2. godfreykfc
    Posted 6 years ago #

    If you know how to load JavaScript files from your theme, this is really simple:

    jQuery(document).ready(function($){$('.swt-wrapper').tabs('rotate', 2000);});

    2000 means rotate the tabs every 2000ms (2s). Change it to whatever you like. I can consider throwing this feature in for the next version.

Topic Closed

This topic has been closed to new replies.

About this Topic