-
AuthorPosts
-
October 9, 2015 at 10:20 pm #516689
I have had my website at www.***.at and now I have installed also www.***.com.
Now I have problems with icon font not loading with the new domain.
I am 99.9% sure the solution is described here: https://kriesi.at/support/topic/icons-in-icon-box-are-chinese-characters/
However, how do I get rid of all the absolute URLs in the code?
Like here you can see even though I am on the www.***.com domain the fonts load from the at domain:
url(‘http://www.***.at/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.woff?v=3’) format(‘woff’),
url(‘http://www.***.at/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.ttf?v=3’) format(‘truetype’),
Also almost all JavaScripts load from the .at domain evidently using absolute URLs even when I call the .com domain. Same is true for the various <link> tags in the html head. All have absolute URLs pointing to .at
I believe absolute URLs are bad practice particularly on a website with more than one domain name, aren’t they? How to get rid of them?October 10, 2015 at 3:47 pm #516834Hi humanbrand!
Please try this out, http://kriesi.at/documentation/enfold/enable-cors/.
Cheers!
ElliottJanuary 17, 2018 at 2:55 pm #898484The same problem.
I made my site on the test domain, and after the transfer to another domain all the entypo-fontello icons have been uncorrectly((
Problems solved by adding this code in .htaccess:<FilesMatch "\.(ttf|otf|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch>
This is not normal by default.
But with Enfold it is?
So, it is Enfold bug or what…?- This reply was modified 6 years, 11 months ago by AliAbabwa.
January 17, 2018 at 3:20 pm #898492Hi!
@aliababwa No, this is not a bug. Since initially you installed the theme on another domain and then moved it, icon fonts are not using correct links. That is expected and you can read more about it here – https://en.wikipedia.org/wiki/Cross-origin_resource_sharingI am closing this thread for now. If you have any other questions or issues, please feel free to start a new thread under Enfold sub forum :)
Cheers!
Yigit -
AuthorPosts
- The topic ‘Icon Font not loading with new domain name’ is closed to new replies.