Tagged: google fonts
-
AuthorPosts
-
January 31, 2018 at 1:28 pm #905553
Hi kind supporto
I would like to know how to use ROBOTO Condensed as font of the text of my website.I tried to change to Roboto Condensed but I was not able to use that font.
can you please help me?thanks a lot Libera
February 1, 2018 at 9:33 am #906078Hey liberalamente,
Did you try to import it as a body font? http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
Best regards,
RikardFebruary 1, 2018 at 11:53 am #906238Per roboto condensed cona you please pass me the code to add all of them?
thanks/* Light */
@font-face {
font-family: “Roboto Condensed”;
font-style: normal;
font-weight: 300;
src: local(‘Roboto Condensed Light’), local(‘RobotoCondensed-Light’), url(“RobotoCondensed-Light.ttf”) format(‘truetype’);
}
@font-face {
font-family: “Roboto Condensed”;
font-style: italic;
font-weight: 300;
src: local(‘Roboto Condensed Light Italic’), local(‘RobotoCondensed-LightItalic’), url(“RobotoCondensed-LightItalic.ttf”) format(‘truetype’);
}/* Normal */
@font-face {
font-family: “Roboto Condensed”;
font-style: normal;
font-weight: 400;
src: local(‘Roboto Condensed Regular’), local(‘RobotoCondensed-Regular’), url(“RobotoCondensed-Regular.ttf”) format(‘truetype’);
}
@font-face {
font-family: “Roboto Condensed”;
font-style: italic;
font-weight: 400;
src: local(‘Roboto Condensed Italic’), local(‘RobotoCondensed-Italic’), url(“RobotoCondensed-Italic.ttf”) format(‘truetype’);
}/* Bold */
@font-face {
font-family: “Roboto Condensed”;
font-style: normal;
font-weight: 700;
src: local(‘Roboto Condensed Bold’), local(‘RobotoCondensed-Bold’), url(“RobotoCondensed-Bold.ttf”) format(‘truetype’);
}
@font-face {
font-family: “Roboto Condensed”;
font-style: italic;
font-weight: 700;
src: local(‘Roboto Condensed Bold Italic’), local(‘RobotoCondensed-BoldItalic’), url(“RobotoCondensed-BoldItalic.ttf”) format(‘truetype’);
}February 2, 2018 at 11:40 am #906795Hi,
Please add the filter in the functions.php file.
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Roboto Condensed'] = 'Roboto Condensed:300italic,400italic,700italic,400,300,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Roboto Condensed'] = 'Roboto Condensed:300italic,400italic,700italic,400,300,700'; return $fonts; }
Best regards,
IsmaelFebruary 2, 2018 at 5:58 pm #906932The right code is
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Roboto Condensed’] = ‘Roboto
Condensed:300italic,400italic,700italic,400,300,700’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Roboto Condensed’] = ‘Roboto
Condensed:300italic,400italic,700italic,400,300,700’;
return $fonts;
}Anyhow I set the Roboto Condensed but i do NOT SEE any differences!
What do i have to do to CHANGE the font?
Please i need helpFebruary 2, 2018 at 6:11 pm #906936I solved it ….but without your support.
I didi not appreciate it.February 3, 2018 at 12:00 am #907126Hi,
The solution Ismael provided should work.
But, we are happy you got it short out, we hope we can help with something else a lot more!Best regards,
Basilis -
AuthorPosts
- The topic ‘How to use ROBOTO Condensed as text of my body’ is closed to new replies.