Archived topic
Category Image header "broke" with latest update
7 replies · Started by dale on August 15, 2017
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?
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 :)
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.
So what's the issue?
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.
Ahh, give this a shot:
.single.chechnya .page-header-image-single img {
max-width: 100%;
}
Worked great. Thanks!
You're welcome :)