Hide Article Container on Homepage
-
I’m trying to hide the article container on my homepage here:
https://www.wabi.dreamhosters.com/
As you can see, when the article is left blank, it creates a white line where the container would be. This is because I have the body set to green and the container set to white, which I want site-wide but not on the homepage.
The easiest thing to do would be to make the background of the homepage container green, but I’m not sure of the precise syntax to do so.
The relevant CSS already in use is:
.container[role=”main”] {
background-color: white;
}and it seems to me that it needs to become something like
page-2 or post-2 or page-id-2 or home container {
background-color: green;
]But again, I don’t know the syntax to create that command and change the container on this page only to green.
Any ideas from someone with more knowledge of CSS than I have?
- The topic ‘Hide Article Container on Homepage’ is closed to new replies.