Title: Issue: adding multiple classes
Last modified: July 10, 2018

---

# Issue: adding multiple classes

 *  Resolved [erikjandelange](https://wordpress.org/support/users/erikjandelange/)
 * (@erikjandelange)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/issue-adding-multiple-classes/)
 * Hi Matt,
 * First off, great plugin, good work!
 * I’m trying to add multiple classes to the “Menu Class”. But when i’m testing 
   it in the browser, it removes the whitespaces between the classes, so it creates
   one class.
    I’ve been looking for the problem and found om line 83 of “widget.
   php” the function “sanitize_html_class”. This functions removes the whitespaces.
 * I would be great if you can fix this issue in a future update.
 * With kind regards
    Erik-Jan

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

 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/issue-adding-multiple-classes/#post-10485195)
 * Hi Erik-Jan, glad you like the plugin.
 * I’ve reworked the menu class sanitization to allow for multiple classes to be
   entered.
 * This is available in 3.4.8 (just released).
 * Thanks,
 * Matt Keys
 *  Thread Starter [erikjandelange](https://wordpress.org/support/users/erikjandelange/)
 * (@erikjandelange)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/issue-adding-multiple-classes/#post-10486445)
 * Hee Matt,
 * Awesome thanks! Works like a charm!
 * Erik-Jan

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

The topic ‘Issue: adding multiple classes’ is closed to new replies.

 * ![](https://ps.w.org/wp-nav-plus/assets/icon-256x256.jpg?rev=1724550)
 * [WP Nav Plus](https://wordpress.org/plugins/wp-nav-plus/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-nav-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-nav-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-nav-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-nav-plus/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [erikjandelange](https://wordpress.org/support/users/erikjandelange/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/issue-adding-multiple-classes/#post-10486445)
 * Status: resolved