How-To Use Multiple Sidebars in your WordPress Theme

I needed to create multiple sidebars for a WordPress website I am building. Thoughts By Mike figured he could do it with a simple file “include”. Turns out he is right… and it is simple too =)

Step 1: Create your new sidebar
Step 2: Include it

Themes generally use “get_sidebar” to display a sidebar:

<?php get_sidebar(); ?>

Include the new sidebar file instead:

<?php include (‘sidebar-projects.php’); ?>

This entry was posted in Code / Computers, Websites. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>