Home › Forums › CSS › [Solved] Active class on buttons in WordPress › Re: [Solved] Active class on buttons in WordPress
I believe the answer to your question is Yes, you would need to create the multiple pages.
Basically, you could duplicate the index.php, to create each template page that you need (about.php, contact.php, etc.)
For each page, you need to let Worpress know that they are template pages by placing code similar to this at the very beginning of the code:
Naming them consistent with the page they will generate is probably best.
-Then, in the WP admin, Click on "Pages"
-When you see your list of pages, highlight over one and click "Quick Edit" for Template, choose your corresponding template.
Also in the code of each one is where you’d want to change the body id per page.
However, an easier solution (depending on your version of WordPress could be to use the wp_list_pages function. It will add a class current-page-item to the current page automatically. Just setup your styles for that class and you are done.
(read about that here… http://codex.wordpress.org/Template_Tags/wp_list_pages It’s the last thing on the page.)