Title: active css class
Last modified: August 21, 2016

---

# active css class

 *  Resolved [macrocurio](https://wordpress.org/support/users/macrocurio/)
 * (@macrocurio)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/active-css-class/)
 * Hello,
 * I have been playing around with this plugin and I noticed that when the site 
   is on a post, in the nav all the posts from the same category (that were added
   through this plugin) will also have the active css class.
 * Is there a way for me to change this? I would like to show the current article
   link as a different colour to the rest of the articles through CSS.
 * Thanks 🙂
 * [http://wordpress.org/plugins/category-posts-in-custom-menu/](http://wordpress.org/plugins/category-posts-in-custom-menu/)

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

 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/active-css-class/#post-4199640)
 * Hi,
 * thank you very much for reporting this. To be frank, I had not noticed this and
   will look into it quickly.
 * I will have to investigate how WordPress usually determines whether the menu 
   item is active or not, and will report back as soon as I have any findings.
 * Again, thank you for reporting!
 * Kind regards,
    Diana
 *  Thread Starter [macrocurio](https://wordpress.org/support/users/macrocurio/)
 * (@macrocurio)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/active-css-class/#post-4199664)
 * No worries, happy to help 🙂
 *  [jansolo76](https://wordpress.org/support/users/jansolo76/)
 * (@jansolo76)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/active-css-class/#post-4199742)
 * Hi Diana,
    same Problem here. Are there any progresses already? I was searching
   for a solution by myself to tweak the plugin, but without success.
 * Best Regards,
    Jan
 *  [jansolo76](https://wordpress.org/support/users/jansolo76/)
 * (@jansolo76)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/active-css-class/#post-4199743)
 * Hi Diana and macrocurio,
 * i found out if you delete transferring the class in line 214
    ($post->classes
   = $menu_item->classes;) it does as it should.
 * Best Regards,
    Jan
 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/active-css-class/#post-4199770)
 * Hi Jan,
 * thank you kindly for pointing out the line that causes problems. I will update
   the plugin with that change shortly.
 * Kind regards,
    Diana
 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/active-css-class/#post-4199783)
 * Hi all,
 * I’ve updated the plugin. Closing this thread.
 * Kind regards,
    Diana
 *  Thread Starter [macrocurio](https://wordpress.org/support/users/macrocurio/)
 * (@macrocurio)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/active-css-class/#post-4199790)
 * Thanks Diana! Really appreciate it 🙂
 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/active-css-class/#post-4199791)
 * No problem. However, the next update will involve another change in CSS class
   handling. See [http://wordpress.org/support/topic/issue-with-default-wordpress-sidebar-menu](http://wordpress.org/support/topic/issue-with-default-wordpress-sidebar-menu)
   reported by Adrian Fisse.
 * I hope I can find a solution that will work for both cases.

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

The topic ‘active css class’ is closed to new replies.

 * ![](https://ps.w.org/category-posts-in-custom-menu/assets/icon-128x128.png?rev
   =2539336)
 * [Category Posts in Custom Menu](https://wordpress.org/plugins/category-posts-in-custom-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-posts-in-custom-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-posts-in-custom-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/category-posts-in-custom-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-posts-in-custom-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-posts-in-custom-menu/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/active-css-class/#post-4199791)
 * Status: resolved