We’re having an issue with a font not rendering on our site.
They use Font Awesome to display the icons I believe.
However, as we cannot upload custom CSS / JS files to Webflow, we have the source files located elsewhere (on another AWS S3 bucket).
When you access the site (e.g. from Chrome) the icons come up like so (and you can see the console error): http://b3.ms/4pzMbbw5M0Gx
However, they should come up like this (using Safari the issue does not occur): http://b3.ms/KkdA3vNy93Jq
I noticed someone else had the issue, but looks resolved… http://forum.webflow.com/t/resolved-font-awesome-not-working-due-to-cross-origin-policy/8539
We could fix this by adding a line of code into the .htaccess file, but we can’t edit it on Webflow: Cross-Domain Fonts
The site / page can be viewed here: http://www.collectivecamp.us/blog/the-problem-with-corporate-innovation-programs
So I am wondering what the best solution here is… thanks!
Hey @johnnymitch I’m just checking real quick, so you have you AWS S3 bucket set to public? By default they’re set to private but once they’re set to public (right click/option click and make it public) then they should work. Keeping my fingers crossed, please let me know if I can further help
Heya @Waldo thanks for the quick reply!
The files are set to public I will admit, when I first stared using AWS, it took an all nighter to figure out how to make a damn file public haha!
Here are the file URLs on AWS:
ACTUALLY, I COULD just upload the fonts to Webflow, then add the CSS and JS from these files directly into Webflow via custom-code.
Think that would work?
Hey @johnnymitch you most definitely can add the custom font to your site via site settings and custom code to your site, CSS in the head and scripts in the footer and there’s a great walk thru on how to do that here:
I use AWS S3 servers for anything I need to host externally on certain builds
Nice one, AWS S3 is excellent @Waldo!
So I did the above and I now get these errors:
Hi @johnnymitch, I took a quick look and it seems for me, there are two different errors on the page.
From what I can tell, there is a couple of font files that are not found, which are being used in some custom html tags in the social icons
The social share kit css is looking for the fonts under the fonts folder, which does not exist for a site hosted in Webflow. Here are the font face declarations for the Social Share Kit font uploaded to Webflow:
font-family: ‘Social share kit’;
src: url(‘https://daks2k3a4ib2z.cloudfront.net/56413b181484d4be2a5bd76b/568f569860473ef56670f9e7_social-share-kit.eot’) format(‘embedded-opentype’), url(‘https://daks2k3a4ib2z.cloudfront.net/56413b181484d4be2a5bd76b/568f569957e6ebc02f82f892_social-share-kit.woff’) format(‘woff’), url(‘https://daks2k3a4ib2z.cloudfront.net/56413b181484d4be2a5bd76b/568f5699badea96c57c78f48_social-share-kit.ttf’) format(‘truetype’);
One thing to try, is to change the path of the css from the social-share-kit.css file, to have the correct path matching the urls loaded by webflow:
The other issue is that there is a script having a 403 forbidden error and that would still need to be looked at, to see what is causing the issue:
I hope that helps with the fonts, let me know and thanks in advance !
Heya @cyberdave ! Thanks for that! It has been tricky indeed!
Is there any way in future for me to get these URLs somehow?
I tried the code you send (refresh that page and you should see it in there), but unfortunately no change… I may have implemented it wrong through?
Let me know anyway… I’ll see what that script issue is!
IF it turns out this won’t be easy to implement… do you recommend another social sharing kit we can use, that will work well with Webflow (it’s just we use this kit on 3x sites now, all broken we just realised)
Upload your custom fonts to the site, and publish. Open the published site css file and scroll to the bottom of the page. You will see the “social share kit” font defined similar to below (the links to fonts will be different on your site):
font-family: ‘social share kit’;
src: url(‘https://daks2k3a4ib2z.cloudfront.net/568f91ce60473ef566712ae1/568f9531b2df7bc62f563427_social-share-kit.eot’) format(‘embedded-opentype’), url(‘https://daks2k3a4ib2z.cloudfront.net/568f91ce60473ef566712ae1/568f9531b2df7bc62f563428_social-share-kit.woff’) format(‘woff’), url(‘https://daks2k3a4ib2z.cloudfront.net/568f91ce60473ef566712ae1/568f953111c7337557e7f5ec_social-share-kit.ttf’) format(‘truetype’), url(‘https://daks2k3a4ib2z.cloudfront.net/568f91ce60473ef566712ae1/568f953160473ef566712c98_social-share-kit.svg’) format(‘svg’);
Next, replace the font face declaration in the social-share-kit.css file, with the font face declaration above.
An important step, you will want to change the name of the font face generated by Webflow “social share kit” to “social-share-kit”.
Save the css file and and either link to it, or paste all the css to the head of your site.
Republish your site and see how things look. Also, I have created an example integration you can clone:
I hope this helps
@johnnymitch, glad to hear it helped. Get ready for a great 2016
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.