Changing Body Color, what am I missing?

  • Unknown's avatar

    Greetings!

    I’m just starting to hammer out a gaming website, and the body color of pages/posts is already stumping me.

    I’ve researched and realize that I need to change the css. I grabbed what I thought i needed to and pasted it into the css editor. I doesn’t change anything until I suppress the original theme’s css.

    What am I missing to just change one thing in the css, or do i have to customize it all to change on thing?

    Thanks in advance,
    Garrett

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hello Garrett,

    Your browser’s web inspector tools are helpful when trying to figure out what part of the CSS to change: https://en.support.wordpress.com/custom-design/how-to-find-your-themes-css/

    Looking at one of your posts shows it has a class of
    post-121 post type-post status-publish format-standard hentry category-uncategorized clear

    ‘post-121’ is a unique identifier. Changing the CSS for that will only affect one post.

    The next one is ‘post’. All the other posts on your site have that class, so that’s a good one to try.

    To change the background color use this in the CSS tab on the Customizer:

    .post {
      background-color: #ccc;
    }

    I just used gray (#ccc) in this example, but you can change that to whatever color you want. If you need help with the code, a couple of choices are colorpicker.com or the Color Picker in the Colors & Backgrounds tab of the Customizer: https://en.support.wordpress.com/custom-design/custom-colors/#color-picker

    Here’s a link to a CSS guide which covers the basics and also includes links to other CSS resources: https://en.support.wordpress.com/custom-design/css-basics/

  • Unknown's avatar

    Ok. Thanks for the insight. I was unsure if I was missing a step, but I just had the wrong selector.

    This is hour 6 for me getting in to css.

    Thanks for the help.

    Cheers.

  • The topic ‘Changing Body Color, what am I missing?’ is closed to new replies.