help, the icon are not loaded correctly

Posted in: Newspaper
Post count: 40

here is the screenshot

it seems that all icons are not loaded correctly. And Query Monitor detected that there are 5 css missing.

contact-form-7
font-awesome-four
rs-plugin-settings
google_font_open_sans
google_font_roboto

I intalled them directly through wordpress plugin page.
Any ideas, guys?

Post count: 22421

Hello Jerry,

This usually happens when loading the font file (which contains those icons) from another host/url
The solution would be to load them from the same url as the site or try this solution – http://webmasters.stackexchange.com/questions/71630/font-blocked-from-loading-by-cross-origin-resource-sharing-policy-no-access-co

Let me know how it goes!

Thanks.

  • This reply was modified 10 years by Bogdan B..
Post count: 40

Hi Bogdan,

Thanks for the solution, I have tried to add the following config to the root location as I am using nginx
location / {
add_header 'Access-Control-Allow-Origin' *;
}

those icons are still not showing.

Post count: 40

aha, I have found the issue, the newspage.woff and eof both were rejected by nginx due to security configuration. I have blocked access directly to wp-content. After I removed the single line, those icons are back online. chew~~

Thanks again. your theme is fabulous.

Post count: 22421

Glad you figured it out!
Have a nice day!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.