Halfway there! Need a bit more code

  • Unknown's avatar

    Hi. I’m on Saga theme and want the background on posts, post previews on main blog page, and background on pages to be the same color as my main background, which is #e2d9d0

    I’m halfway there with this code:

    .type-post {
    background: #e2d9d0 !important;
    }
    .type-page {
    background: #e2d9d0 !important;
    }

    I can’t for the life of me find code for the remaining white that is visible on posts and pages. Thank you in advance!!!

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

  • Unknown's avatar

    CSS isn’t my strong suit, but I noticed that .entry-inner is set to white (#fff).

  • Unknown's avatar

    HI, @micawbr.

    I’m not sure what you’re referring to. I checked my CSS stylesheet in the Customize feature and don’t see “.entry-inner”…

  • Unknown's avatar

    I used the Chrome browser to view your site, right-clicked on the white area, and selected Inspect Element. That’s where I saw this code:

    .entry-inner {
      position: relative;
      background-image: initial;
      background-position-x: initial;
      background-position-y: initial;
      background-size: initial;
      background-repeat-x: initial;
      background-repeat-y: initial;
      background-attachment: initial;
      background-origin: initial;
      background-clip: initial;
      background-color: rgb(255, 255, 255);
      margin: 0 auto;
      padding: 3em 1.5em 1.5em;
    }

    Perhaps try adding this to your CSS stylesheet:

    .entry-inner {
      background-color: inherit;
    }
  • Unknown's avatar

    Worked. Thank you! I’ll mark the thread “resolved.”

  • The topic ‘Halfway there! Need a bit more code’ is closed to new replies.