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

    My point of going the CORS .htaccess way ( that you have to talk with your IT as it seems ) is that you are still having 2 active domains, not 1 ( @bemdesign that’s what I thought at the start but unfortunately both are still active ).

    So even if you change all the urls from vanillastarjeans to vstarjeans you will be having the same issue but the other way around. So basically 4 ways of fixing this to include everything from easiest to hardest:

    1] Setup font-awesome from it’s CDN instead of loading it locally from your site.

    2] Discard one of the 2 domains ( by doing a 301 perm redirect to the one you want to use, for example vanillastarjeans redirects to vstarjeans – as for SEO purposes it should have been like that in my opinion ) – that’s up to the company and marketeers and everybody else, but it is a viable option.

    3] Get your IT to properly set up CORS if he understands what it is and the implications involved.

    4] Get your IT to set up a variable domain by getting the URL through PHP with example: $_SERVER['HTTP_HOST'] and make it as a var for loading your extra dependencies.

    Being a graphic designer and since there is an IT as you said in the company you work for, inform him to make all the changes needed. Points 2 – 4 are not for someone that doesn’t know his way around server files – settings & WordPress specific set ups. I’m trying to save you the trouble of breaking something, not trying to discourage you.

    If you still want to continue on your own.

    1] That is usually located in your themes files ( wp-content\themename\ ) functions.php or in header.php ( depends on the theme you are using though ).

    2] Is a server-side setup that depends on what admin panel you have Cpanel/Plesk.

    3] CORS change ( .htaccess ) is located on the same folder that your WordPress is installed.

    4] You have to know at least basic PHP to do this and it would still depend on how the dependency files are loaded.

    Since you’re in this position I have to strongly and repeatedly inform you of ‘backups, backups & backups’ before you try anything on your own

    Reply To: Font Awesome Characters Only Show Sometimes

Share This Page

Monarch Social Sharing Plugin