skip to Main Content

WordPress – How To link custom fonts in function.php file

I'm Trying to add custom fonts in my WordPress development theme, but I got fatal error here how I add it /// Register fonts. Wp_register_style('font-awesome', get_stylesheet_uri(), [], filemtime get_template_directory_uri().'/fonts/font-awesome-webfont.woff', [], false, 'all'); wp_register_style('Naskh', get_stylesheet_uri(), [], filemtime get_template_directory_uri().'/fonts/naskh-webfont.woff', [], false, 'all');…

VIEW QUESTION
Back To Top
Search