AEM style classes not getting applied in preview and publish instances | Community
Skip to main content
September 3, 2020
Solved

AEM style classes not getting applied in preview and publish instances

  • September 3, 2020
  • 1 reply
  • 2349 views

Hi,

 

I created a couple of CSS classes, where the author can apply those via style systems in a text component. Upon selection of the Style class, the corresponding CSS changes are applied in the author instance. The issue is with respect to publish and preview mode where the appended markup in HTML is getting disappeared.

 

There is no problem with the clientlibs, it contains the corresponding changes in the publish instance. Only the added markup class name is getting disappeared in publish mode.

 

My Text resourceSuperType is: core/wcm/components/text/v2/text

Any help on this would be appreciated.

 

Thanks,

Sudarshan

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

This could be issue with -

1. Policies are not deployed in publish.

2. The applied style's id does not match as the style id in the policy

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 3, 2020

This could be issue with -

1. Policies are not deployed in publish.

2. The applied style's id does not match as the style id in the policy

Arun Patidar