WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 5 months ago

#53154 new defect (bug)

Image in 'Media & Text' block not affected by 'Additional CSS class(es)'

Reported by: danieldau Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.7.1
Component: Editor Keywords: reporter-feedback
Focuses: Cc:

Description

After the update, styles added to the image's 'Additional CSS class(es)' on the 'Media & Text' block no longer work.

Change History (2)

#1 @desrosj
6 months ago

  • Component changed from General to Editor
  • Focuses ui removed
  • Keywords reporter-feedback added

Hi @danieldau,

Welcome to Trac!

Can you provide a little more detail? Here are some questions I have that could help narrow down the issue:

  • Which theme are you using?
  • If the theme is not a default theme, can you reproduce the issue using one of the Twenty themes? If so, which one?
  • Are the classes saving when you add them?
  • If they save, are they not being output in the class attribute on the front end? Back end? Both?
  • Are the classes you add custom?
  • Did they work before?

#2 @danieldau
5 months ago

Which theme are you using?
Twenty Twenty-One

Are the classes saving when you add them?
Yes

If they save, are they not being output in the class attribute on the front end? Back end? Both?
They are not being output on the front end.

Are the classes you add custom?
No, it is the 'is-style-rounded' image class

Did they work before?
Yes.

This CSS class doesn't show up when using the "Media & Text" Gutenberg block.

Note: See TracTickets for help on using tickets.