0

I want to use an inline style from the WordPress editor in my AMP view. At the moment, AMP deletes all inline styles.

Is there a way to protect a single class and use it in AMP or is it against the concept of AMP?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Cray
  • 5,307
  • 11
  • 70
  • 166

1 Answers1

0

I found the answer!
You could use the class .amp-custom to keep inline-styles in AMP.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Cray
  • 5,307
  • 11
  • 70
  • 166