Adding a custom sidebar


show more Adding a custom sidebar provides you with in-depth training on Web. Taught by Joseph Lowery as part of the Dreamweaver and WordPress: Building Sites show less
please wait ...

Adding a custom sidebar

Just as you can create custom content and headers for a page template, you can also make a specific sidebar. While you could use the if-else conditional technique demonstrated in the "Changing a template header" video when it comes to sidebars, the WordPress widget functionality offers another way to go. In this video, I'll show you how to define another sidebar and display it only in a specific custom template. Then I'll show you how to fill it with content from within the WordPress dashboard.

To start, we need to open up the functions.php page in order to register another sidebar. So here's my functions.php page within my theme. I'll double-click and go to code. And basically, what we're doing is exactly the same thing as we do in this very first function up here. So I'm going to copy this code here and then create another line or two and place it in the middle by pasting it in and just change a couple of values.

So we're still checking to see if the ...

Adding a custom sidebar
Video duration: 4m 39s 1h 42m Intermediate

Viewers:

Adding a custom sidebar provides you with in-depth training on Web. Taught by Joseph Lowery as part of the Dreamweaver and WordPress: Building Sites

Subject:
Web
Software:
Dreamweaver WordPress
Author:
please wait ...