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

SOLVED

Fonts not loading in Network tab showing 404 AEM 6.5

keshav_goud
Level 3
Level 3

Fonts not loading in Network tab showing 404

 

keshav_goud_2-1634980960566.png

 

 

is there any other way to call fonts. Because on "etc.clientlibs" im not able to see fonts there its not creating folder there 

 

 

keshav_goud_1-1634980053070.png

 

But in CRXDE console i can see the fonts there

 

keshav_goud_1-1634980887871.png

 

 

 

 

1 Accepted Solution
Asutosh_Jena_
Correct answer by
Community Advisor
Community Advisor

Hi @keshav_goud 

 

Please ensure the fonts are loaded in the correct folder, i.e., under resources/fonts folder in crx/de and the relative path is used properly in CSS/LESS.

 

Please see the screenshot below from code base.

 

asutosh_jena_0-1634995537059.png

 

here is how it should be referenced. Ensure the relative path is correct. Folder names can be anything.

 

asutosh_jena_1-1634995661162.png

 

Now the fonts will be loaded with the below URL;

 

https://www.website.com/etc.clientlibs/websitename/clientlibs/clientlib-site/resources/fonts/FontAwesome.woff2

 

Hope this helps!

 

Thanks! 

View solution in original post

2 Replies
Asutosh_Jena_
Correct answer by
Community Advisor
Community Advisor

Hi @keshav_goud 

 

Please ensure the fonts are loaded in the correct folder, i.e., under resources/fonts folder in crx/de and the relative path is used properly in CSS/LESS.

 

Please see the screenshot below from code base.

 

asutosh_jena_0-1634995537059.png

 

here is how it should be referenced. Ensure the relative path is correct. Folder names can be anything.

 

asutosh_jena_1-1634995661162.png

 

Now the fonts will be loaded with the below URL;

 

https://www.website.com/etc.clientlibs/websitename/clientlibs/clientlib-site/resources/fonts/FontAwesome.woff2

 

Hope this helps!

 

Thanks! 

View solution in original post

bangar50
Level 7
Level 7

Hi @keshav_goud ,

       Did you checked CSS file where  you have included the font path.

Please make sure that this clientlibs getting executed.

Try to debug js as well may be the client libs having issues.

 

Regards,

Sanjay