Expand my Community achievements bar.

My css is not visible in aem

Avatar

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