This template works on your front page however it can easily be used on any page simply by renaming the front-page.php file to something else like toggle.php and adding a page template header like this:
/*
Template Name: Your Template Name
*/
Here’s how it works:
When one section is opened, the previously opened section closes.
The difference between this method and what you’ll find linked to at the end of this post is the HTML content is hard coded into the template rather than added to the editor or text widget. A little bit more effecient as its all programmed into the template with a little bit of CSS in the style sheet.
Was This Tutorial Helpful?