[Resolved] Featured image background color

Home Forums Support [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.

    #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.

    #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/

    #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.

    #295460
    Leo
    Staff
    Customer Support

    Glad I could help!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.