: How do I use bootstrap's Darkly theme without external references? I have used the bootstrap Darkly theme found here in the past, and it has worked great. This time, I'm developing a website
I have used the bootstrap Darkly theme found here in the past, and it has worked great. This time, I'm developing a website that will be displayed to users when they connect to a wireless network. Users connecting to this network will NOT have internet. This is giving me problems.
Darkly's bootstrap.min.css file has embedded references to fonts, and possibly other resources that are online. Browsers are expected to connect to external websites to get those.
Ex:
$ cat bootstrap.min.css | grep -o 'http[^ ]*|https[^ ]*'
fonts.googleapis.com/css?family=Lato:400,700,400italic );/*! bootswatch.com http://getbootstrap.com) github.com/twbs/bootstrap/blob/master/LICENSE) https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
Is there any way to have these resources locally hosted on the same webserver that will be running my website? It doesn't appear that Darkly has a download with non-embedded resource URLs like vanilla bootstrap does.
The fonts URL seems to be the main one, but the resource it points to seems to be different depending on what browser or device you use to access it, so I'm not sure what to do about that.
Update: It appears the theme is hosted here on github, and has a fonts folder, but how would I use it?
More posts by @Hamm4606531
1 Comments
Sorted by latest first Latest Oldest Best
You are going to need to grab each external resource and save it to a local file. That may or may not be possible with all of them.
It certainly is for the CSS files, licenses etc but if it is pulling in something from bootswatch.com generally and not loading a file I am not sure what is happening.
Once you have save the files locally, depending on your programming language, you include that file in your script. PHP looks like include("/path/to/file.css");
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.