Tagged: body, Fonts, google fonts, headings
We have imported Open Sans weights in Custom CSS using:
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700,800);
We’ve used Advanced Styling to set the font weights for certain headings to Light (300) and used this custom CSS to set the p weights:
p {
font-weight: 300!important;
}
This works when logged in, Opens Sans appears at weight 300, but when logged out it appears as the Regular weight.
Why is this the case?
The correct weight doesn’t show on mobile either.
Hey jonnyckk,
Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.
Regards,
Rikard
Here’s a temporary login.
I got it to work by putting the following code into header.php
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<style>
body {
font-family: 'Open Sans', Arial, sans-serif !important;
font-weight: 300 !important;
}
</style>
Is there a better fix?