One of my favorite WordPress plugins that I use is Fun With Sidebar Tabs, coded by the awesome Andrew Rickmann. This plugin lets you easily tab your sidebar widgets so you can solve your sidebar cluttering issue.
The only addition I would want from such a wonderful plugin is the ability to cycle (or rotate) through the tabs automatically, so here it is. My implementation is just a simple jQuery javascript that should just plug-and-play[pray] with Fun With Sidebar Tabs.
I will also be submitting this to Andrew for possibly patching Fun With Sidebar Tabs. Stay tuned by subscribing to the RSS feed and I will let you know when the changes become official. For now, installation is easy as pie.
Installation
- Download rotate_fwst.js and place it anywhere on your server.
- Make sure Fun With Sidebar Tabs is activated.
- Refer to rotate_fwst.js in the footer of your template. For example:
<script type="text/javascript" src="/path/to/your/rotate_fwst.js"></script> - Refresh homepage to see that your tabs are cycling.
Optional Configurations
- You can modify the cycle delay by modifying the “delay” variable near the top of rotate_fwst.js (look for “cycle delay in milliseconds”).
- By default, the script keeps the height of the widget the tallest of all tabs (so that the sidebar doesn’t keep changing heights on you). You can disable this (and have the height shrink/grow based on the tab height) by commenting-out/deleting the code between “// START: change height to max height” and “// END: change height to max height” in rotate_fwst.js.
What do you think?
Please leave me questions/comments/suggestions in the comments section.


This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.