Hey
Is it possible to show a icon / image on top of a masonry item, depending on which category the items have?
Example below in private content.
Thanks a lot!
on the link of the masonry items – you have a class: portfolio_entries-xyz the xyz is the portfolio “category” ( this is actually a taxonomy)
you can place it in a pseudo-container like:
see here: https://webers-testseite.de/pureinstall/portfolio-masonry/
(this was originally a help to place the selection next to the masonry.)
.portfolio_entries-buecher .av-masonry-outerimage-container:before {
content:"";
width: 100%;
height: 100%;
position: absolute;
background-image: url(https://webers-testseite.de/pureinstall/wp-content/uploads/Buecher.png);
background-repeat: no-repeat;
background-size: 100px;
background-position: center 30%;
z-index: 2;
}
and: on posts and categories the class is: category-xyz the category name is the xyz
Hi,
Thanks for helping out @guenni007, did you try that out and did you have any luck with it @tomcarmans?
Best regards,
Rikard
Worms like a charm!
Thanks a lot! :-)
Hi tomcarmans,
Great, I’m glad that you got it working. Thanks again to @guenni007 for helping out :-)
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Close topic, thanks!
Hi tomcarmans,
Thanks for using Enfold and have a great day!
Best regards,
Nikko