Everybody desires their website to be unique. one in all the best ways that to customise a website is to add custom fonts to that. After all, the text makes up the massive a part of it and is a vital part of internet style. Google Fonts provides a large range of internet fonts that anyone will use. It’s associate degree awesome service and one that a lot of website owners should take advantage of.
You can found too many fonts in google fonts.
firstly search the google font on your web browser, After Searching you will found a page with full of fonts like the below screenshot. Select you wished fonts from here. If you are looking for one typeface, in particular, the easiest way is to search for it directly by name in the upper right corner.
You can also use the many filter options. First of all, you can filter fonts by category on the right side –
You can also sort the fonts –
If that isn’t enough, you may also search fonts by style. Options for that include:
Once you have settled on a font, click on the plus sign in the upper right corner to add it to your selection. Your chosen font will then appear in a new menu at the bottom of the screen.
Copy your code from the family select box.
We need to enqueue google font in functions.php file of our (child) theme. with wp_enqueue_style function.
function custom_add_google_fonts() {
wp_enqueue_style( 'custom-google-fonts', 'https://fonts.googleapis.com/css?family=Roboto:400,400i', false );
}
add_action( 'wp_enqueue_scripts', 'custom_add_google_fonts' );
Save the file.
Just use the FOnt-family in the style.css, where you want to change the font. See the below example-
.enigma_footer_widget_title { font-family: Roboto; } Save the file.
You also can add the Google fonts with the help of plugins. The plugins are –
Past time it is very difficult to use google fonts these days anyone can add custom fonts to their WordPress website in few minutes, thanks to Google Fonts. In the article above, you have learned several ways to add Google Fonts to your site, first by hand and then with a plugin.