Support » Plugin: Social Icons Widget by WPZOOM » Icons appear as strange characters? Try this fix!

  • Plugin Author WPZOOM

    (@wpzoom)



    Here you can find a snippet with rules that you can add to .htaccess file on your server to fix possible issues with the icons, especially in Firefox.

    # ----------------------------------------------------------------------
    # Webfont access
    # ----------------------------------------------------------------------
    
    # allow access from all domains for webfonts
    # alternatively you could only whitelist
    #   your subdomains like "sub.domain.com"
    
    <FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
      <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
      </IfModule>
    </FilesMatch>
    
    # webfont mime types
    AddType application/vnd.ms-fontobject  eot
    AddType font/truetype                  ttf
    AddType font/opentype                  otf
    AddType application/x-font-woff              woff
    
    # webfonts and svg:
    <IfModule mod_deflate.c>
      <FilesMatch "\.(ttf|otf|eot|svg)$" >
        SetOutputFilter DEFLATE
      </FilesMatch>
    </IfModule>

    Source: https://gist.github.com/WheresAlice/843983

    • This topic was modified 2 years ago by  WPZOOM.
  • The topic ‘Icons appear as strange characters? Try this fix!’ is closed to new replies.