Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #261875

    I want to add a small graphic to a portfolio grid entry if it belongs to a certain category.

    Tried adding:
    if( has_term( 'my-category', ) ) { $output .= "<div class=''></div>"; }
    to portfolio.php but not able to get anything.

    Thanks

    • This topic was modified 10 years, 6 months ago by DDDesign.
    #262123

    Hi DDDesign!

    Thank you for the info.

    If you don’t mind, we would like to see a screenshot of an example of the portfolio grid item with category. We’ll provide you with a better response once we have a better understanding of the request. And we would like to know the Excerpt settings of your portfolio grid.

    Cheers!
    Ismael

    #262885
    This reply has been marked as private.
    #265329

    Hi!

    I would suggest doing it via CSS instead of trying to modify the individual portfolio class. So if you are using a sortable portfolio grid and you have items that are marked as part of a category it will have the class with _sort on the item. So you could then do a pseudo class :before with your text in the content.

    Cheers!
    Devin

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.