Viewing 9 reply threads
You must be logged in to reply to this topic.
Hello!
I add font file in ../font/AvenirNext-Bold-01.ttf
Add in field_typography lines:
“Avenir Next Bold” => “Avenir Next Bold”,
$this->field[‘ext-font-css’] = get_template_directory_uri() .’css/fonts.css’;
Add lines in functions.php:
wp_enqueue_style( ‘redux-external-fonts’ );
wp_register_style( ‘redux-external-fonts’, get_template_directory_uri().’css/fonts.css’);
Add file fonts.css:
@font-face {
font-family: ‘Avenir Next Bold’;
src: url(‘../font/AvenirNext-Bold-01.ttf’) format(‘truetype’);
font-weight: bold;
font-style: normal;
}
The font is in the drop-down list Typography
But it does not work, HELP! (
Hello,
I think now it’s ok I have added the code into the style.css file.
@font-face {
font-family: 'Avenir Next Bold';
src: url('font/AvenirNext-Bold-01.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
You haven’t call the font.css file in the functions.php file this is the reason that the font doesn’t load.
Let us know.
Regards!
Hello,
Actually that is the font i see in your site’s headings. See screenshot: https://ibb.co/qN4V46s
What browser are you using to see this?
Best regards!
Thank, I wrote “Ouu, I re-save Custom css Code in General Options and IT IS WORK! =)”
Now everything is working well
Hello,
Yes, the ticket was not updated properly when i replied. So I only saw the reply with the screenshots. It’s great to know it’s all ok now.
Let us know if there is anything else we can help you with.
Best regards!
You must be logged in to reply to this topic.