Site logo

Archived topic

Category image header CSS

8 replies · Started by dale on June 1, 2017

Viewing posts 1–9 of 9

I was playing with category pages today and looked at some other questions in the support forum about changing the header image with this

.category-xx .site-header {
background-image: url('CUSTOM IMAGE URL');
}

I tried it as,

.category-chechnya .site-header {
background-image: url(https://dalecameronlowry.com/wp-content/uploads/2017/06/chechen-rainbow-2000px.jpg
);
}

and got this:

category page header weird

Thoughts?

Look like the CSS is working? Can you link me to the actual page?

Could try this:

.category-chechnya .site-header {
    background-image: url(https://dalecameronlowry.com/wp-content/uploads/2017/06/chechen-rainbow-2000px.jpg);
    background-size: contain;
}

Yup that's just the nature of background images.

You would need to redesign that image to fit.

Just to make sure we're not miscommunicating — I don't want the logo to show at all. I wanted this header to replace it.

It's okay if that's not possible. Just want to be sure.

Oh I didn't know that you wanted to hide the logo on that page.

Try this:

.category-chechnya .site-logo .header-image {
    display: none;
}

Thanks! Looks great now.

Glad I could help!

This archived topic is closed to new replies.