by
646 12

Custom font

Custom font: 
CustomFonts.php
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1455035/Custom-font?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
add_action( 'wp_enqueue_scripts', 'custom_google_fonts' ); function custom_google_fonts() { wp_enqueue_style( 'custom-font', "//fonts.googleapis.com/css?family=Roboto:400,300,100,500"); } To include multiple fonts at once, add the | separator, like so wp_enqueue_style( 'custom-font', "//fonts.googleapis.com/css?family=Roboto:400,300,100,500|Roboto+Slab:400,300,100,500");
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus