Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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?

    #763331

    Hey 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,
    Mike

    #763334

    Oops

    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

    #763389

    Hi,
    Were you able to remove?

    Best regards,
    Mike

    #763532

    no

    #763534

    Hey!

    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,
    Basilis

    #763535

    Thx Basilis, I am not firm with FTP. I’ll contact a buddy to help on this.

    #763669

    Thx 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;
    }

    #763961

    Hi,

    Great, so I’m guessing that fixed your problem? Thanks for sharing by the way.

    Best regards,
    Rikard

    #764093

    Thank you Rikard, yes I solved the problem.
    Have a nice day and happy springtime to everyone!
    nicola

    #764526

    Hi Nicola,

    Great, glad you got it working and thanks for the feedback. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Set Muli as body font’ is closed to new replies.