Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Custom Webfont doesnt work in Chrome and Firefox

Custom Webfont doesnt work in Chrome and Firefox

Scheduled Pinned Locked Moved Bug Reports
5 Posts 3 Posters 90 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    weodeo
    wrote on last edited by
    #1

    Hey Guys,
    my local embedded google font "abel" doesnt work on desktop in the browser chrome and firefox. Instead there is an placeholder font. Why?
    And if this cant be solved, is there a way to change the placeholder font to "Arial" or an non serif font?
    Strangely enough the font works correctly in Safari and on iphones.

    The site ist: gebrüder-wessa.de

    Thanks a lot!

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear @weodeo

      In your CSS its correct that you have 'abel' as your font:
      Screen Shot 2021-03-12 at 9.17.48 PM.png

      However in your Console i can see that its being blocked:
      Screen Shot 2021-03-12 at 9.16.26 PM.png

      https://www.google.com/search?q=CORS+policy%3A+No+'Access-Control-Allow-Origin'+header+is+present+on+the+requested+resource.&oq=CORS+policy%3A+No+'Access-Control-Allow-Origin'+header+is+present+on+the+requested+resource.&aqs=chrome..69i57.1249j0j4&sourceid=chrome&ie=UTF-8

      Talk soon
      Richard

      1 Reply Last reply
      0
      • W Offline
        W Offline
        weodeo
        wrote on last edited by
        #3

        Dear @Richard
        thanks for your response!

        Thats interesting.. So .. is there a way to fix it?
        Ive never heard about CORS policy, google says that you need an browser addon, but thats not very practical :(

        Any tips?

        Best
        Denns

        1 Reply Last reply
        0
        • F Offline
          F Offline
          felix_rabe
          wrote on last edited by felix_rabe
          #4

          @weodeo if you have a ttf or otf file of the font, convert it to woff with an online font converter. delete the font-file you are using and replace it with the new file and see if it works.

          1 Reply Last reply
          0
          • RichardR Offline
            RichardR Offline
            Richard
            Global Moderator
            wrote on last edited by
            #5

            Dear @fr

            Thats a great idea, of course! - Thank you : )

            Best
            Richard

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            I also code custom websites or custom Lay features.
            💿 Email me here: 💿
            info@laytheme.com

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

            This often solves issues you might run into

            When you post:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            Online Users
            D
            Double
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search