Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1236669

    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!

    #1236753

    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

    #1236856

    Hi,

    Thanks for helping out @guenni007, did you try that out and did you have any luck with it @tomcarmans?

    Best regards,
    Rikard

    #1236964

    Worms like a charm!
    Thanks a lot! :-)

    #1237270

    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

    #1237458

    Close topic, thanks!

    #1237510

    Hi tomcarmans,

    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Show an icon in masonry, depending on category’ is closed to new replies.