Chinese Social Icons

Posted in: Newspaper
Post count: 8

Social Icons are showing in Chinese or Asian characters

I have gone through all the suggestions previously posted in the forum

1) I have disabled all plugins (except visual composer)

2) I have modified the .htaccess file to include

<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin “*”
</IfModule>

3) I have regenerated the font through https://icomoon.io/app

4) I have cleared the cache

….none of those have worked!

Please help!

http://www.ldsresources.net/activities-of-jesus-christs-last-week/

Post count: 22421

Hello,
The htaccess solution is the proper one but you need to copy the code over from stackexchange not the forum (our forum will convert the commas and they will not work in your htaccess properly)
Please copy the code from here:
http://webmasters.stackexchange.com/questions/71630/font-blocked-from-loading-by-cross-origin-resource-sharing-policy-no-access-co
Add the code like this topic suggests: https://forum.tagdiv.com/topic/strange-chinese-symbols-replaced-icons-and-arrows/
Thank you!

Post count: 8

I had already previously updated the htaccess from the link that you are referencing.

(I do not know what you mean by “convert the commas” as there are no commas in the code).

Additionally, how would I go about to reset/clear the CDN files?

Post count: 36

I’ve done same modifications like in the post above but the “chinese” strange characters won’t dissapear.
Could you help me?
My site is realitateaoltului.ro
I don’t use CDN.

Post count: 8

As an alternative, is there a way to change the code so that instead of referencing a “font” that they reference an actual image??? I don’t understand why this portion of the theme was made so much more complicated than it should be.

Post count: 36

Did you resolve your problem?

Post count: 8

No, the problem STILL persists. This problem is not just with the social sharing icons, but other icon elements as well….arrows, search, view, comment, stars, etc.

I also recently used the following suggestion for htaccess:

https://www.maxcdn.com/one/tutorial/how-to-use-cdn-with-webfonts/

Nope… still does not work. I really would like this fixed. It is extremely irritating.

Post count: 22421

Hello,
About the “commas” I meant quotes. These things: “” they always screw up php code if they are copied from this forum and they aren’t placed inside the code tag. Please try the solution again as this worked for all users that had this issue. (It’s not a theme related issue but a cdn issue when fonts are not loaded from the same source) Please try a few more implementations of the code as it depends on what you have in your cdn. Try a few variations. Try it like so: https://forum.tagdiv.com/topic/small-icons-problem/
(the code in the topic above is not placed in the code tag so do not copy and paste it in htaccess directly. Get the code from stackexchange and replicate the implementation)
Thank you!

Post count: 36

Hi!
yep, the quotes was the problem for me. Now it works!

Post count: 8

So is it my domain’s htaccess or the CDN htaccess that has to be changed? The code from stackexchange is stating that it is the CDN htaccess. I do not have access to the CDN.

Post count: 8

Also, you mention to “try a few variations” … to what variations are you referring?

Post count: 8

I have tried to implement ALL suggestions…it is STILL not working.

I do NOT have a CDN …please assist with this issue!

Post count: 8

Finally solved the issue….

As a security measure, I had in my wp-content directory an htaccess file to restrict access to certain file extensions. When I added in the file extensions for fonts (ttf|ttc|svg|otf|eot|woff|woff2), it solved the issue.

Post count: 22421

Glad you managed to solve it.
Have a nice day!

Post count: 7

Hey Pahoran! If you can give me the exact direction on how to fix it / in simple words. It would be greatly appreciated for all the users that don’t have a CDN.

The developers really need to be clearer on this, it should be easy, not hard.

Post count: 7

http://webmasters.stackexchange.com/questions/71630/font-blocked-from-loading-by-cross-origin-resource-sharing-policy-no-access-co

The solution to the problem is to put the line of code from this link on top of the htaccess file. Literally put it on top, not inside the other lines of code, but just on top.
Not the whole thing or else it will screw up your webpage. Just this part: Header add Access-Control-Allow-Origin “*”

Make sure you copy from StackExchange so it copy and pastes correctly, because the htacess file is one of the most delicate parts of operation.

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