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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

My css is not visible in aem

Level 3
Level 3

hi everyone,

I started created one website on aem i created one component and add content in body.html file  then i created clientlibs folder under apps/myproject and add css and js files in that folder and refrence this css files and js files in body.html file 

<sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" />

<sly data-sly-call="${clientlib.css @ categories='Carnival.components'}" />

<sly data-sly-call="${clientlib.js @ categories='Carnival.components'}" />

but on my page css and js is not working only contents are shown in scattered way

thanks in advance

10 Replies