Title: Class attribute concatenating multiple classes
Last modified: September 22, 2022

---

# Class attribute concatenating multiple classes

 *  Resolved [david4ww](https://wordpress.org/support/users/david4ww/)
 * (@david4ww)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/class-attribute-concatenating-multiple-classes/)
 * I was on v14.2 but have only just updated to v15.1.
 * Previously I could add more than one class in the class attribute (e.g. `class
   ="john bill"` which is a feature I use to control the formatting of multiple 
   events lists. However now multiple classes are concatenated so the resultant 
   html now includes(using the above example) `class="johnbill"`. This removes formatting
   of VSEL lists throughout the website I manage. I cannot see a reason why this
   change has been made – perhaps it is simply a bug.
    -  This topic was modified 3 years, 8 months ago by [david4ww](https://wordpress.org/support/users/david4ww/).

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

 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/class-attribute-concatenating-multiple-classes/#post-16036061)
 * Hi David,
 * It’s caused by the type of sanitization I’ve used for this: `sanitize_key()` 
   It strips white spaces. Will update plugin upcoming weekend.
 * Guido
 *  Plugin Author [Guido](https://wordpress.org/support/users/guido07111975/)
 * (@guido07111975)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/class-attribute-concatenating-multiple-classes/#post-16039925)
 * Hi again,
 * Have updated plugin few moments ago. Should be fixed.
 * Guido

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

The topic ‘Class attribute concatenating multiple classes’ is closed to new replies.

 * ![](https://ps.w.org/very-simple-event-list/assets/icon-256x256.png?rev=1415754)
 * [VS Event List](https://wordpress.org/plugins/very-simple-event-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/very-simple-event-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/very-simple-event-list/)
 * [Active Topics](https://wordpress.org/support/plugin/very-simple-event-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/very-simple-event-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/very-simple-event-list/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Guido](https://wordpress.org/support/users/guido07111975/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/class-attribute-concatenating-multiple-classes/#post-16039925)
 * Status: resolved