[Resolved] Category Image header "broke" with latest update

Home Forums Support [Resolved] Category Image header "broke" with latest update

Home Forums Support Category Image header "broke" with latest update

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #366491
    dale

    Howdy. I have php in my theme that directs the post header in all posts in a certain category to be full width, as discussed here: https://generatepress.com/forums/topic/category-image-header-css/

    I just updated GP this morning and the header is now tiny. See here:

    https://dalecameronlowry.com/what-media-gets-wrong-chechnya-anti-gay-campaign/

    What’s the fix?

    #366507
    Tom
    Lead Developer
    Lead Developer

    You have this CSS added:

    .page-header-image-single img {
        max-height: 600px;
        width: auto;
    }
    
    .page-header-image-single img {
        max-width: 600px;
    }

    If you remove that CSS, the image should display at its full size.

    Let me know ๐Ÿ™‚

    #373779
    dale

    OK. Problem is that on single posts, I always want the page header size limited to those proportions. If I remove it, they take up the width of the container.

    #373806
    Leo
    Staff
    Customer Support

    So what’s the issue?

    #373910
    dale

    Sorry, I meant I always want the featured image to be constrained to those proportions. In the Chechnya category pages, I want the header to stretch across the page.

    #373982
    Tom
    Lead Developer
    Lead Developer

    Ahh, give this a shot:

    .single.chechnya .page-header-image-single img {
        max-width: 100%;
    }
    #374211
    dale

    Worked great. Thanks!

    #374247
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

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