Post by bzark » Wed Oct 11, 2017 1:06 am

In the file admin/view/stylesheet/bootstrap.css you have this selector:

Code: Select all

@at-root {
  @font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/bootstrap/glyphicons-halflings-regular.eot');
    src: url('../fonts/bootstrap/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/bootstrap/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/bootstrap/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/bootstrap/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/bootstrap/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } }
But the path for the fonts is incorrect. Shouldn't it be ../javascript/bootstrap/fonts/?

New member

Posts

Joined
Wed Oct 01, 2014 10:32 pm

Post by IP_CAM » Wed Oct 11, 2017 4:39 am

Well, it takes the URL, based on it's own 'Position':
/view/stylesheet/bootstrap.css[/b]
meaning, that
../fonts/bootstrap/...
would then be linked like:
/view/fonts/bootstrap/...

But such Files with Glyphicons Stuff can be found anywhere, depending
on Extensions installed, even FontAwesome Subs are usually placed in
multiple Sections, for some unknown reason. :laugh:

I have the same Glyphicon-Linking in my Merkent Bootstrap Theme Stylesheet:

Code: Select all

shop/catalog/view/theme/default/stylesheet/stylesheet.css
like:

Code: Select all

@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot)
and it links exactly the same way:

Code: Select all

shop/catalog/view/theme/default/fonts/glyphicons-halflings-regular.eot
So, if it works, let it do the Job, because, as I found out, not all files, named
equal, contain equal content, Dev's sometimes do strange things ... or remove,
or even edit, what's not really required in/for their own Extension!
Good Luck! ;)
Ernie
Last edited by IP_CAM on Wed Oct 11, 2017 4:45 am, edited 1 time in total.

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by bzark » Wed Oct 11, 2017 4:43 am

IP_CAM wrote:
Wed Oct 11, 2017 4:39 am
Well, it takes the URL, based on it's own 'Position':
/view/stylesheet/bootstrap.css[/b]
meaning, that
../fonts/bootstrap/...
would then be linked like:
/view/fonts/bootstrap/...

But such Files with Glyphicons Stuff can be found anywhere, depending
on Extensions installed, even FontAwesome Subs are usually placed in
multiple Sections, for some unknown reason. :laugh:

I have the same Glyphicon-Linking in my Merkent Bootstrap Theme

Code: Select all

shop/catalog/view/theme/default/stylesheet/stylesheet.css
like:

Code: Select all

@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot)
and it links exactly the same way:

Code: Select all

shop/catalog/view/theme/default/fonts/glyphicons-halflings-regular.eot
So, if it works, let it do the Job, because, as I found out, not all files, named
equal, contain equal content, Dev's sometimes do strange things ...
Good Luck! ;)
Ernie
This is on the admin side, not a custom catalog theme. This is the bootstrap file that is used for the admin interface. So I think it is a problem as nothing exists at the directories it is pointing to. I see this on version 2.3.0.2 and 3.0.2.0. Seems like a bug.

New member

Posts

Joined
Wed Oct 01, 2014 10:32 pm

Post by IP_CAM » Wed Oct 11, 2017 6:33 am

Well, admin or not, it's still the same setup.
But if you have no such Directory, just download the ZIP enclosed,
and uploaded it, then, you'll have one to test! :D
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by bzark » Wed Oct 11, 2017 6:40 am

IP_CAM wrote:
Wed Oct 11, 2017 6:33 am
Well, admin or not, it's still the same setup.
But if you have no such Directory, just download the ZIP enclosed,
and uploaded it, then, you'll have one to test! :D
Ernie
Thanks, I know how to fix it, really all I am asking if this is a bug. I looked at a bunch of OC versions and they are all the same. In its current state I don't see how those fonts could ever be downloaded given they point to a location that doesn't exist.

New member

Posts

Joined
Wed Oct 01, 2014 10:32 pm

Post by IP_CAM » Wed Oct 11, 2017 9:59 am

Well, I played around with OC 2's for a while, and I was not even aware of the
Fact, that Glyphicons where Part of those Versions too, since FontAwesome
Pic's are used by OC Default. So, Most users would not even know, if it works or
not, I assume, if such an error-link like this really exists.
Good Luck anyway! ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 39 guests