Home>Support>Mobile has a big space from the menu to Home title

Mobile has a big space from the menu to Home title

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hey need some help with my site take a look at it and see what you can do for me to fix my problem for the mobile version of the site.

jameshull94.com

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 6 months ago Support Assistants

    Hi James

    Thanks for your question.

    You have the following added to AppearanceCustom CSS:

    body.responsive.layout-full #page-wrapper .full-container
    #primary.content-area{
      margin-top:180px;
      width:100%;
    

    Change that to the following to limit its scope:

    @media (min-width: 680px) {
    	body.responsive.layout-full #page-wrapper .full-container #primary.content-area {
    		margin-top: 180px;
    		width:100%;
    	}	
    }    
    
  2. 9 years, 6 months ago James Hull

    hey so i just did what you said and now the content is half way hidden from the fixed header i got how do we fix this.

  3. 9 years, 6 months ago Support Assistants

    Remove everything from Custom CSS and insert:

    .main-navigation {
        box-shadow: 0 2px 10px #555;
    }
  4. 9 years, 6 months ago James Hull

    hey so i removed it all and inserted that but it made my site not have the fixed header like i got made for it that i need.

  5. 9 years, 6 months ago Support Assistants

    Have you enabled AppearanceTheme SettingsSticky Menu?

  6. 9 years, 6 months ago James Hull

    yeah i did that earlier but it only has the menu so it stays i want it so it has my logo fixed and the menu is fixed with the logo like i did earlier. this is what i want check out my site. i just need it so i don’t have the big space between the fixed header i got made only on the mobile devices.

    jameshull94.com

  7. 9 years, 6 months ago James Hull

    i mean i need to have the content on my pages moved down only for my mobile devices

  8. 9 years, 6 months ago Support Assistants

    Would it be possible for you to create a temporary admin account for us so we can log in and take a look? You can create the account with the following email address:

    [email protected]

    Just navigate to UsersAdd New in your WordPress admin. Enter siteorigin for the username and [email protected] for the email address. Make sure you’ve selected Administrator for the role and enabled the Send Password field so we receive the details.

    Once we’re finished taking a look, you can delete this account. We’ll let you know when to do that.

  9. 9 years, 6 months ago James Hull

    ok thanks a lot

  10. 9 years, 6 months ago Private Message - WordPress

    This is a private message.

  11. 9 years, 6 months ago Private Message - Support Assistants

    This is a private message.

  12. 9 years, 6 months ago James Hull

    ok i just got it setup

  13. 9 years, 6 months ago James Hull

    is it working for you

  14. 9 years, 6 months ago Support Assistants

    Yes, thanks.

    The problem is that the header resizes. So in theory we’d need a whole series of adjustments to keep the top margin/padding at the right value. I’m trying to think of an alternative.

  15. 9 years, 6 months ago James Hull

    ok let me know when you have found a solution to this problem of mine

  16. 9 years, 6 months ago Support Assistants

    The cleanest way to do this would be to only use the sticky masthead above 1080px. There are often issues with sticky elements on mobile so there are other reasons to do this. Check it out now.

    I’ve deactivated Simple Custom CSS and combined your Custom CSS. It’ll help load time a tiny bit.

  17. 9 years, 6 months ago James Hull

    Ok so its still fixed header on the desktop but on the iPad and on the cell phones it is no longer fixed header so is there a way that the iPads,tablets,and all mobile devices have the fixed header

  18. 9 years, 6 months ago Support Assistants

    That’s correct.

    The problem is that below 1080px the height of the header is constantly changing. So to avoid the gap you’ve asked about you’d have to have a whole series of media queries to keep adjusting the top margin/padding. Does that make sense? The cleanest most elegant solution is to remove the fixed header for mobile.

    We do our best to assist with custom changes like this but there is only so far we can go. If you’d like we can offer say three media queries and you can can adjust the top margin/padding at those three points. It’s up to you.

  19. 9 years, 6 months ago Support Assistants

    In conclusion this is one solution:

    /* Header */
    @media (min-width: 1080px) {
        header#masthead {
            position: fixed;
            z-index: 300;
            width: 100%;
            box-shadow: 0 2px 10px #555;
            top: 0;
            min-height: 195px;
        }
    
        body.logged-in header#masthead {
            top: 32px;
        }
    
        body {
            padding-top: 180px;
        }
    }

    The other solution is to adjust the padding-top at a few points, but, because the header height is changing constantly below 180px it won’t be perfect. To try that, replace the above with:

    header#masthead {
        position: fixed;
        z-index: 300;
        width: 100%;
        box-shadow: 0 2px 10px #555;
        top: 0;
    }
    
    body.logged-in header#masthead {
        top: 32px;
    }
    
    body {
        padding-top: 180px;
    }
    
    /* Top padding up until 1080px */
    @media (max-width:1080px) {
    	body {
    	    padding-top: 180px;
    	}
    }
    
    /* Top padding up until 780px */
    @media (max-width:780px) {
    	body {
    	    padding-top: 180px;
    	}
    }
    
    /* Top padding up until 480px */
    @media (max-width:480px) {
    	body {
    	    padding-top: 180px;
    	}
    }
    

    See the three media queries above, you’ll need to adjust the 180px value in all three.

  20. 9 years, 6 months ago James Hull

    ok thanks for the help.

  21. 9 years, 6 months ago Support Assistants

    For sure. Let us know if anything isn’t clear about the above two options.

  22. 9 years, 6 months ago James Hull

    hey i did option 2 works good. now is there away for me to adjust the header padding for the mobile screen.

  23. 9 years, 6 months ago Support Assistants

    Sure, you need to adjust the values in the three media queries. Please, see my comments:

    /* Top padding up until 1080px */
    
    /* Top padding up until 780px */
    
    /* Top padding up until 480px */

    You’ll need to adjust the 180px value in each rule. Hopefully, the comments make sense.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More