[Support request] is there a css way to add an element to featured images in blog posts?

Home Forums Support [Support request] is there a css way to add an element to featured images in blog posts?

Home Forums Support is there a css way to add an element to featured images in blog posts?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #407728
    sdanbu

    Featured images function like headers in blog posts.

    I wanted to add an element to the featured image using CSS.

    In a previous thread
    https://generatepress.com/forums/topic/can-logo-be-same-line-as-navigation-and-right-aligned-button/

    you told me how to insert a page header element. Is there a way to do the same thing for a featured image?
    .page-header-content:before {
    content: “”;
    width: 100%;
    height: 100%;
    background-image: url(url removed for forum)
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center bottom;
    position: absolute;
    }

    #407784
    Tom
    Lead Developer
    Lead Developer

    Possibly, you’d like just have to switch the .page-header-content class with .page-header-image.

    Let me know 🙂

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