Add Second Sidebar To Default-Theme
-
Hey,
I want to add an extra, second sidebar to my customized Default-theme. (First Column: Content, Second Column: Recent Comments, Third Column: Recent Posts), but I’m stuck on it.
This is what I’ve tried:
At first, Style.css looks like this:
#sidebar { padding: 8px 0 10px 0; margin-left: 500px; width: 250px; } #sidebar form { margin: 0; }
I added to style.css:
#sidebar2 { padding: 8px 0 10px 0; margin-left: 750px; width: 150px; } #sidebar2 form { margin: 0; }
I added to sidebar.php (below ‘first’ sidebar):
<div id="sidebar2">Test Sidebar 2, Test Sidebar 2, Test Sidebar 2</div>
I thought it would be as simple as that, but it messes up my blog very badly.
When I remove this one:
margin-left: 750px;
, the test-message just appeares below Sidebar 1.Does anyone know how to add a second sidebar to my blog?
Thanks in advance!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add Second Sidebar To Default-Theme’ is closed to new replies.