Adding static content to the sidebar


show more Adding static content to the sidebar provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes show less
please wait ...

Adding static content to the sidebar

Sidebars are most often used to provide links and further information about the site to your visitors. This is normally done through widgets, but in some cases you may want to add some permanent static content to the sidebar as well. There are many reasons for this, but one example is if you want to add social media links at the top of the sidebar permanently. As you can see, in my site right now I have some links to social media here. They're just regular text links and they're added in through a widget. So I can go into my Widgets and show you the actual links.

They're right here, under Main Sidebar in the Text widget, and here is some standard HTML that creates those links. What I want to do is put this code into my sidebar.php template instead so it's there permanently, no matter what the widgets do, and I also want to restyle it so that it looks a bit nicer, with some icons instead of just text. The first thing I need to do is get the sidebar.php file over in my chi...

Adding static content to the sidebar
Video duration: 7m 44s 3h 11m Intermediate Updated Nov 27, 2012

Viewers:

Adding static content to the sidebar provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes

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