Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #206239

    I have the header for the website set to “Non-fixed Header with social Icons and Navigation” is it possible that it can be non-fixed on desktop and revert to fixed on iPad and tablets?

    thanks
    Phil

    #206291

    Hi oslpag!

    Please add following code to Quick CSS in Enfold theme options under Styling tab

    @media only screen and (max-width: 989px) {
    .responsive #top #header {
    position: fixed;
    }}
    @media only screen and (max-width: 989px) {
    .responsive #top #main {
    padding-top: 148px;
    }}
    @media only screen and (max-width: 480px) { .responsive #top #main {
    padding-top: 176px;
    }}
    

    Cheers!
    Yigit

    #206532

    Hi

    I tried the code but it did not seem to work

    Phil

    #206551

    Hi!

    Have you tried flushing browser cache after applying the code? If so, can you post the link to your website? It works fine on my installation

    Cheers!
    Yigit

    #206560

    Hi

    I am so sorry I got the header types mixed up, I need it to be

    Desktop fixed
    Tablets non-fixed

    Sorry for the confusion

    Phil

    #206578

    Hey!

    Change the code to this:

    @media only screen and (max-width: 989px) {
    .responsive #top #header {
    position: static;
    }}

    And set the header type to fixed.

    Cheers!
    Josue

    #206585

    Works perfect, sorry for the confusion, you may now call me an idiot :-)

    Thanks again for the great fast support

    #206591

    Heh, you are welcome, glad we could help :)

    Regards,
    Josue

    #264550

    Thank you Josue – That code saved me a lot of time and worked great.

    So then the question becomes how do you get the sticky header on tablet WITHOUT the header-meta if you normally have it activated on desktop?

    Thanks! -Raleigh

    #264735

    Hi!

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 990px) {
    #header_meta { 
    display: none !important; }}

    Best regards,
    Yigit

    #264978

    Thanks Yigit – That worked great! (I actually figured that out on my own late last night but didn’t have a chance to come back and post it here yet but I was going to!)

    Enfold support rocks! I see some others in here who do not agree with that but honestly as a developer myself I can say that the support I have seen from the kriesi team is a level above every other theme I have worked with in the past. Great job guys. Thanks. Love what you’re doing.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Fixed Header on iPad (tablets)’ is closed to new replies.