Title: Adding ADDITIONAL CSS CLASS(ES) breaks the code
Last modified: April 8, 2024

---

# Adding ADDITIONAL CSS CLASS(ES) breaks the code

 *  Resolved [pcskull](https://wordpress.org/support/users/pcskull/)
 * (@pcskull)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/adding-additional-css-classes-breaks-the-code/)
 * When I Add “ADDITIONAL CSS CLASS(ES)” in “Advanced” setting, code breaks. It 
   shows “<div class= …….” in the code block.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-additional-css-classes-breaks-the-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Vicky Agravat](https://wordpress.org/support/users/vickyagravat/)
 * (@vickyagravat)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/adding-additional-css-classes-breaks-the-code/#post-17561222)
 * Now, you have no need to add `norun` class. Because, code block can not execute
   any more.
   And to verify code block, we have to check exact class of the code 
   block, if you add some extra class, code block may miss behave…
 * 
   But, if you can do changes on code yourself, just go to [https://plugins.trac.wordpress.org/browser/wp-codemirror-block/tags/2.0.2/includes/class-codemirror-blocks.php?marks=345#L333](https://plugins.trac.wordpress.org/browser/wp-codemirror-block/tags/2.0.2/includes/class-codemirror-blocks.php?marks=345#L333)
   and replace it with your extra class name or you can do regexp also…Update code
   in your plugin directory.Thank you.
 *  Plugin Author [Vicky Agravat](https://wordpress.org/support/users/vickyagravat/)
 * (@vickyagravat)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/adding-additional-css-classes-breaks-the-code/#post-17561574)
 * I have update 2.0.3 version. Just update the plugin.
 * It will fix your problem…
 *  Thread Starter [pcskull](https://wordpress.org/support/users/pcskull/)
 * (@pcskull)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/adding-additional-css-classes-breaks-the-code/#post-17573934)
 * Thanks. It solves the problem. I appreciate your quick response.
    -  This reply was modified 2 years, 1 month ago by [pcskull](https://wordpress.org/support/users/pcskull/).
 *  Plugin Author [Vicky Agravat](https://wordpress.org/support/users/vickyagravat/)
 * (@vickyagravat)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/adding-additional-css-classes-breaks-the-code/#post-17574315)
 * 👍🏻

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

The topic ‘Adding ADDITIONAL CSS CLASS(ES) breaks the code’ is closed to new replies.

 * ![](https://ps.w.org/wp-codemirror-block/assets/icon-256x256.png?rev=2001365)
 * [CodeMirror Blocks](https://wordpress.org/plugins/wp-codemirror-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-codemirror-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-codemirror-block/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-codemirror-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-codemirror-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-codemirror-block/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Vicky Agravat](https://wordpress.org/support/users/vickyagravat/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/adding-additional-css-classes-breaks-the-code/#post-17574315)
 * Status: resolved