Tabs and accordions add functionality to your site that is not only beautiful, but intuitive. Every visitor, from the seasoned programmer to the novice PC user, knows what to do when he sees a set of tabs. Accordions, on the other hand, can save an awful lot of screen real estate and let a user view content at her own pace.
While there are a number of plugins that can add this functionality to your WordPress site (in fact, we’ve got a dandy one right here), what if you’d rather code it directly into your site? Look no further. Using a few simple jQuery scripts, we’ll show you how to add tabs, toggles, and accordions.To add tabs to a single.php you should create: