-
AuthorPosts
-
March 19, 2017 at 9:27 pm #763327
Hello, according to your instrucions I tried to paste following into the stylesheet
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Muli’] = ‘Muli:400,700,400italic,700italic’;
$fonts[‘Muli’] = ‘Muli:400,700’;
return $fonts;
}It did not work. Any help for me?
March 19, 2017 at 9:39 pm #763331Hey onlinerin,
Please try that code in the functions.php file.
WP > Appearance > Editor > under Templetes on the right side > Theme Functions (functions.php)Best regards,
MikeMarch 19, 2017 at 9:43 pm #763334Oops
Fatal error: Cannot redeclare avia_add_content_font() (previously declared in /www/htdocs/w0154578/aiolos.at/wp-content/themes/enfold child/functions.php:22) in /www/htdocs/w0154578/aiolos.at/wp-content/themes/enfold child/functions.php on line 36
March 20, 2017 at 12:44 am #763389March 20, 2017 at 9:15 am #763532March 20, 2017 at 9:21 am #763534Hey!
Can you please try open the file through FTP to edit it from there.
That will help you if you do not have access to wordpress backend.Thanks a lot
Regards,
BasilisMarch 20, 2017 at 9:29 am #763535Thx Basilis, I am not firm with FTP. I’ll contact a buddy to help on this.
March 20, 2017 at 3:35 pm #763669Thx guys for the friendly help. I had set another font code some time before, and did not know to have the new one within the same brackets.
This one works:
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Indie Flower’] = ‘Indie Flower:400,700’;
$fonts[‘Indie Flower’] = ‘Indie Flower:400,700,400cursiv,700cursiv’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Indie Flower’] = ‘Indie Flower:400,700’;
$fonts[‘Indie Flower’] = ‘Indie Flower:400,700,400cursiv,700cursiv’;
$fonts[‘Muli’] = ‘Muli:400,700,400italic,700italic’;
$fonts[‘Muli’] = ‘Muli:400,700’;
return $fonts;
}March 21, 2017 at 4:52 am #763961Hi,
Great, so I’m guessing that fixed your problem? Thanks for sharing by the way.
Best regards,
RikardMarch 21, 2017 at 10:35 am #764093Thank you Rikard, yes I solved the problem.
Have a nice day and happy springtime to everyone!
nicolaMarch 22, 2017 at 5:06 am #764526 -
AuthorPosts
- The topic ‘Set Muli as body font’ is closed to new replies.