Homepage › Community Forums › Epik Theme Support › Change header size
Tagged: header
Hi Wes,
I’m having trouble changing the height for the header.
How do I change it from 120px to 40px?
Do you have a link so I can see which part of the header you’re referring to?
If you’re referring to the logo/header then you can look for this –
.header-image #title,
.header-image #title a,
.header-image #title-area {
display: block;
float: left;
min-height: 120px;
overflow: hidden;
text-indent: -9999px;
width: 50%;
}
….and change the min-height to 40px.
Make sure you’ve changed the header/logo size in your functions.php file as well.
Sure it’s http://www.custothemes.com
It’s that big grey space above the link
Did you see the rest of my comment? I updated/edited it the same time you replied.
thanks, it seems to have worked.
On the theme demo, the header text is placed on the same line as the menu.
Would it be possible to place my logo on the same line as the menu?
Yes use the Custom Menu widget in the header right widget area instead of the Primary Menu area (located in your menus page).
Yep, I’ve done that but how can I bring the header logo down to the same level as the menu?
The title area/logo and header right widget area are both too wide to fit within the 1152px space. The title area is 50% (as you can see from the code above) and the header right widget area is 65%….so you’ll need to adjust one or the other so they can both fit. Then you may need to readjust your logo/background position back to fit in the center/middle as it was before like the demo.
There’s a lot of width’s that are 50%. Do I only need to change the header width to 35%?
I’m referring to the header image width as mentioned in the code above – https://appfinite.com/topic/change-header-size/#post-4518
Thanks Wes,
I’ve done it but the height is still the same.
Let me know if it’s too much of a problem for you to explain and I’ll just hire a developer to do it for me.
No its no problem, its actually pretty easy once you understand how it works.
Did you remove the header? Because I don’t see it.
Yeah I lowered the width to see if it would go onto the same line as the menu but it didn’t work, so I restored the header size back to 1152 脳 20 pixels
You can try changing the background-position of the image so it sits in the middle like this –
#header {
background-position: 0 18px !important;
}
This is what it will look like if you do the suggestions – http://i.imgur.com/KZwkyDU.png
That’s exactly what I want.
I can’t seem to find the code in the style.css or the functions.php
How does the original code look like?
You can actually add that code to the header area in your css, and it will override it’s position.
I added it on style.css after /* 04c – Header ———– */
but it doesn’t seem to have worked.
now it seems to be working.
By the way, should I reset the width from 35% back to 50%?
No, if your header is 50% and your header-right widget area is 65% then it would exceed 100% width. You can’t exceed 100% or one of the areas will fall off under the other, and you’d be right back to the same issue. So keep them both equal to 100% or less.
Sounds good.
Thanks for taking the time to help me figure this out, I really appreciate it Wes 馃檪
You’re Welcome