I was recently buffing up on my WP Template building skills when I came across this little gem of information: “Did you know that you can customize your web pages to have different sidebars, footers, and even headers?”
It’s true.
First you build a file called something like “sidebar-tabbed.php” or “footer-short.php” (Note: Pay attention to the “-name.php” portion of the file name; you will use this in your php “get” tag).
For an example, let’s stick with “sidebar-tabbed.php”. You would then change the php tag . . .
<?php get_sidebar() ?>
to . . .
<?php get_sidebar('tabbed') ?>
. . . within whatever template file you want to be unique. For example, you could place it in one of the following:
- index.php
- single.php
- page.php
(From there, you would simply style the new sidebar file however you like.)
That’s It! Now you can make “index.php” look different than “page.php” or “single.php”, etc.—either with a different sidebar, footer, or even a different header (why, you could change everything with that). Go Nuts! ~