• Resolved starlight_design

    (@starlight_design)


    PLEASE someone help me to remove the white space at the top of the pages. I have tried all kinds of things and copied css from resolved topics on several sites, and nothing seems to work. Why is it there? What is “site branding” when it’s only a huge gap between content? I did a search for this as I found a similar thread but when I searched, the results were for EVERY THEME EVER in the world, and I am only using this theme, hence the need to post my own topic. I seriously cannot figure out how to remove this and firebug isn’t working either. lol

    Thanks for any help!

    • This topic was modified 8 years, 8 months ago by starlight_design. Reason: add comma

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • What white space are you referring to exactly…between the menu and the main content?

    Thread Starter starlight_design

    (@starlight_design)

    I don’t see a way to attach so here’s a screenshot:
    http://toothperfection.com/SS1.png

    Ah, the screenshot helped. You need some custom CSS to change that in both areas, so in your customizer’s Additional CSS tab, paste this:

    For the header and branding area:

    @media screen and (min-width: 30em) {
    .site-branding {
        padding: 1em 0;
    }
    }

    You can adjust the padding to your preference. The theme’s padding is 3em, but I did it as 1em.

    For the content area, this might be a bit trickier, but the theme scripts adds a dynamic top margin to it, so we have to force a new margin with:

    .site-content .wrap {
        margin-top: 40px!important;
    }

    I did 40px, but you can do whatever you prefer.

    Thread Starter starlight_design

    (@starlight_design)

    Thank you for your reply.

    I put that in and the front page changed a little bit, but the other pages did not change.

    There’s still a huge gap between the site title and the menu on the front page.

    For the branding, make sure you have the exact code as I have below pasted into the Additional CSS tab of the customizer:

    @media screen and (min-width: 30em) {
    .site-branding {
        padding: 1em 0;
    }
    }

    For the other part, I forgot about the “padding”, so also add this:

    @media screen and (min-width: 48em) {
    .site-content {
        padding: 5.5em 0 0;
    }
    }
    .site-content {
        padding: 2.5em 0 0;
    }

    The padding values you see as 5.5em and also 2.5em should be changed to your preference. So try changing 5.5em to something like 2em and change the 2.5em one to like 1em

    Thread Starter starlight_design

    (@starlight_design)

    Thanks again. That helped and things looks pretty nice, but there is still a big white space just above the menu. I’m not sure which thing is causing it as firebug isn’t compatible with firefox now…

    Thread Starter starlight_design

    (@starlight_design)

    Hmm, it seems we have a

    <div class="custom-header" style="margin-bottom: 72px;">

    for whatever reason…

    So, I put this in my styles

    .custom-header {
    margin-bottom: -52px !important;
    padding-bottom: 0px;
    }

    and that worked. I tried 72 and it was too much. ok then strange to find this div but whatever. Thanks for your replies and have a great weekend!

    ~K

    ——————————–
    UPDATE: this only works on the home page – on the other pages, the logo, title and tagline are missing as the menu goes up too much.

    • This reply was modified 8 years, 8 months ago by starlight_design. Reason: not resolved
    Thread Starter starlight_design

    (@starlight_design)

    ok this seems to work

    .home .custom-header {
    margin-bottom: 22px !important;
    padding-bottom: 0px;
    }
    
    .home div.site-branding {
    margin-bottom:  72px !important;
    }
    
    div.site-branding {
    margin-bottom:  48px !important;
    padding-bottom: 0px; !important;
    }
Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Remove White Space’ is closed to new replies.