{"id":53785,"date":"2015-09-09T04:35:11","date_gmt":"2015-09-09T08:35:11","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=53785"},"modified":"2017-08-17T06:05:21","modified_gmt":"2017-08-17T10:05:21","slug":"cherryframework-4-how-to-add-a-custom-font","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cherryframework-4-how-to-add-a-custom-font.html","title":{"rendered":"CherryFramework 4. How to add a custom font"},"content":{"rendered":"<p>\r\n<p>Hello! This video tutorial shows how to add <strong>custom font<\/strong> in CherryFramework 4 templates.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=rLgvSi76kMs?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 4. How to add a custom font<\/a><\/p>\r\n<p>You may want to add an additional font which is not included in the framework of your site.<\/p>\r\n<p>Let&#8217;s learn how to do this.<\/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>Use your favorite search engine to find the site with free <strong>webfonts<\/strong>, e.g. <a href=\"http:\/\/www.fontsquirrel.com\/\" target=\"_blank\">http:\/\/www.fontsquirrel.com<\/a> :<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_1-300x165.png\" alt=\"cherryframework4_how_to_add_custom_font_1\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-53786\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_1-300x165.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_1-150x83.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_1-1024x564.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_1.png 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Choose the font that fits your desire and download it to your machine:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_2-300x165.png\" alt=\"cherryframework4_how_to_add_custom_font_2\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-53787\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_2-300x165.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_2-150x83.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_2-1024x564.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_2.png 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Then, navigate to <a href=\"http:\/\/www.font2web.com\/\" target=\"_blank\">http:\/\/www.font2web.com\/<\/a> site and click <strong>&#8220;Browse&#8230;&#8221;<\/strong> button to choose the downloaded font file. Make sure the font type is either <strong>TTF (True Type Font)<\/strong> or <strong>OTF (Open Type Font)<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_3-300x165.png\" alt=\"cherryframework4_how_to_add_custom_font_3\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-53788\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_3-300x165.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_3-150x83.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_3-1024x563.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_3.png 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Once the font file is uploaded, click the <strong>&#8220;Convert and Download&#8221;<\/strong> button to download converted font to your machine:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_4-300x165.png\" alt=\"cherryframework4_how_to_add_custom_font_4\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-53789\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_4-300x165.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_4-150x83.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_4-1024x563.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_4.png 1247w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>Unarchive the downloaded file, the converted font package has the following structure:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_5-300x156.png\" alt=\"cherryframework4_how_to_add_custom_font_5\" width=\"300\" height=\"156\" class=\"aligncenter size-medium wp-image-53790\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_5-300x156.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_5-150x78.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_5-1024x533.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_5.png 1173w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>We will need <strong>&#8220;fonts&#8221;<\/strong> folder and <strong>fonts.css<\/strong> file only.<\/p>\r\n<ol>\r\n<li>\r\n<p>Access your <strong>FTP\/hosting control panel File Manager<\/strong> and navigate to <strong>\/wp-content\/themes\/themeXXXXX\/assets\/<\/strong> directory, where <strong>themeXXXXX<\/strong> is your child theme name.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Upload recently downloaded <strong>&#8220;fonts&#8221;<\/strong> folder to <strong>\/assets\/<\/strong> directory.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Now that the font is uploaded to your site, you should add a reference to it in your admin panel.<\/p>\r\n<ol>\r\n<li>\r\n<p>Open the <strong>fonts.css<\/strong> file from the converted font package in any text editor, e.g. <strong>Notepad++<\/strong>, <strong>Sublime Text 2<\/strong>, etc.:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_6.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_6-300x172.png\" alt=\"cherryframework4_how_to_add_custom_font_6\" width=\"300\" height=\"172\" class=\"aligncenter size-medium wp-image-53791\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_6-300x172.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_6-150x86.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_6-1024x587.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_6.png 1170w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Change the <strong>url() attributes<\/strong> from<strong> &#8216;fonts\/Conv_Allura-Regular.xxx&#8217;<\/strong> to <strong>&#8216;assets\/fonts\/Conv_Allura-Regular.xxx&#8217;<\/strong> by adding assets\/ at the beginning:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_7.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_7-300x173.png\" alt=\"cherryframework4_how_to_add_custom_font_7\" width=\"300\" height=\"173\" class=\"aligncenter size-medium wp-image-53792\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Then log into your <strong>WordPress dashboard<\/strong> and navigate to <strong>Appearance ->Editor<\/strong>:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_8.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_8-300x165.png\" alt=\"cherryframework4_how_to_add_custom_font_8\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-53793\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_8-300x165.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_8-150x83.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_8-1024x565.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_8.png 1248w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Copy the reviously altered <strong>fonts.css<\/strong> file code and paste it at the very end of the appeared <strong>style.css<\/strong> file:<\/p>\r\n<\/li>\r\n<\/ol>\r\n<pre class=\"brush:css\">\r\n@font-face {\r\n\tfont-family: 'Conv_Allura-Regular';\r\n\tsrc: url('assets\/fonts\/Conv_Allura-Regular.eot');\r\n\tsrc: local('\u263a'), url('assets\/fonts\/Conv_Allura-Regular.woff') format('woff'), url('assets\/fonts\/Conv_Allura-Regular.ttf') format('truetype'), url('assets\/fonts\/Conv_Allura-Regular.svg') format('svg');\r\n\tfont-weight: normal;\r\n\tfont-style: normal;\r\n}\r\n<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_9.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_9-300x165.png\" alt=\"cherryframework4_how_to_add_custom_font_9\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-53794\" \/><\/a><\/p>\r\n<p>You will have your own font name instead of &#8220;Conv_Allura-Regular&#8221;.<\/p>\r\n<p>Now, let&#8217;s say, you want to apply newly added font to <strong>h5<\/strong> titles on your site.<\/p>\r\n<p>In order to do this, add the following code right below the previously added code:<\/p>\r\n<pre class=\"brush:css\">\r\nh5 { \r\n  font-family: Conv_Allura-Regular !important;  \r\n}\r\n<\/pre>\r\n<p>Pay attention to <strong>!important<\/strong> declaration which is added to the <strong>CSS rule<\/strong> to overwrite already existing <strong>font-family property<\/strong> for <strong>h5<\/strong> titles:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_10.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/cherryframework4_how_to_add_custom_font_10-300x165.png\" alt=\"cherryframework4_how_to_add_custom_font_10\" width=\"300\" height=\"165\" class=\"aligncenter size-medium wp-image-53795\" \/><\/a><\/p>\r\n<p>Click the <strong>&#8220;Update File&#8221;<\/strong> button below to apply the changes.<\/p>\r\n<p>Navigate to your site front-end and refresh the page to see the changes.<\/p>\r\n<p>You can see the font of <strong>h5<\/strong> titles is replaced with your custom font.<\/p>\r\n<p>This is the end of the tutorial, you have learnt how to add custom font in your Cherry Framework 4 template.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=rLgvSi76kMs?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 4. How to add a custom font<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This video tutorial shows how to add <strong>custom font<\/strong> in Cherry Framework 4 Wordpress templates.<\/p>\n","protected":false},"author":68,"featured_media":53798,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2017,728],"tags":[2012,789,688],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/53785"}],"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\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=53785"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/53785\/revisions"}],"predecessor-version":[{"id":82825,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/53785\/revisions\/82825"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/53798"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=53785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=53785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=53785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}