Support » Fixing WordPress » Fontawesome icons are not getting showed up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    You have a CORS issue. Change your references to fontawesome to remove the www. or modify your CORS policy to allow the “raw” domain to source from the “www” domain. If you have not set a CORS policy via some plugin, please contact your host.

    This appears in the browser error console:

    Access to font at 'https://www.dhoparra.com/wp-content/themes/listingpro/assets/lib/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0' from origin 'https://dhoparra.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    fontawesome-webfont.woff2:1 Failed to load resource: net::ERR_FAILED
    ?select=for+hungry+tummy+in+Eateries&lp_s_tag=368&lp_s_cat=29&s=home&post_type=listing:1 Access to font at 'https://www.dhoparra.com/wp-content/themes/listingpro/assets/lib/font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0' from origin 'https://dhoparra.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    fontawesome-webfont.woff:1 Failed to load resource: net::ERR_FAILED
    ?select=for+hungry+tummy+in+Eateries&lp_s_tag=368&lp_s_cat=29&s=home&post_type=listing:1 Access to font at 'https://www.dhoparra.com/wp-content/themes/listingpro/assets/lib/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0' from origin 'https://dhoparra.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    fontawesome-webfont.ttf:1 Failed to load resource: net::ERR_FAILED

    Sometime back font-awesome updated to a larger set of icon. There is a paid and free set of icons. The old version used fa <yourselection> for everything. The new version uses different classes than the old version. You have classes like fas,far, and fab. If you have changed or you have reinstalled the font awesome library the .fa class might not be valid any longer. You might want to check the version of font-awesome you are using.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.