Dear Enfold team,
For a project I am looking for a portfolio item hook. I would like to show the category name under the title. Can you help me in this.
See Screenshot for the result what I want.
Thx!
Hey FullPixel,
There is no hook available to add that category there.
However you can override the Portfolio Grid in the child theme, you can check in our documentation on how to override it: https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#add-elements-to-alb
The file you need to override and you’ll need to copy from is enfold > config-templatebuilder > avia-shortcodes > portfolio > portfolio.php
Then find this code in line 652:
$output .= !empty($excerpt) ? "<div class='grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup)).">".$excerpt."</div>" : '';
above it you can add your category, just place it inside the $output variable. Hope this helps.
Best regards,
Nikko