I want to change a single page’s background color while not changing the background-colors on other pages.
I know the code for that, but I don’t know the specific ID for a page.
Is there a way to know the ID or do I need to set the ID? if so, how I can give an id to a page?
I want to change only the front page’s background color to white.
1. Use a body class to target your CSS: Each page/post in wordpress has a unique class added to the body tag which includes the ID of the page. You can target that CSS class to change the background color on only that page.
2. Use Inline CSS (recommended): Use the HTML block to add inline CSS to the page/post itself. Simply add your CSS between <style></style> tags. Like this:
<style>
body {
background-color: #fafafa;
}
</style>
Ok, so you have the Customizer > Color > Body, which is now white on that page.
But you also have the Customizer > Color > Content, which is the other color you see due to the padding on mobile.