-
AuthorPosts
-
July 29, 2014 at 7:44 pm #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,
GabeJuly 30, 2014 at 2:11 am #297481Hey 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!
IsmaelFebruary 15, 2015 at 5:59 pm #396435Hi 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 :)
February 16, 2015 at 1:24 pm #396689Hi!
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,
YigitFebruary 16, 2015 at 8:30 pm #397055I 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.
February 16, 2015 at 8:32 pm #397059Hi,
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,
JosueFebruary 16, 2015 at 8:45 pm #397065This reply has been marked as private.February 17, 2015 at 3:00 am #397206Hi!
Check it now, you can now select Roboto on both dropdowns (it is named Roboto Now but it’s the same).
Best regards,
JosueFebruary 17, 2015 at 11:45 am #397376Awesome! 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;February 17, 2015 at 5:10 pm #397610Hey!
You can use the Advanced Style Editor for that:
Cheers!
JosueFebruary 17, 2015 at 5:36 pm #397646Hmm… 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.
February 17, 2015 at 6:07 pm #397679Hi!
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,
JosueJune 25, 2015 at 6:18 pm #464656Hi 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!
June 25, 2015 at 10:57 pm #464715Hi!
Roboto should be available now as a Content Font.
Best regards,
JosueJune 26, 2015 at 9:03 am #464793You are the man Josue! Thank you!
June 26, 2015 at 10:08 am #464829You are welcome, glad to help :)
Regards,
JosueOctober 22, 2015 at 10:00 pm #523306I 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? :/
October 22, 2015 at 10:05 pm #523307Now 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.
October 22, 2015 at 10:38 pm #523327Hey!
Sunique,
please create a new topic and provide us with your private data access.
Thanks a lot
Best regards,
Basilis -
AuthorPosts
- The topic ‘How to add Roboto font’ is closed to new replies.