Tagged: ,

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #297402

    Hi,

    I would like to be able to use all variations of the Google font, Roboto, on my site. Can you help me?

    Thanks,
    Gabe

    #297481

    Hey connect4consulting!

    Thank you for visiting the support forum.

    Roboto font is already available on Enfold > General Styling > Heading font. If you want to use it as Body font, add this on functions.php:

    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Roboto'] = 'Roboto';
    return $fonts;
    }

    Select the Roboto font on Enfold > General Styling > Defines the Font for your body text.

    Cheers!
    Ismael

    #396435

    Hi Ismael,

    I have the same issue as connect4consulting…

    I tried to add the code above but it doesn’t seem to work. Any other suggestion? I’d like to use Roboto as both my heading and body fonts.

    Many thanks :)

    #396689

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    body {
    font-family: 'Roboto', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    then go to Enfold theme options > General Styling > Fonts and choose to display Roboto for headings

    Regards,
    Yigit

    #397055

    I already have Roboto for Headings. I’d like to have it for Body.

    I just tried your Quick CSS. But no news from this dear Roboto anywhere else than in the Headings menu… and nothing changed on my website.

    #397059

    Hi,

    Can you post the link to your website please? an admin account may be needed to (you can post it here as a private reply).

    Regards,
    Josue

    #397065
    This reply has been marked as private.
    #397206

    Hi!

    Check it now, you can now select Roboto on both dropdowns (it is named Roboto Now but it’s the same).

    Best regards,
    Josue

    #397376

    Awesome! Thanks Josue. How did you do it?

    Now it would be perfect if I could easily customize these parameters…
    font-size; font-style; font-weight; height; letter-spacing; line-height;

    #397610

    Hey!

    You can use the Advanced Style Editor for that:

    Cheers!
    Josue

    #397646

    Hmm… I already checked in this section but I can only see options to customize font color, background color, font size, line height, font family.
    1/ Where can I change the font style (bold, italic, etc.), the font weight (thin, medium, regular, etc.), the font height, the letter spacing?
    2/ The Advanced Style Editor is for headings and header. Thus where can I customize my body text? (same questions as above)

    Thanks ;)

    • This reply was modified 9 years, 10 months ago by iclo.
    #397679

    Hi!

    You’d need to rely on CSS for that, try placing the following code in the Quick CSS area:

    body{
    font-style: italic;
    font-weight: bold;
    letter-spacing: 2px;
    }

    That will affect all texts found in the body element, if you want to be specific -for example for heading elements-:

    h1, h2, h3, h4, h5{
    font-style: italic;
    font-weight: bold;
    letter-spacing: 2px;
    }

    Let me know exactly what elements you wish to change and i can provide you with the codes.

    Best regards,
    Josue

    #464656

    Hi Josue,

    I am trying to add Roboto as my body font to go along with Roboto headings but I too am having the same problem as iclo.

    I’ve followed all instructions above and still no luck :(

    Could you help me please?

    Many thanks!

    #464715

    Hi!

    Roboto should be available now as a Content Font.

    Best regards,
    Josue

    #464793

    You are the man Josue! Thank you!

    #464829

    You are welcome, glad to help :)

    Regards,
    Josue

    #523306

    I would also like to use Roboto as my body font, but there’s no option for that in the droplist, how can I fix it? :/

    #523307

    Now when I look at the page, it’s not the font being rendered.
    If I choose Open Sans as my body font, thats both chosen and rendered, but choosing Roboto renders Helvetica.. :/

    Please advise!

    • This reply was modified 9 years, 2 months ago by Sunique.
    #523327

    Hey!

    Sunique,

    please create a new topic and provide us with your private data access.

    Thanks a lot

    Best regards,
    Basilis

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘How to add Roboto font’ is closed to new replies.