Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: css per post doesnt work

Discussion in 'Misc WordPress Requests' started by Steve Stern, Nov 6, 2017.

  1. Steve Stern


    Reply To: css per post doesnt work, by Steve Stern

    I just want to change background color for specific post.

    So you need to know *which* post, right? Look at the <body> tag to get the post ID, and then use that for the CSS. For example, give a body line of

    <body class="home page-template-default page page-id-311 custom-background">

    the page’s body class is page-id-311 so to change the background on that page, I’d use the CSS

    .page-id-311 body {
    background: #123456;

    Reply To: css per post doesnt work

Share This Page

Monarch Social Sharing Plugin