“Very Simple” theme – help fix formatting
-
I am trying to migrate my weblog from MT (http://blog.org/) to WordPress (http://blog.org/wp/) and as you can see from the latter I plan to use the Very Simple theme.
But for some reason my (long) header overlaps with my calendar and I don’t know enough HTML/CSS/whatever to fix this. Also, I would like to add a bunch of static links and text to the right hand column so it looks more like http://blog.org/ (the original) but I don’t know where to insert that stuff in the template. Could someone give me a hand?
-
Hi derb,
nice to see you moving to wordpress 🙂The reason your header overlaps with the sidebar is because your sidebar isn’t positioned well enough. That’s easy to fix with some trial and error positioning. But first, are you planning to mimic the former 100% width or are you staying with the fixed width you have now?
I guess I would like to see the title centred and running across the whole page width (perhaps against a light blue background?)
While I think about it I would prefer the headlines to be bold rather than lighter than the body text.
Thanks for responding so quickly – I would have responded myself sooner but Bloglines didn’t seem to pick up the update to this RSS feed!
Ok, we’ll do this one step at a time and see how far we get everytime.
I’ll assume you know how to open a css file (with your texteditor) and edit it.In your stylesheet you will find a line that reads:
.wrapper {
width: 700px;
margin-left: auto;
margin-right: auto;
}Change it to:
.wrapper {
margin: auto;
}That will make your whole blog 100% width.
The next thing is setting the width of the main elements in it: your header, main content (articles) and menu.
For the header, change:
.header {
}
to:
.header {
text-align: center;
background-color: #336699;
}We can change the color later.
For the main content, change:.content {
width: 500px;
}to:
.content {
width: 80%;
}And for the sidebar, change:
.sidebar {
position: absolute;
top: 40px;
margin-left: 520px;
font-size: x-small;
width: 200px;
}to:
.sidebar {
position: absolute;
right: 0px;
top: 140px;
font-size: x-small;
width: 19%;
}The top: 140px is how far your sidebar is away from the top and right:0px should be that is aligns to the right (though there could be some trouble here).
One more thing: the footer. Change:
.footer {
width: 700px;
margin-left: auto;
margin-right: auto;
font-size: x-small;
text-align: center;
padding-top: 10px;
}with:
.footer {
margin: auto;
font-size: x-small;
text-align: center;
padding-top: 10px;
}Post back after the changes and we’ll check the result and improve further.
Wow! I’m super-grateful for that Internet gift economy thang! As you can see I changed things a little from what you gave me because I wanted a small margin on the L and R of the page and I wanted the sidebar to be a little wider, so I made
.wrapper {
width: 90%;
margin-left: auto;
margin-right: auto;
}and
.content {
width: 70%;
}Unfortunately as you can see this doesn’t quite do what I wanted – I would like the large gutter between content and sidebar to shrink to about 1/4″
Then could you tell me how to make my main banner text white and the headlines and datestamps bold? And let me know where I can add in the static content to my sidebar?
You are in line for major thanks from my blog when we’re done!
At least we see some improvements. 🙂
The sidebar was positioned against the rigth side, so we’ll have to update it’s positioning with the width: 90% you chose. 90% means 5% on each side so instead of:
.sidebar {
position: absolute;
right: 0px;
top: 140px;
font-size: x-small;
width: 19%;
}we’ll change the right: 0px to 5%. If we’d keep using pixels it wouldn’t end up ok. But I’m not sure the 5% will be perfect. You may have to try other percentages, and vary your browser window width to see the effects. Also keep in mind to vary the 19% width of the sidebar itself if that displays better. It’s a matter of trial and error here.
The blogtitle’s color is simply:
.blogTitle a {
text-decoration: none;
color: #999;
}and changing the #999 to white, which is #ffffff or shorter #fff.
The datestamp: change
.dateStamp {
font-size: x-small;
color: #999;
text-align: right;
border-bottom: 1px solid #999;
margin-bottom: 20px;
}and add: font-weight: bold;
The headline actually is already bold. You can see it here:
.postTitle {
font-size: normal;
font-weight: bold;
margin: 0px;
margin-bottom: 2px;
}You can try and use ‘bolder’ instead of ‘bold’ and see if that makes any difference.
The static content should be inserted either in your themes index file if the sidebar resides in there, or in your sidebars own php file if there is one. You need to look for <div class=”sidebar”>, since that’s where the sidebar starts. Try playing with inserting some text and see where it appears. You’ll quickly discover where you can put your static content.
Great help once again. As far as I can tell after some additional tinkering using your comments as a guide blog.org looks as near as possible to what I would like it to look. Could you just take a quick look to make sure there isn’t something hidden that would mess things up behind the scenes?
And I would like all of my category and date archive views to have just under the main header but before the date of the first entry a prominent indication saying:
You are browsing [Category/Date] – <link to home>Back to Home
I will doubtless think of other things as I go on but with that done I am off to an excellent start!
If your link list gets long, and you have a short post that layout is going to bork. Specifically the menu will burst through the footer.
Not sure what you mean, Root. My link list is already long but it is relatively static (I might add or subtract two or three items…) Which menu are you talking about?
Hey root,
you’re right about what you say. But I’ve chosen not to mention this because I wrongly thought his postnumber was long enough not to have any problems with it. So, without changing the index file that probably means reverting to floats.
Also, IE messes up with a small window. It keeps those 5% from the right side as a fixed width!?I’m going to mimick the basic layout on my computer tonight and try some things. Then I’ll post back with my solution.
Ok, let’s change to floating instead of relative/absolute.
Change . content, .sidebar and .footer to:
.content {
width: 70%;
float: left;
}.sidebar {
float: right;
font-size: x-small;
width: 25%;
}Note: change the 25% as wished
.footer {
clear: both;
margin: auto;
font-size: x-small;
text-align: center;
padding-top: 10
}Should work out-of-the-box. Even IE did this correct from the first time. 🙂 And it’s already tested on FF with the developer toolbar. 🙂
Looks fine now – can you help with the category and date templates?
By the way Dissurion – I would like to give you a thank you link on my blog when done – is there a URL I can link to your nickname?
I’m not sure how to do it as you want :/ , as the tags for time should be within the loop. Maybe you could ask that in a new post and if someone can help you we’ll go further with that code.
ps: if you want to thank someone thank wordpress and the wordpress community. 🙂
also: It’s easy to display the category they are browsing, and also the month they are browsing, just as the date of a single post. But I don’t see directly how it would be done in your case.
The topic ‘“Very Simple” theme – help fix formatting’ is closed to new replies.