0

As the title states, I have ionicons and pe font's in assets -> fonts folder.

In my application.rb file

config.assets.paths << Rails.root.join('/app/assets/fonts')

All icons work on desktop, that's pe and ionicons that are in my fonts folder as well as fonts from the gem 'font-awesome-rails'

Website seen through Google Chrome on my desktop

However, on mobile ALL fonts are seen as a blank box which suggest to me a 404 error but I don't understand what difference it would make whether its loaded from desktop or mobile.

Website seen through Google Chrome on my iphone

NemyaNation
  • 983
  • 1
  • 12
  • 22

1 Answers1

1

You used wrong way of importing font awesome in your CSS file. It tries to load them from localhost:3000:

localhost_3000

Because of that, the icons are visible on your computer (where the rails server is running) and they are not visible on your mobile phone.

MrShemek
  • 2,413
  • 1
  • 16
  • 20