Home Forums WoodMart support forum Custom fonts – No backup fonts

Custom fonts – No backup fonts

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #137076

    Aka123
    Participant

    Hi, I want to use the font family like this: .example {font-family: "my custom font",lato;}.
    In Theme settings>Typography>Custom fonts, I’ve uploaded my custom fonts and it works, no problems with the letter but the number is Times New Roman font but I want the number to be Lato font. In TYPOGRAPHY page, I can select only one font. And when I select my custom font, how can I select Lato font as the backup font? How can I do that or do I have to upload webfonts folder to my child theme folder and customize in style.css in stead?

    #137101

    Hello,

    Please provide the site admin access to the private area so that we could check the settings.

    Best Regards

    #137117

    Aka123
    Participant

    Pls see in Provate Area

    #137118

    Artem Temos
    Keymaster

    There is no reason to use Google Font as a backup font. It should be a system font since Lato is stored remotely too.

    #137199

    Aka123
    Participant

    Hi, I don’t understand what you mean. Did you login to check?

    #137277

    Artem Temos
    Keymaster

    You want to set the Lato font as a backup font but it is not possible and was not possible before the update as well. Backup font should be a system font like Arial, Times New Roman, Verdana etc.

    #137682

    Aka123
    Participant

    If cannot use Lato, can I use Tahoma? I’ve tried to replace Arial with Tahoma in this file woodmart-dynamic-1565612449.css but cannot.

    #137685

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    add_filter( 'woodmart_backup_fonts', function(){
        return ', Tahoma, Helvetica, sans-serif';
    } );

    And then go to Theme Settings and resave them.

    #137730

    Aka123
    Participant

    Done! Thanks.

    #137806

    Artem Temos
    Keymaster

    You are welcome.

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Custom fonts – No backup fonts’ is closed to new replies.