Custom local font customizr
-
Hello
Trying to set a custom “local” font with customizr like it is done in this post for a google font https://presscustomizr.com/snippet/adding-google-font-customizr/.
But it does not work.
Here is my code
style.css
body { font-family: 'Nexa-Light'; }
functions.php
add_action( 'wp_enqueue_scripts', 'my_nexa_font' ); function my_nexa_font() { wp_enqueue_style( $handle = 'my-nexa-font', $src = 'https://optioninformatique.com/wp-content/themes/Customizr-Child/fonts/Nexa-Light.otf', $deps = array(), $ver = null, $media = null ); }
Any help would be appreciated.
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom local font customizr’ is closed to new replies.