Forums
Home / Plugin: AM Events / Add category slug for styling template in widget
(@mchampa)
9 years ago
How can I reference the category in the template area in the widget.
For example, I would like output to be: <div class="cat-1">My Event Title</div>
<div class="cat-1">My Event Title</div>
using widget template of: <div class="[event-category]">[event-title link=false]</div>
<div class="[event-category]">[event-title link=false]</div>
Thanks. am-events
https://wordpress.org/plugins/am-events/
(@moisture)
Hi,
So you’ll need the category slug instead of name, am I right?
I’m afraid that’s not currently possible, but I can include it on an upcoming update I’ve been working on. It’ll probably take some time though.