How to add Bootstrap Web Fonts to Sites without CDN? | Community
Skip to main content
sesmic
Level 4
April 4, 2023

How to add Bootstrap Web Fonts to Sites without CDN?

  • April 4, 2023
  • 1 reply
  • 1720 views

Hi, I wanted to add Bootstrap Web Fonts to my site & use icons without using CDN. 

I did the following, Bootstrap is working fine but web fonts(kept fonts folder in & out of css folder) are not working in Sites. So, can you please tell me how to achieve this or what I missed? Thanks.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
Community Advisor
Community Advisor
April 4, 2023

A static resource can only be accessed via the proxy, if it resides below a resource below the client library folder.

As an example:

  • You have a clientlib in /apps/myproject/clientlibs/foo
  • You have a static image in /apps/myprojects/clientlibs/foo/resources/icon.png
Arun Patidar
sesmic
sesmicAuthor
Level 4
April 4, 2023

Thanks @arunpatidar for the reply!
Can you please elaborate your point. I'm keeping my bootstrap files under clientlib-site with proxy allowed as in image. Even though web fonts aren't working. But bootstrap works.

arunpatidar
Community Advisor
Community Advisor
April 5, 2023

you have to move fonts inside resources folder

e.g.

/apps/myprojects/clientlibs-site/resources/fonts/bootstrap-icons.woff

Arun Patidar