Giving custom background image to a category header wp

enter image description here

I’m doing a website on wordpress using newspaper theme, I want to display a custom header on each category but when I add the background with css all the categories display the same banner, and I’m sort of lost on how to achieve this.

This is the element that needs the background:

And this is what I was trying to do in CSS:

.category-galeria-fotografica > .td-theme-wrap > .td_category_template_6 .td-category-header{
width: 100%;
max-width: 1200px;
min-height: 200px;
height: 150px;
background-image: url(http://mywebsite.com/img/image.jpg);
}

Any ideas are very welcome 🙂

Read more here: Giving custom background image to a category header wp

Leave a Reply

Your email address will not be published. Required fields are marked *