{"id":33854,"date":"2014-05-14T11:10:55","date_gmt":"2014-05-14T15:10:55","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=33854"},"modified":"2017-08-17T06:09:28","modified_gmt":"2017-08-17T10:09:28","slug":"wordpress-how-to-add-google-web-font","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-add-google-web-font.html","title":{"rendered":"WordPress. How to add Google WEB font"},"content":{"rendered":"<p>\r\n<\/p>\r\n<p>This tutorial shows how to add a Google WEB font to a WordPress template based on Cherry Framework.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=rxeCnOOLShc?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to add Google WEB font<\/a><\/p>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<ol>\r\n<li>\r\n<p>In Cherry options, we can see a list of fonts. We are going to add one more font.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-1-300x168.png\" alt=\"WordPress_How_to_add_Google_WEB_font-1\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-33855\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-1-300x168.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-1-150x84.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-1-1024x576.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-1.png 1267w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Go to<strong> Appearance -> Editor<\/strong>.  Open the <strong>options.php<\/strong> file for editing. Search for the following code: <\/p>\r\n<pre class=\"brush:php\">$typography_mixed_fonts = array_merge( options_typography_get_os_fonts() , options_typography_get_google_fonts() );<\/pre>\r\n<p> You can usually find it under the <strong>\/\/ Fonts<\/strong> comment.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-2-300x169.png\" alt=\"WordPress_How_to_add_Google_WEB_font-2\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-33857\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-2-300x169.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-2-150x84.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-2-1024x580.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-2.png 1262w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Open the <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/www.google.com\/fonts\">Google Web fonts page<\/a>, select the desired font and add it to <strong>Collection<\/strong>. Click the <strong>Use<\/strong> button.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-3-300x149.png\" alt=\"WordPress_How_to_add_Google_WEB_font-3\" width=\"300\" height=\"149\" class=\"aligncenter size-medium wp-image-33856\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-3-300x149.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-3-150x74.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-3-1024x510.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-3.png 1250w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Open the <strong>@import<\/strong> tab and you will see a CSS font import code. In our case it is Domine, serif is the font family.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-4-300x157.png\" alt=\"WordPress_How_to_add_Google_WEB_font-4\" width=\"300\" height=\"157\" class=\"aligncenter size-medium wp-image-33858\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-4-300x157.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-4-150x78.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-4-1024x538.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-4.png 1227w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>In the <strong>options.php<\/strong> file you should add the following code:<\/p>\r\n<pre class=\"brush:php\">$typography_mixed_fonts[&quot;Domine, serif&quot;] = &quot;Domine *&quot;; <\/pre>\r\n<p>before:<\/p>\r\n<pre class=\"brush:php\">asort($typography_mixed_fonts); <\/pre>\r\n<\/li>\r\n<p>In this code <strong>&quot;Domine, serif&quot;<\/strong> is the font family, <strong>&quot;Domine *&quot;<\/strong> is the font name that will appear in Cherry options. The modified file should look like on the screenshot below. Save the changes.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-5-300x140.png\" alt=\"WordPress_How_to_add_Google_WEB_font-5\" width=\"300\" height=\"140\" class=\"aligncenter size-medium wp-image-33859\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-5-300x140.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-5-150x70.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-5-1024x479.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-5.png 1224w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<li>\r\n<p> Open the <strong>themeXXXXX\/style.less<\/strong> file with any text\/code editor. Copy the @import code and paste it at the beginning of the style.less file. Save the changes and upload the modified file, replacing the original one.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-6.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-6-300x121.png\" alt=\"WordPress_How_to_add_Google_WEB_font-6\" width=\"300\" height=\"121\" class=\"aligncenter size-medium wp-image-33864\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-6-300x121.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-6-150x60.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-6-1024x416.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-6.png 1270w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p> Refresh the page. We have added a Google Web font. Now you can see it under Cherry fonts options.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-7.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-7-300x129.png\" alt=\"WordPress_How_to_add_Google_WEB_font-7\" width=\"300\" height=\"129\" class=\"aligncenter size-medium wp-image-33860\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-7-300x129.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-7-150x64.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-7-1024x442.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/03\/WordPress_How_to_add_Google_WEB_font-7.png 1262w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=rxeCnOOLShc?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to add Google WEB font<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to a add Google WEB font to a WordPress template based on Cherry Framework.<\/p>\n","protected":false},"author":39,"featured_media":33863,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1158,1419,688,1129,929],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/33854"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=33854"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/33854\/revisions"}],"predecessor-version":[{"id":82832,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/33854\/revisions\/82832"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/33863"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=33854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=33854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=33854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}