[resolved] Genericons/entypo not displaying (5 posts)

  1. loudnotes
    Posted 1 year ago #

    I have Customizr running and everything is fine except that for some reason it's not recognizing any of the included fonts. My social icons and other icons just show up as empty boxes instead of images.

    It's not a browser issue because the fonts display accurately on other Customizr sites.

    Any idea what could cause this?

    Update: here is some error syntax from Firefox:

    downloadable font: invalid version tag (font-family: "genericons" style:normal weight:normal stretch:normal src index:1)
    source: https://MYURL/wp-content/themes/customizr/inc/css/fonts/fonts/genericons-regular-webfont.woff @ https://MYURL/wp-content/themes/customizr/inc/css/green.css?ver=3.0.13

    It also throws:
    downloadable font: rejected by sanitizer
    downloadable font: no supported format found

  2. Josiah
    Posted 1 year ago #

    Can you provide a url and I can take a look.

  3. loudnotes
    Posted 1 year ago #

    Nevermind, I figured it out!

    Using PHP for GAE, app.yaml needs to specify the extensions ttf, svg, etc. as static files, otherwise they won't be uploaded properly. I had to add |eot$|svg$|ttf$|woff$ in app.yaml as per below:

    - url: /wp-content/(.*\.(ico$|jpg$|png$|gif$|eot$|svg$|ttf$|woff$))
      static_files: wordpress/wp-content/\1
      upload: wordpress/wp-content/(.*\.(ico$|jpg$|png$|gif$|eot$|svg$|ttf$|woff$))
      application_readable: true
  4. Josiah
    Posted 1 year ago #

    Well done! If you are using custom fonts often and know some basic css (which it sounds like you do), I recommend checking out font squirrel as they have a web generator that will generate everything you need, css and all. Not quite as intense as PHP.

  5. loudnotes
    Posted 1 year ago #


Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic