@font-face { font-family: 'GillSans-Light'; src: url('GillSans-Light.eot?#iefix') format('embedded-opentype'), url('GillSans-Light.woff') format('woff'), url('GillSans-Light.ttf') format('truetype'), url('GillSans-Light.svg#GillSans-Light') format('svg'); font-weight: normal; font-style: normal; } @font-face { font-family: 'GillSans-Medium'; src: url('GillSans-Medium.otf') format('opentype'); font-weight: normal; font-style: normal; } 4:05 // 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