Can I change the header dimension requirement of my theme?
-
Back a few weeks ago when I was trying out elegant grunge (I think), I made a custom header in gimp according to that theme’s requirements, 920 by 160 I think or something like that, thinking it was the same for every theme. I spent about 10 hours on it, learning gimp, then creating the header.
That theme didn’t work for me, so I’m going to try with P2. The header dimensions for P2 are 980 by 120 I believe. It’s much skinnier than my theme is so I can’t just crop it. I was wondering how I can make my 920 by 160 theme work, maybe through CSS. Thank you.
The blog I need help with is: (visible only to logged in users)
-
May have found the answer to my own question, at least partially. For anyone else that needs help with this, here is the code to change the height of your header.
#header {
min-height: 160px;
}If I find a width one later I will post it.
-
Sorry it’s actually
#header {
min-height: 120px;
}at default. I changed mine to 160 when previewing which is why that’s what got copied into the first post. Hope this helps people.
-
Here you are, the complete header altering code for the P2 theme. Just change the “120px” and “980px” to the sizes you need for your header. If you alter them too much it may break the theme, just as a general warning, but I imagine you can make it a little wider or thinner while still making it fit.
#header {
min-height: 120px;
}#header {
width: 980px;
margin: 0 auto;
} -
And if you want to make it much bigger without breaking the theme, the margin code appears to create room both above and below the header. So
#header {
width: 980px;
margin: 8px auto;
}should fix some problems with the header spacing, if there are any to begin with. “auto” seems to center the header, so if you take that out it will shoot left completely. I tried taking auto out and then using “padding:” but that just duplicates the header vertically over and over depending on how much padding you add, so don’t try that. Just leave auto.
Hope this helps people
-
-
@hai4578
All CSS editing here at wordpress.com is theme specific. No CSS editing you do will appear on the blog unless you have purchased an annually renewable custom design upgrade. What is the URL starting with http:// for the blog to which you are referring? Have you purchased the custom design upgrade or not? If you are referring to a free hosted WordPress.COM blog and you have purchased the custom design upgrade then please start your own thread. -
Hi Timethief,
My blog is http://feedpon.com i’m using the p2 theme. i think i posted in the wrong place because i have my own host. However, can i still purchase the customer design upgrade ? and does it work for P2 theme? thanks for the response -
@hai4578
Please read WordPress.COM vs WordPress.ORG: The Differences
The answer is “no”. This forum and all the upgrades that can be purchased are ONLY available to those who have free hosted WordPress.COM blogs. Your blog is not a free hosted wordpress.com blog. It does not run on the same software we have here and the P2 theme version you have is not the same version as the one we have. Moreover, we do not provide support for your install here at all. You must post only to http://wordpress.ORG/support/
- The topic ‘Can I change the header dimension requirement of my theme?’ is closed to new replies.