// CSS @font-face { font-family: 'Browallia New'; src: url('browa.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Expansiva bold'; src: url('ExpansivaBold.otf') format('opentype'); font-weight: normal; font-style: normal; } // Enqueue Custom Fonts function enqueue_custom_fonts() { wp_register_style('custom-fonts', get_stylesheet_directory_uri() . '/fonts/custom-fonts.css', array(), '1.0', 'all'); wp_enqueue_style('custom-fonts'); } add_action('wp_enqueue_scripts', 'enqueue_custom_fonts');
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter