Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #655390

    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.

    • This topic was modified 7 years, 9 months ago by jonnyckk.
    #655612

    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

    #655616

    Here’s a temporary login.

    #655629

    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?

    #655996

    Hi,

    Great, glad you got it working. I don’t see a problem with your code as long as you are using a child theme. You might want to move the CSS to Quick CSS in the theme option.

    Best regards,
    Rikard

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