Title: Adding CSS Class is not working
Last modified: June 7, 2019

---

# Adding CSS Class is not working

 *  [Beef Supreme](https://wordpress.org/support/users/polymathy/)
 * (@polymathy)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/adding-css-class-is-not-working/)
 * Hi,
 * when I try to add an additional CSS class in Gutenberg under “Advanced -> Additional
   CSS Class” the class is not being applied to the object. In fact, nothing changes.
   What could be the reason for this? Does anyone else have this problem?
 * Edit: This only seems to happen, when I try to add a class to an object that 
   is inside a “Cover” block type. For instance, when I have a headline inside a
   cover block type and then add a class to that headline, it will not work. Even
   adjusting the alignment doesn’t work.
 * The same things works just fine outside of the cover block type.
    -  This topic was modified 6 years, 12 months ago by [Beef Supreme](https://wordpress.org/support/users/polymathy/).

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

 *  [Jasper MMM](https://wordpress.org/support/users/studiotwee/)
 * (@studiotwee)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/adding-css-class-is-not-working/#post-11617508)
 * silly suggestion maybe, but can you add the class to the parent cover block and
   then css it like
 * `
    .yourclass > elm { [..] }
 *  Thread Starter [Beef Supreme](https://wordpress.org/support/users/polymathy/)
 * (@polymathy)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/adding-css-class-is-not-working/#post-11618253)
 * Yes, I could totally do that. I was just wondering why the text alignment doesn’t
   work. Maybe it is a bug? Or maybe it’s an issue with my theme (X-Theme)?

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

The topic ‘Adding CSS Class is not working’ is closed to new replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Beef Supreme](https://wordpress.org/support/users/polymathy/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/adding-css-class-is-not-working/#post-11618253)
 * Status: not resolved