Hello,
On my site, I use Raleway font, native in Enfold. I’d like to use extrabold and black font weight.
I’ve put this in my child theme functions.php file : cf, your documentation.
add_filter
( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts){
$fonts['Raleway'] = 'Raleway:400,700,800,900';
return $fonts;}
add_filter
( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts){
$fonts['Raleway'] = 'Raleway:400,700,800,900';
return $fonts;}
In the editor, I see the difference between the font-weight 700, 800, 900, cf print srcreen1 : yesyouweb.com/img/1.JPG
Online, the 3 sentences are the same, cf print screen2 / https://yesyouweb.com/img/2.JPG
What’s wrong?
I’ve duplicated the block in a test page, URL attached.
Tx for your help !
Hey newki75,
I recommend you this plugin: https://wordpress.org/plugins/use-any-font/
Best regards,
John Torvik
I don’t like using a plugin when it’s not mandatory ;-) I’ve found the problem. I had also to select Raleway in General styling / font / body
Now it works perfectly, u can close the case.
Tx John
Hi newki75,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria