Featured Image Entry Title Background Colour

This topic contains 6 replies, has 2 voices, and was last updated by  Guust 4 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #525044

    Dale
    Full Member
    Post count: 96

    Good Day,

    I am trying to add a background colour with opacity to the Entry Title of the Listing Details Page.

    I am targeting it as follows:
    [code]
    .sd .featured-area h1.entry-title {
    padding: 2px 8px;
    -khtml-border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
    background-color: rgba(51, 51, 51, 0.6);
    }
    [/code]

    …although this adds an overlay to the Home Page featured image as well and I suppose others too.

    How do I target only the Details page.

    I have tried adding .page-id-xxx to target the Details Page Template page but this does not work.

    Some assistance please.

    Kind regards,

    #525051

    Guust
    Moderator
    Post count: 29970

    Add

    .single-gd_place

    in front of

    .sd .featured-area h1.entry-title

    Thanks

    #525093

    Dale
    Full Member
    Post count: 96

    Hi Guust,

    Thanks for your reply.

    I am afraid that does not work i.e.
    [code]
    .single-gd_place .sd .featured-area h1.entry-title {
    padding: 2px 8px;
    -khtml-border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
    background-color: rgba(51, 51, 51, 0.6);
    }
    [/code]

    I am using Supreme Theme. Perhaps it’s different?

    #525097

    Dale
    Full Member
    Post count: 96
    This reply has been marked as private.
    #525141

    Guust
    Moderator
    Post count: 29970

    For events use

    .single-gd_event .featured-area h1.entry-title {}

    Thanks

    #525346

    Dale
    Full Member
    Post count: 96

    Thanks Guust,

    This works perfectly; – removal of the .sd prefix to .featured-area was also necessary.

    #525352

    Guust
    Moderator
    Post count: 29970

    You’re welcome

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount