Sidebar On Every Page?
-
How would I be able to put my sidebar on every page? (single post page, search page, etc…)
This is my site:
http://obscuresound.comI just want the links and the categories and the BlogAds to be shown on every page.
Thanks,
Mike
-
If you’re familiar with HTML/PHP then just apply this code to the appropriate template files (index.php / page.php and single.php I believe).
<?php get_sidebar(); ?>
it’s showing up all messy. where exactly do I place that code?
Try adding it just above the following line of code (also located in the files I mentioned in my previous posts):
<?php get_footer(); ?>
it’s showing up on the way bottom under the comments. I want it to be on the right side neatly just like on the front page.
any options?
Obscure Sound — You have to give people more than an hour to answer your requests around here. If you ask question and it doesn’t get answered right away, it’s best to patient, because most of the people who answer these forums are volunteers. Please don’t bump your posts.
Now, to answer your question — the reason your sidebar is showing up all messy and at the bottom is because the theme you are using contains two different widths for main comment.
Look at your front page. See how the column where the posts go is sorta narrow, like 550 px wide or so. Now look at one of your category pages. The main content area there is much wider — it takes up almost the whole screen.
Since it is wider, there is not enough room for the sidebar there next to it, so the sidebar gets pushed all the way down to the bottom.
This is really easy to fix though. Look at your css style sheet, in the folder on your server for this theme.
There is a section near the top that looks like this:
#content {
float: right;
width: 530px;
background: #F7F3E7;
margin: 0 auto;
display: inline;
border-left: 5px solid #B2AD9D;
border-right: 5px solid #B2AD9D;
}The is the main content section on the main page. A little bit below that is another section:
#singlecontent {
width: 730px;
background: #F7F3E7;
padding-top:0;
margin: 0 auto;
border-bottom: 5px solid #B2AD9D;
}Singlecontent is the main content on a page without the sidebar. See how it’s much wider — 730px. Now, all you need to do is change that value from 730px to 530px. While we’re at it, it’s probably a good idea to change all the values under “singlecontent” so that they match the values under “content.”
After that’s done, go ahead and add your sidebar code (as mentioned above) back into the templates where you want it to show up. All should be good.
it still is very messed up:
http://obscuresound.com/?p=30Try also changing the .singlepost styles so they match the .post styles in your stylesheet — sorry, I missed that one. After this, you may have to tinker around with you stylesheet a bit to make everything fit — when I was learning CSS it was all trial and error. You change one thing at a time to see if it works until the site looks the way you want it to.
nah, just the same results.
so this can’t be solved? darn.
thanks anyways.
You give up pretty quickly there, sport.
Personally, I’d compare the layout of the working theme page(s) to the pages that don’t look the same.
While folks here can give some ideas towards helping with themes, you’ve probably noticed a lot in the theme involves CSS and (x)html. Themes aren’t created by “wordpress”. They are created by other folks, just like you or me. If you want to start customizing your theme, some level of css/html knowledge or experience is assumed. If you’re not comfortable with the results you get, perhaps find another theme that DOES do what you want (there are many many free themes out there) and tweak *it* instead.
The topic ‘Sidebar On Every Page?’ is closed to new replies.