Title: Highlight event category link
Last modified: August 21, 2016

---

# Highlight event category link

 *  Resolved [zeroczy](https://wordpress.org/support/users/zeroczy/)
 * (@zeroczy)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/highlight-event-category/)
 * Hi
 * I have some events grouped in 3 categories.
    [http://advanceszkolenia.pl/szkolenia-otwarte/](http://advanceszkolenia.pl/szkolenia-otwarte/)
 * Now i’d like to highlight left menu items.
 * It’s possible to put a category name in the permalink (and in a body class) and
   style specific item with CSS, for example here:
    [http://advanceszkolenia.pl/szkolenia-otwarte/szkolenia-marketingowe/](http://advanceszkolenia.pl/szkolenia-otwarte/szkolenia-marketingowe/)
 * But i can’t do the same on the Event page.
    Is there any way to add CATEGORYNAME(
   or SLUG or other) in body class? Or is there any other way to connect event with
   its category in front side to style category links with CSS?
 * thx for any help

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/highlight-event-category/#post-4049387)
 * Hi,
 * Yes. The code at the end of this page should help:
    [http://wordpress.org/support/topic/plugin-events-manager-display-placeholders-content-in-template?replies=3](http://wordpress.org/support/topic/plugin-events-manager-display-placeholders-content-in-template?replies=3)
 * Just change #_EVENTDATES to #CATEGORYNAME.
 *  Thread Starter [zeroczy](https://wordpress.org/support/users/zeroczy/)
 * (@zeroczy)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/highlight-event-category/#post-4049426)
 * thank you **caimin_nwl** 🙂
 * in my functions.php i added
 *     ```
       //EM event Body Class
       function add_EM_event_body_class( $classes ) {
       global $post;
       $EM_Event = em_get_event($post->ID, 'post_id');
       $classes[] = $EM_Event->output('#_CATEGORYSLUG');
   
       return $classes;
       }
       add_filter( 'body_class', 'add_EM_event_body_class' );
       ```
   
 * and that worked 🙂
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/highlight-event-category/#post-4049436)
 * thanks for the updates.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Highlight event category link’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [event](https://wordpress.org/support/topic-tag/event/)

 * 3 replies
 * 3 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/highlight-event-category/#post-4049436)
 * Status: resolved