Title: multiple class names get mangled&#8230;
Last modified: October 27, 2016

---

# multiple class names get mangled…

 *  Resolved [hughc](https://wordpress.org/support/users/hughc/)
 * (@hughc)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/multiple-class-names-get-mangled/)
 * Hi,
    just wondering why the plugin uses `sanitize_html_class` when processing
   the class attribute? Many style frameworks expect multiple classes to be applied
   elements in order that they style correctly, ie `class="button button-green button-
   rounded"`. Currently, these get munged by the stripping of spaces
 * Reading [the codex](https://codex.wordpress.org/Function_Reference/sanitize_html_class),
   the call is more for generating a classname from an otherwise unknown source,
   like a post title.
 * Otherwise very happy with it!
    cheers, Hugh

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

 *  Plugin Author [James Collins](https://wordpress.org/support/users/jamescollins/)
 * (@jamescollins)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/multiple-class-names-get-mangled/#post-8361532)
 * Thanks for the bug report Hugh, I’m working on a fix right now.
 * I’ll let you know once a new version has been released.
 * James
 *  Plugin Author [James Collins](https://wordpress.org/support/users/jamescollins/)
 * (@jamescollins)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/multiple-class-names-get-mangled/#post-8361556)
 * Hi again Hugh,
 * I’ve just released a new version (v1.0.5) that should fix this issue.
 * Could you please update to this new version and let me know if it fixes your 
   issue?
 * Thanks very much 🙂
 * James

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

The topic ‘multiple class names get mangled…’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/log-out-shortcode.svg)
 * [Log Out Shortcode](https://wordpress.org/plugins/log-out-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/log-out-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/log-out-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/log-out-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/log-out-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/log-out-shortcode/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [James Collins](https://wordpress.org/support/users/jamescollins/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/multiple-class-names-get-mangled/#post-8361556)
 * Status: resolved