Location of bootstrap fonts

Location of bootstrap fonts

muiscatronmuiscatron Posts: 2Questions: 1Answers: 0

Hi, I am trying to change over to using the bootstrap styling instead of datatables styling, but I have encountered a problem.
My project already included bootstrap, and fonts were located in /lib/bootstrap/fonts (and /lib/bootstrap/dist/fonts).
Bootstrap (and also DataTables) were installed using bower.
So now I have these script and css references:

'''
<link rel="stylesheet" href="~/lib/datatables.net-bs/css/dataTables.bootstrap.css" asp-append-version="true"/>


'''

When I try to show the page with my datatable on it, I see 404 errors trying to access these resources:
http://localhost:4300/lib/fonts/glyphicons-halflings-regular.woff
http://localhost:4300/lib/fonts/glyphicons-halflings-regular.ttf

It seems that something is looking for these fonts in the wrong place.
They exist in /lib/bootstrap/fonts

There was no reference to bootstrap.css (instead there was a reference to a theme bootstrap bootstrap-cosmo,
I added a reference to bootstrap.css, but this did not make any difference.
The project also includes font awesome.
Any help appreciated.

Sorry, don't have a published version.

Debug code used - oqubiw

thanks

Conor

This question has an accepted answers - jump to answer

Answers

  • muiscatronmuiscatron Posts: 2Questions: 1Answers: 0

    Apologies, code formatting was incorrect.
    Should have been:

    <link rel="stylesheet" href="~/lib/datatables.net-bs/css/dataTables.bootstrap.css" asp-append-version="true"/>
    <script src="~/lib/datatables.net/js/jquery.dataTables.js" asp-append-version="true"></script>
    <script src="~/lib/datatables.net-bs/js/dataTables.bootstrap.js" asp-append-version="true"></script>
    
  • allanallan Posts: 63,876Questions: 1Answers: 10,529 Site admin
    Answer ✓

    The DataTables Bootstrap integration file doesn't attempt to load the halflings web-fonts. That much be coming from Bootstrap.

    You would probably need to have a look through the CSS files to see where the path is incorrect and should be fixed.

    Allan

This discussion has been closed.