quantument Posted September 18, 2015 Share Posted September 18, 2015 I've been pulling my hair out for 2 hours now and need some help before I go bald.I have been able to get the Google Font 'Open Sans' working with a local version of my cubecart site (i.e. copying and pasting the html into a file and viewing it on my PC rather than live), but I cannot see that font on the live site.I have added<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,300italic,400italic,600italic,700,700italic,800,800italic" rel="stylesheet" type="text/css" />to the main template on my skin.I've also change all font references in the common.css file tofont-family: 'Open Sans', sans-serif, Arial, Helvetica;Why will it work as a 'non-live file', but not when it's on the website?Note: I've changed the ' to " and added the /> at the end of the line rather than > as provided by Google to see if that would work, but neither the code from Google or my changes have made any difference.).Grrrr Quote Link to comment Share on other sites More sharing options...
quantument Posted September 18, 2015 Author Share Posted September 18, 2015 (edited) I finally sorted it!I needed to change the http to https in the CSS link. Edited September 18, 2015 by quantument Quote Link to comment Share on other sites More sharing options...
fldavidallsop Posted September 19, 2015 Share Posted September 19, 2015 It's great that you got this working I usually use the @import code from Google and place that directly in my stylesheet to keep everything style related in one place. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.