To properly enqueue Google Fonts in WordPress, open your theme’s functions.php file with your favorite editor and insert the following code at the end: function my_google_fonts() 'wp_enqueue_scripts', 'wpb_add_google_fonts' ) Ĭopy the URL provided in the Google Link text (begins with and then replace this in the code above (in our example this is currently in your theme’s style.css file use the font the same way you would do with any other font, following the “CSS rules to specify families” provided by Google. Choose Add fonts and youll be redirected to Site settings. The easiest and most popular way of adding custom fonts to your WordPress website has to be by using the Easy Google Fonts Plugin. You can add additional fonts directly to your site from the Font dropdown in the Style panel. Add Google Fonts with the Google Fonts Plugin Let’s crack on and look at the options available to us to add custom fonts to our WordPress website. More, and you can risk slowing down your website. Whilst using custom fonts can definitely improve the usability of your website it’s important not to go font crazy! A selection of two fonts that have been carefully paired should be ample. The easier this is, then the easier it is to communicate your business offering/services to your customers. This not only includes an improvement in the overall user experience but even how well the information on a website is processed by the brain. Research has shown there are significant benefits of using the right typography. Using custom fonts allow you to take advantage of beautiful combination of different fonts on your website to improve typography and the user experience. But, if you aren’t able to select the right font with the fonts that are already on offer then it’s time to look at alternate fonts and this will mean you need to be able to add your custom fonts to your website. These are in many cases suitable for the website you are designing. Many themes now come with a selection of fonts for you to choose from that are ‘baked in’.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |