- This topic is empty.
-
AuthorPosts
-
April 29, 2009 at 10:41 am #24718RavenMember
http://www.visual-blade.com/update/
Can anyone tell me how to create a consistent sidebar on wordpress? You’ll see that is much shorter, I just want one sidebar for the entire site. I looked in the source code and I see most of the stuff isn’t in there, but I’m not sure how to change that.
April 29, 2009 at 11:49 am #56900apostropheParticipantNot sure what you’re asking :?
You just want the sidebar background to extend to the length of the main content? Then the simplest way is to repeat an image down the y-axis http://www.alistapart.com/articles/fauxcolumns/
April 29, 2009 at 5:43 pm #56909RavenMemberThat’s a good tip, but that wasn’t my point.
I want the sidebar on every page to have the same amount of content.
Look here: http://www.visual-blade.com/ and http://www.visual-blade.com/update/. The content differs on the sidebar, I want the content to be the same. I’m not talking about the length of the sidebar and the content div, no.
Simply the same amount of content in the side bar on all pages.
April 29, 2009 at 6:31 pm #56910AshtonSandersParticipantSure,
There are two possibilities of what’s happening:
1) Your sidebar.php file has php if statements that change the content depending on what page you are on. You’ll have to inspect the code.
or
2) You’ve got two separate sidebar files that are being accessed from different types of pages. Sidebar.php is the normal sidebar file name, but you can have others like sidebar-*blah*.php where *blah* is any string.
You should be able to just (back up and) delete these secondary file which will force WordPress to load the main sidebar.php file.I hope that helps,
Ashton SandersApril 30, 2009 at 2:51 am #56928apostropheParticipantOk, now we know what you want. :)
Ashton is right. By the looks of it you are hacking the default theme, so if you have a good look at sidebar.php you will see that it is full of if statements such as
Code:
Which basically means if you are on the front page or any other ‘page’ , as opposed to ‘posts’, ‘archives’, ‘categories’ etc. then show the blogroll.
All you have to do is decide what you want in your sidebar and what you don’t want and then alter/remove those statements to suit.
Hope that is more helpful than my last attempt. :D
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.