Site logo

Archived topic

Why is there more padding above the content without sidebars than with sidebars?

7 replies · Started by Arp on January 11, 2022

Viewing posts 1–8 of 8

I'm having an issue trying to figure out why the home page, which has no sidebar, has more padding above the content area than the interior pages with sidebars.

Thanks, I missed that extra div! I've done that, and there's still more space above the content area on the home page vs the interior pages (looks like ~40px instead of ~20px).

Hi there,

Looking at the page hero on the other pages, there's an empty paragraph block under the gb container:
https://www.screencast.com/t/VEiFohl8I

Can you check the block element and make sure the empty paragraph is removed?

Thanks, I missed that one too. But it’s the space between the content & the secondary nav on the home page that’s more than the other pages.

Can you try the Contained setting for the home page?
https://docs.generatepress.com/article/content-container/#contained

As a general rule, if you are using multiple GB containers to construct a page like your home page, then you should use the content container settings to remove the padding added by the theme so you can use GB's container padding settings to have complete control without tweaking at two different spots.

Let me know if this makes sense :)

Thanks, that did it! I’d never noticed that setting before.

This is a little weird because that box at the top of the home page is actually copied from a block element replacing the left sidebar. When I edit the block element, it updates the block on the home page 🤔

No problem :)

This archived topic is closed to new replies.