- This topic has 13 replies, 3 voices, and was last updated 6 years, 4 months ago by
Leo.
-
AuthorPosts
-
December 8, 2019 at 5:14 am #1097671
Eyal
Hi,
We have the following CSS lines in the style.css file:
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header,
.wp-block-group__inner-container {
padding: 40px;
}If we want to edit it, should we change it directly in the file?
Or any other suggestion.Thanks
December 8, 2019 at 7:21 am #1097859David
StaffCustomer SupportHi there,
you can change the container padding in Customizer > Layout > Container >> Content Padding
December 8, 2019 at 7:33 am #1097867Eyal
Thanks,
I did that but the above CSS is not changed and it’s effecting the looks of the site only when I’m logged in to wp admin.
So I see different padding for the whole site if I’m logged in or out of the site.
Any idea how to solve this?
Thanks
December 8, 2019 at 7:38 am #1097869David
StaffCustomer SupportAre you using any cache plugins? If so can try disabling them to see if that is the issue.
December 8, 2019 at 7:49 am #1097871Eyal
Already checked that 🙂
Still different site padding for logged in and regular users.
Also, if you see the above CSS – it has a padding of 40px for all sides.
In the “Content Padding” settings we currently have these numbers: 20px 20px 40px 20px
When we edit those numbers the site responds well. But the above CSS doesn’t seems like we have control over it from the interface.Any other ideas?
Thanks again
December 8, 2019 at 7:59 am #1097875David
StaffCustomer SupportThe CSS in the styles.css is the default, which should be overwritten by the Customizer CSS whether the user is logged in or out.
In the Customizer – can you check that the changes are actually published and not Saved as Draft?
December 8, 2019 at 8:33 am #1097890Eyal
They are published not drafts :/
December 8, 2019 at 8:35 am #1097893David
StaffCustomer SupportCan you provide me a link to the site?
You can edit your original topic and use the Site URL field to share privately.December 8, 2019 at 10:11 am #1097956Eyal
Done
December 8, 2019 at 12:16 pm #1098042David
StaffCustomer SupportCould you clear and disable the cache plugin?
December 8, 2019 at 12:27 pm #1098049Eyal
Done.
Now you can see that the padding of .site-content is 40px.
How can I edit it?
Thanks again David!
December 8, 2019 at 1:10 pm #1098083Leo
StaffCustomer SupportAre you using a child theme?
December 8, 2019 at 10:36 pm #1098259Eyal
Hi Leo,
Yes, we’ve added a child theme to add some functionalities.
The child theme has a css file too but these specific style is not defined there.
Any idea why the child theme is causing this?
Thanks
December 8, 2019 at 11:08 pm #1098272Leo
StaffCustomer SupportDoes the option work if you use the parent theme?
If so this should be the issue in your child theme:
https://docs.generatepress.com/article/child-theme-issues/#import -
AuthorPosts
- You must be logged in to reply to this topic.