- This topic has 13 replies, 3 voices, and was last updated 4 years, 3 months ago by
David.
-
AuthorPosts
-
December 11, 2021 at 10:36 pm #2046164
Trạng
Hi there, I want to set the top & bottom padding for the main content area for pages on my site.
How could I do that? The top & bottom content is very close to header & footer right now. I can’t find where to fix it 🙂
December 12, 2021 at 6:47 am #2046416Trạng
Can anyone help me with this problem?
December 12, 2021 at 9:06 am #2046616Trạng
Still wait for the support
December 12, 2021 at 9:25 am #2046625David
StaffCustomer SupportHi there,
make sure your Content Container is set to Default:
https://docs.generatepress.com/article/content-container/
And if you can please afford us a little patience, especially on a Sunday, we aim to answer all support topics within 24hrs, spamming your own topics is not going to help us in any way to respond any faster. Thanks in advance.
December 12, 2021 at 5:41 pm #2046919Trạng
Hi thanks for the rep.
It’s in default setting already but there is no padding in top & bottom.
December 12, 2021 at 7:17 pm #2046959Elvin
StaffCustomer SupportHi there,
I see you’re using a Layout element to set the content container to
Full width (no padding).This particular setting removes the padding added by the customizer.
If you wish to keep both the padding and the layout element setting, you’ll have to manually re-add the padding with CSS.
Example:
#content { padding: 40px; }December 12, 2021 at 8:13 pm #2046993Trạng
Hi Elvin, but if I only use
#content { padding: 40px; }This padding will be removed
.right-sidebar .inside-page-header { padding: 30px 20px 120px 150px;I only want page layout & posts in no-sidebar layout have top & bottom padding.
December 12, 2021 at 9:21 pm #2047015Elvin
StaffCustomer SupportYou can modify it to this:
body.no-sidebar #page { padding: 30px 20px 120px 150px; }Or set it to
padding: 30px 0px;. Adjust it to your preference.December 12, 2021 at 9:34 pm #2047020Trạng
The
padding: 30px 0px;works like a champ.Thanks alot!
December 12, 2021 at 9:44 pm #2047024Elvin
StaffCustomer SupportNo problem. 😀
December 14, 2021 at 2:10 am #2048400Trạng
Hi Elvin, is there anyway that allow me exclude the 30px top padding for the homepage? -> Screenshot
I just realize that after use the padding 30px 0px, all the posts pages with no sidebar works like a champ but it also apply top 30px padding for homepage 😀
December 14, 2021 at 5:20 am #2048600David
StaffCustomer SupportThis line:
body.no-sidebar #page {becomes:
body.no-sidebar:not(.home) #page {December 14, 2021 at 7:47 am #2048751Trạng
It works so well! Thank David Sir!
December 14, 2021 at 7:57 am #2048938David
StaffCustomer SupportGlad we could be of help
-
AuthorPosts
- You must be logged in to reply to this topic.