Title: Add CSS class?
Last modified: September 1, 2016

---

# Add CSS class?

 *  [leviticus](https://wordpress.org/support/users/leviticus/)
 * (@leviticus)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/add-css-class-1/)
 * Is it possible to add a CSS class to the short code? Ex: `[email class="button"]`
   I would like to be able to add a button class to a few of the email links, rather
   than styling all of the `a[href^="mailto:"]` links.
 * I can work around it by adding a `<div class="button"></div>` around the shortcode
   but I’d prefer adding a class to the link itself, if possible.
 * [https://wordpress.org/plugins/graceful-email-obfuscation/](https://wordpress.org/plugins/graceful-email-obfuscation/)

The topic ‘Add CSS class?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/graceful-email-obfuscation.svg)
 * [Graceful Email Obfuscation](https://wordpress.org/plugins/graceful-email-obfuscation/)
 * [Support Threads](https://wordpress.org/support/plugin/graceful-email-obfuscation/)
 * [Active Topics](https://wordpress.org/support/plugin/graceful-email-obfuscation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/graceful-email-obfuscation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/graceful-email-obfuscation/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [leviticus](https://wordpress.org/support/users/leviticus/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/add-css-class-1/)
 * Status: not resolved