Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Change the default div tag of a component

Avatar

Community Advisor

Ever wondered how to change the default div tag of a component . I did wonder about that today when I was thrown with this question Missing the wrapper element that contains the "section" class  . It might be very small but was something which I never explored or implemented. I know there will me many a lot like me who might have never explored the use of cq:htmlTag node before . For them , this will be a good information to note down

2 Replies

Avatar

Community Advisor

oh !! and ya .. I did try to document this to my linkedin article so that I don't loose track of this information. If any one want to have a look please feel free to do so

Add a custom class to your component div (override the cq generated div with your class) | LinkedIn