Tagged: Header Height
-
AuthorPosts
-
January 16, 2014 at 3:01 am #210453
Hey!
Could someone please tell me how to adjust the height of the header?
Thank you so much,
RubieJanuary 16, 2014 at 6:20 am #210480Hi rubieandersson!
Can you post the link to your website or tell us which type of header you are using? You can check it in Enfold theme options under Header tab
Best regards,
YigitJanuary 16, 2014 at 8:02 pm #210854This reply has been marked as private.January 16, 2014 at 8:18 pm #210859Hey!
Please add following code to Quick CSS in Enfold theme options under Styling tab
.logo, .logo a, .logo img { max-width: 156px!important; } #header_main .container, .header_color .main_menu ul:first-child > li > a { height: 156px!important; line-height: 156px!important; } .fixed_header #main { padding-top: 156px; }
Regards,
YigitJanuary 16, 2014 at 8:27 pm #210861This reply has been marked as private.January 16, 2014 at 8:29 pm #210864Hi!
Some part of code is not being applied. Please try adding the code to Custom.css file inside Enfold/Css folder
Regards,
YigitJanuary 16, 2014 at 8:36 pm #210866Hey again,
I tried but unfortunately it still looks the same… Please tell me if there’s anything else I can do.
Thank you so much,
RubieJanuary 16, 2014 at 8:37 pm #210867Hey!
Do you mind creating a temporary admin login and posting it here privately so i can take a look?
Regards,
YigitJanuary 16, 2014 at 8:42 pm #210868This reply has been marked as private.January 16, 2014 at 8:48 pm #210873Hi!
Fixed. > punctuation mark was turned into html and that caused the issue. I replaced it and removed the code you have added for your logo as the one i posted makes it display fullwidth and it seems to be working fine now
Regards,
YigitJanuary 16, 2014 at 9:03 pm #210883Thank you so much!! You are the best! The only problem now is that the there is so much space between the menu and the bottom of the header, is there a way to move the men text down?
Best,
RubieJanuary 16, 2014 at 9:12 pm #210889Hi!
I have adjusted a bit. If you would like to change its position, please find following code in Quick CSS and change the value
.header_color .main_menu ul:first-child > li > a { line-height: 180px!important; }
Cheers!
YigitJanuary 16, 2014 at 9:28 pm #210900That looks great!! Can’t thank you enough!
Is it possible to have it like it is right now, but to make the logo shrink slightly when scrolling down, but not as much as it did before? I completely understand if it’s too complicated, but that would make it perfect.
Best Regards,
RubieJanuary 16, 2014 at 9:38 pm #210902Hi!
Please review your website :) You will find logo max-height: 100px in Quick CSS. You can decrease it to make it smaller or increase to make it bigger.
Best regards,
YigitJanuary 16, 2014 at 10:37 pm #210916Hi!
Sorry to have so many questions. I mean to not make it static, to have it as it is now when you’re up on the page but to change the size of the logo to smaller when you’re scrolling down.
Thank you so much!
Best Regards,
RubieJanuary 16, 2014 at 10:52 pm #210918Hey!
Please flush browser cache and refresh your page a few times. It works as you explained.
Best regards,
YigitJanuary 16, 2014 at 10:56 pm #210920The logo gets smaller, but the header still the same size. So sorry to be so unclear, but what I was trying to achieve was that the header shrinks as well as the logo…
Thank you so much!
Rubie
January 16, 2014 at 11:09 pm #210922Hey!
You earlier said and i quote “Also, right now the header bar shrinks while I move down the page. How can I make it static?“.
Customization you asked was beyond the scope of support we can provide but i wanted to finish what i started but it is getting more and more complicated..
To achieve what you would like, you need to make some changes on the code i posted earlier and go to wp-content\themes\enfold\js folder and open avia.js file and findel_height = $(elements).filter(':first').height(), isMobile = 'ontouchstart' in document.documentElement, scroll_top = $('#scroll-top-link'), set_height = function() { var st = win.scrollTop(), newH = 0; if(st < el_height/2) { newH = el_height - st; header.removeClass('header-scrolled'); } else { newH = el_height/2;
to
el_height = 156, isMobile = 'ontouchstart' in document.documentElement, scroll_top = $('#scroll-top-link'), set_height = function() { var st = win.scrollTop(), newH = 0; if(st < el_height/1.5) { newH = el_height - st; header.removeClass('header-scrolled'); } else { newH = el_height/1.5;
Cheers!
YigitJanuary 17, 2014 at 12:04 am #210938So sorry to be so confusing! I have a client that changes his mind a lot. I truly appreciate all your help. Can’t thank you enough!
I edited the avia.js css as you said but didn’t know what change to make to the code you posted earlier, so I don’t see any changes. But don’t want you to spend more time on it, so unless it’s some easy code you know on top of your head I will keep it static.
Again thank you so, so much!!
Best,
RubieJanuary 17, 2014 at 5:58 am #211018Hi!
You just need to change these line of codes:
if(st < el_height/2)
Replace with:
if(st < el_height/1.5)
And this line of code:
newH = el_height/2;
Replace it with:
newH = el_height/1.5;
You can see those lines inside the function avia_header_size() on line 1285. Remove browser cache and reload the page a few times to see the effect.
Cheers!
IsmaelJanuary 17, 2014 at 6:56 pm #211337may you desired the same as me…
here is my css solution:/* Header Modifikation */
.logo img {
padding: 18px 0 !important;
height: 58px !important;
}.fixed_header.social_header #main {
padding-top: 88px !important;
}#header_main {
height: 59px !important;
}ul#avia-menu.menu li a {
height: 59px !important;
line-height: 59px !important;
color: #ffffff !important;
}ul#avia-menu.menu ul.sub-menu li a {
height: auto !important;
line-height: 18px !important;
}January 17, 2014 at 9:46 pm #211384April 25, 2014 at 12:52 am #255894What I want to do is for a couple of selected pages, to show the header and logo display only at the smaller size, even before scrolling. There are a couple of pages where I really want to maximise page space so that visitors don’t have to scroll.
Is this easily done?
Thanks
TimApril 25, 2014 at 5:33 am #255915I’m not sure that this should be here, so I’m creating a new ticket
-
AuthorPosts
- The topic ‘How to adjust height of header’ is closed to new replies.