Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

js and css not rendering

neelanshb1
Level 2
Level 2

For an AEM component when I override a core component, its css and js does not render.
Can someone suggest me the way to get css and js when overriding a core component.

 

Thanks

1 Accepted Solution
Bhuwan_B
Correct answer by
Community Advisor
Community Advisor
2 Replies
Bhuwan_B
Correct answer by
Community Advisor
Community Advisor
BrianKasingli
Community Advisor
Community Advisor

Hi Nelan,

When you are overlaying a component from the core component library, you will still need to "embed" the client libraries that are associated with each of the overlayed core components to get the CSS and JS working as expected. 

To overwrite the CSS and JS, the standard way is to a new client library for your new overlayed component. Make sure the new client library embeds the core component's client library category(categories).

I hope this helps,

Brian