Highlighted

Change the default div tag of a component

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

08-12-2017

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

Replies

Highlighted

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

08-12-2017

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

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

(val/1000)?string[".0"]}K

Likes

(val/1000)?string[".0"]}K

Correct Answer

(val/1000)?string[".0"]}K

Avatar

smacdonald2008

Total Posts

(val/1000)?string[".0"]}K

Likes

(val/1000)?string[".0"]}K

Correct Answer

(val/1000)?string[".0"]}K
smacdonald2008

10-12-2017

Thank you for posting this content!