Tagged: background color, category, masonry
Hello there,
i have on my website, a masonry with posts, sorted by category.
Is it possible to change excerpt category of each post, by category?
Meaning all posts from category A will have background color Yellow,
all posts from category B will have background color RED, etc.
How can i do that?
Hey Antonis,
Please try this CSS to see if it changes anything:
.home #av-masonry-2 .category-41 .site-background {
background-color:blue !important;
}
Best regards,
Rikard
i am afraid it is not working.
Can you please check it again?
Below are my credentials.
Hi,
Please add Rikards css to the very top of quick css so that it runs first to see if there is any malformed css beneath it.
Best regards,
Jordan Shannon
i did. But nothing changed.
What should we try more?
Regards,
Hi,
Try this instead:
#av-masonry-3 .category-a .site-background {
background-color:blue !important;
}
Please note that we are here to help with problems with the theme, not to customise it.
Best regards,
Rikard
I am afraid still not works.
Can you please help me with that?
Hi,
Can you provide a screenshot of the page you’re looking to effect in case we are misunderstanding you.
Best regards,
Jordan Shannon
Of course you can see below the image highlighted with the blog masonry and the categories.
Hi qualiapharma,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#top.home .isotope-item.category-a figcaption {
background-color: yellow;
}
#top.home .isotope-item.category-b figcaption {
background-color: blue;
}
#top.home .isotope-item.category-c figcaption {
background-color: red;
}
If you need further assistance please let us know.
Best regards,
Victoria