• Site: http://indulgentlucie.com

    I’m using
    `#main-wrapper .widget li a,
    h2 {background-color: rgba(242, 129, 81,0.8)
    }`
    to highlight or place a background color to just the frontpage recent posts. This is fine for the post title but can’t find where i would do this for the posts explanation or snippet from that post). Yes I have used Firebug (that’s how I figured out how to “highlight” the title of the post) but unsure of the explanation.

    @electricfeet and the rest of the gurus was great on this but I just want the homepage not the whole site.

    Honestly I am learning alot from ya’ll but somethings I just haven’t seen folks ask (or at least I haven’t worded the search right).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The usual way to make a CSS selector more specific would be to add .home or .page-id-n before the selector.

    So you need:

    .home .entry-summary > p {
      background-color:  rgba(242, 129, 81,0.8);
    }

    Thread Starter smokerm

    (@smokerm)

    @rdellconsulting Thank you sir. Worked perfectly. I did see the “entry-summary” but was unsure what to do with it or if that was the right place. Really appreciate everybody’s quick responses in the forum.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Frontpage recent post background color’ is closed to new replies.