Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] Featured image background color

Home Forums Support Featured image background color

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #294577
    Jamal

    Hi

    I would like to have a background color for the single post featured image. Currently i have featured image set above content area and i couldn’t find the right class to target. Thanks in advance.

    Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.

    GeneratePress 1.3.46
    GP Premium 1.2.96
    #294728
    Leo
    Staff
    Customer Support

    Hi Jamal,

    Sorry not quite sure what you meant by background color for featured image?
    Shouldn’t the featured image just cover up the whole area?

    Can you provide an example? Let us know 🙂

    #294824
    Jamal

    Thanks for the reply Leo. My current featured images are not very big and making them stretch 100% container width will make them look distorted. Since all the featured images will have same color, i though to apply a background color to the featured image “container” so as to make them look 100% width.

    I tried applying background color to .generate-page-header but this applies it to all the page headers. Tried .single .generate-page-header but it doesnt seem to work.

    Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.

    #294832
    Tom
    Lead Developer
    Lead Developer

    Any chance you can link me to the page in question? I should be able to provide the selector 🙂

    #295333
    Jamal

    It’s my site which i never finish and never stop tinkering with :lol

    http://www.cannysolutions.se/kundcase/midnimo-kulturforening/

    Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.

    #295344
    Leo
    Staff
    Customer Support

    Hi Jamal,

    Can you try this?

    .page-header-image-single {
        text-align: center;
        background-color: #000000;
    }

    Let me know if this is what you wanted.

    #295437
    Jamal

    Thanks Leo, that got me close and i’m satisfied with it for now.

    Agressively support the kind of work you want to see. Buy it. Talk about it. Review it.

    #295460
    Leo
    Staff
    Customer Support
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.