Site logo

Archived topic

How can I disable page content for the home page?

4 replies · Started by Kelly on September 8, 2017

Viewing posts 1–5 of 5

Hi,

We use a static front page that just uses sliders within GP hooks and we want to disable the home page content because it is causing padding issues: See here https://dev.uccmpolice.com/

How can I display: none for the content part of just the home page?

Thanks so much

Hi Leo

The padding issue is there is too much space right above where it says "Recent News & Media Releases" on the home page

I need to reduce that space there without affecting the other pages

Any ideas what I could do there?

thank you!

Kelly -

This is the CSS I am seeing for this area:

.recent_news {
    max-width: 1200px;
    background: #fff;
    text-align: center;
    margin: 0 auto;
    padding-top: 60px;
}

There is a top padding of 60px. Set this to 0 and you're good to go :)

You can do so by adding this to the Additional CSS area in the Customizer:

.recent_news {
    padding-top: 0;
}

And if you want this to apply to only the home page, then install Tom's Simple CSS plugin and add the CSS to the CSS meta box on the home page :)

Cheers!
Lyle

This archived topic is closed to new replies.