Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Font Awesome Characters Only Show Sometimes

Discussion in 'Misc WordPress Requests' started by Xenos (xkon) Konstantinos, Mar 5, 2018.

  1. Xenos (xkon) Konstantinos


    Reply To: Font Awesome Characters Only Show Sometimes, by Xenos (xkon) Konstantinos

    First of all let me clarify that this is ‘as it should be’. Why? Because you mentioned vstarjeans.com but everything loads from vanillastarjeans.com . This is what we call CORS ( cross-origing source sharing ) and generally it is not ‘allowed’ except if you specifically specify it.

    Now I’m not sure why you are using 2 domains for the same website instead of a 301 redirect that usually is the way to go.. that’s out of the questions scope but, the problem here is that you are trying to view the page vstarjeans that tries to load fonts from vanillastarjeans and that is not accepted, if you actually load vanillastarjeans.com everything would show up as supposed to though as it is loading for the same origin ( url basically ).

    One way to overcome this for your font files would be to add this into your .htaccess file

    <IfModule mod_headers.c>
    <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
    Header set Access-Control-Allow-Origin "*"

    Make sure to keep backups though if you’re not sure of what you are doing.

    Reply To: Font Awesome Characters Only Show Sometimes

Share This Page

Monarch Social Sharing Plugin