- This topic has 12 replies, 3 voices, and was last updated 4 years, 3 months ago by
Ying.
-
AuthorPosts
-
December 18, 2021 at 1:55 pm #2053258
Dmitrii
The left padding I added to push the titles on my Posts is also affecting my homepage & archive pages.
How do I make it so that the padding only applies to post titles (and not the homepage or archive pages)?
December 18, 2021 at 2:06 pm #2053268Ying
StaffCustomer SupportHi Dmitrii,
How did you set the left padding? Customizer option or CSS?
Let me know 🙂
December 18, 2021 at 2:54 pm #2053292Dmitrii
Customizer option.
December 18, 2021 at 4:09 pm #2053320Ying
StaffCustomer SupportIs this the value you set in customizer:
[screenshot redacted as requested by user]If so, change it to a normal value in customizer, then add this CSS so that the padding only applies to single post pages.
.separate-containers.single-post .inside-article { padding: 95px 45px 0px 120px; }December 18, 2021 at 11:16 pm #2053402Dmitrii
Please remove my site – I do not want it shared with the public via screencast.
And thank you – that worked.
December 18, 2021 at 11:40 pm #2053410Dmitrii
It worked on desktop, but now my page looks very wrong on mobile and tablet. Reverting the change in the mean time.
December 19, 2021 at 9:07 pm #2054081Tom
Lead DeveloperLead DeveloperHi there,
You can make the custom CSS apply on desktop-only like this:
@media (min-width: 1024px) { .separate-containers.single-post .inside-article { padding: 95px 45px 0px 120px; } }Let us know if that helps or not 🙂
December 20, 2021 at 3:20 am #2054270Dmitrii
That worked perfectly, thanks Tom!
Just for my own sake – is additional left padding the best way to create a “centered” style like this? https://www.weddingforward.com/lavender-wedding-colors/
Or is there a better way forward?
Thanks!
December 20, 2021 at 10:39 am #2054797Ying
StaffCustomer Supportis additional left padding the best way to create a “centered” style like this?
No, the content should be centered by default if there’s no sidebar activated on the page.
December 20, 2021 at 11:33 am #2054848Dmitrii
Got it – I have a side bar though (there will be ads there shortly).
Does that change anything?
December 20, 2021 at 12:08 pm #2054895Ying
StaffCustomer SupportThen the content + sidebar as the site container will be centered automatically.
I can’t imagine only center the content with a sidebar activated, then the margin/space on the 2 sides would be different.
December 21, 2021 at 5:17 am #2055438Dmitrii
Thanks.
December 21, 2021 at 10:24 am #2055951Ying
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.