Trying to make the background of a single post black

[ad_1]

Hey Everyone! I'm trying to make th background of just one of a few hundred posts on my blog black (#000000.).Here is the extra CSS I added at the bottom. How come it doesn't work (even after cearing cache?) Is it the word "wrapper?" I don't have any borders around the post.

.postid-17829blog-post-wrapper {

background-color: #000000 !important;

}

.postid-17829 .entry-title { color: #FFFFFF;}

[ad_2]
2 Comments
  1. We need to see the page itself to be able to determine the problem.

    I doubt the selectors used in your first rule exist like that.

  2. In your CSS, `.postid-17829blog-post-wrapper` is being treated as a single class. If `postid-17829` is the class for the post and `blog-post-wrapper` is the class for the wrapper, you should add a space between them.

    `.postid-17829 .blog-post-wrapper {`

    `background-color: #000000 !important;`

    `}`

    `.postid-17829 .entry-title {`

    `color: #FFFFFF;`

    `}`

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer