- This topic has 13 replies, 3 voices, and was last updated 1 year, 1 month ago by Leo.
December 8, 2019 at 5:14 am #1097671Eyal
We have the following CSS lines in the style.css file:
If we want to edit it, should we change it directly in the file?
Or any other suggestion.
ThanksDecember 8, 2019 at 7:21 am #1097859DavidStaffCustomer SupportDecember 8, 2019 at 7:33 am #1097867Eyal
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?
ThanksDecember 8, 2019 at 7:38 am #1097869DavidStaffCustomer SupportDecember 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 againDecember 8, 2019 at 7:59 am #1097875DavidStaffCustomer Support
The 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 #1097893DavidStaffCustomer SupportDecember 8, 2019 at 10:11 am #1097956Eyal
DoneDecember 8, 2019 at 12:16 pm #1098042DavidStaffCustomer SupportDecember 8, 2019 at 12:27 pm #1098049Eyal
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 #1098083LeoStaffCustomer SupportDecember 8, 2019 at 10:36 pm #1098259Eyal
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?
ThanksDecember 8, 2019 at 11:08 pm #1098272LeoStaffCustomer Support
Does the option work if you use the parent theme?
If so this should be the issue in your child theme:
- You must be logged in to reply to this topic.