Tagged: 

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #845141

    Hi there,

    I have been reading through topic after topic on changing the font weight of the website but I am just not getting something right. I want the text weight to be Raleway ExtraLight and the headers to be Raleway Light. I’ve pasted the following code into my themes function.php file but nothing.n

    add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Raleway'] = 'Raleway:300,400,500,600,700';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font', 'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    
    $fonts['Raleway'] = 'Raleway:300,400,500,600,700';
    return $fonts;
    }
    
    #845859

    Hey kellyCraftMedia,

    And how are you applying this font to the elements? It should be something like this:

    
    .av-special-heading-tag, #top #wrap_all .all_colors h2 {
      font-weight: 300 !important;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #845943

    Hi Victoria! Thanks for that info – it worked on the headings but not the body text.

    Thanks!

    #846013

    Hi,

    If you need it to work for the body text just change the “h2” in the css to “p”. If this doesn’t work, let me know the exact section you are trying to target.

    Best regards,
    Jordan Shannon

    #846629

    Unfortunately that didn’t work.

    There is no specific section I’m trying to target, just literally all the Body Text. Since the Fonts tab under General Styling doesn’t give you a Raleway option as the body text, I’m trying to change it using custom coding.

    #846920

    Hi,

    If it is the entire body text then the following should work:

    body {
      font-weight: 300 !important;
    }

    Best regards,
    Jordan Shannon

    #846976

    I added that to my Quick CSS but it did nothing and the font is still in Lato not Raleway.

    #846980

    Hi,
    Would you be able to provide admin info to the private area so we can log in and look into this issue further?

    Best regards,
    Jordan Shannon

    #846982

    See below:

    #847069

    Hi,

    I have checked your site and the Raleway is working normally.

    Best regards,
    John Torvik

    #848440

    I’m not getting the Thin version of the font, I’m not sure how to do that. I tried the CSS code provided in #846920 reply but it doesn’t do anything.

    Thanks!

    #848463

    Hi,

    I’m trying to log in to the site and received a DB connection error. Can you please check this.

    Best regards,
    Jordan Shannon

    #848819

    Must have been a glitch, everything is working fine!

    #849075

    Hi kellyCraftMedia,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .avia_textblock p {
      font-family: 'Raleway', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #854582

    It took me a while to get around to applying this but I finally got around to it. The code worked but the weight is heavier, even though I’ve added the body weight code from earlier.

    #855055

    Hi kellyCraftMedia,

    Have you tried like this?

    
    .avia_textblock p {
      font-family: 'Raleway', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-weight: 300 !important;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #855130

    Hi Victoria! I did try that but the weight stays the same – If I increase it up to, for example, 700 the weight does change. So I suspect now it’s not exactly the code but the available font weights?

    I’m looking for Raleway ExtraLight and Light as you can see in the font options here: https://www.fontsquirrel.com/fonts/raleway

    Thanks!

    #855309

    Hi kellyCraftMedia,

    The 100 font-weight will make your text very hard to read on that page, when I changed to 700, the change was there, but was very hard to spot. What you have on the page looks very much like the Raleway Light.

    Best regards,
    Victoria

    #855597

    If it were my choice, I’d leave it as is, but the client really wants a lighter version of the font. Comparing the site to the link I sent you previously, it does not look like Raleway ExtraLight font that I’m going for.

    Just to be clear – are you saying we can’t go any lighter no matter what we do?

    #855905

    Hi,
    Perhaps trying Use Any Font plugin will allow you to get the weight you are looking for and help pinpoint the underlying issue.

    Best regards,
    Mike

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