{"id":59098,"date":"2016-01-07T09:07:26","date_gmt":"2016-01-07T14:07:26","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=59098"},"modified":"2016-02-18T03:47:14","modified_gmt":"2016-02-18T08:47:14","slug":"prestashop-1-6-x-how-to-add-a-custom-font","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prestashop-1-6-x-how-to-add-a-custom-font.html","title":{"rendered":"PrestaShop 1.6.x. How to add a custom font"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how to <strong>add a custom font<\/strong> in PrestaShop 1.6.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=t1nX5_2FQ8g?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to add a custom font<\/a><\/p>\r\n<p>Sometimes you need to install other fonts instead of <a target=\"_blank\" href=\"\/help\/prestashop-how-to-change-a-google-web-font.html\">Google web fonts<\/a>.<\/p>\r\n<ol>\r\n<li>\r\n<p>Look for a free webfont using any search engine you prefer (Google, Yahoo, etc.), for example, <a href=\"http:\/\/www.fontsquirrel.com\/\" target=\"_blank\" rel=\"nofollow\">http:\/\/www.fontsquirrel.com<\/a>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Select the webfont you like by clicking on the <strong>download<\/strong> button and save it on your computer:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_1-300x136.png\" alt=\"PrestaShop_1.6_How_to_add_a_custom_font_1\" width=\"300\" height=\"136\" class=\"aligncenter size-medium wp-image-59099\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_1-300x136.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_1-150x68.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_1-1024x464.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_1.png 1118w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Make sure the font type is either <strong>TTF (True Type Font)<\/strong> or <strong>OTF (Open Type Font)<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to <a href=\"http:\/\/www.font2web.com\/\" target=\"_blank\" rel=\"nofollow\">http:\/\/www.font2web.com\/<\/a> and click on the <strong>&ldquo;Browse&hellip;&rdquo;<\/strong> button to <strong>choose<\/strong> the downloaded <strong><i>.ttf\/.otf<\/i><\/strong> font file.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Once the font file is uploaded, click on the <strong>&ldquo;Convert and Download&rdquo;<\/strong> button to download converted font to your machine:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_2-300x236.png\" alt=\"PrestaShop_1.6_How_to_add_a_custom_font_2\" width=\"300\" height=\"236\" class=\"aligncenter size-medium wp-image-59100\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_2-300x236.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_2-150x118.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_2.png 597w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p><strong>Upload<\/strong> the converted font package to the <strong>themes\/theme_number\/fonts<\/strong> folder of the site directory via FTP or hosting cPanel and make sure to unzip the font files to the <strong>fonts<\/strong> folder itself:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_3-300x102.png\" alt=\"PrestaShop_1.6_How_to_add_a_custom_font_3\" width=\"300\" height=\"102\" class=\"aligncenter size-medium wp-image-59101\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_3-300x102.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_3-150x51.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_3.png 871w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p><strong>Copy<\/strong> the code from <strong>fonts.css<\/strong> from the font package and paste to  <strong>themes\/theme_number\/css\/global.css<\/strong> or <strong>stylesheet.css<\/strong> (depending on your template) after this code section adding the direct link to the font in the format <i>your_site_url.com\/themes\/theme_number\/fonts\/font_file<\/i>:<\/p>\r\n<pre> \/* FONT PATH\r\n  * -------------------------- *\/<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_4-300x99.png\" alt=\"PrestaShop_1.6_How_to_add_a_custom_font_4\" width=\"300\" height=\"99\" class=\"aligncenter size-medium wp-image-59102\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_4-300x99.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_4-150x50.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_4-1024x338.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_4.png 1275w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t<\/li>\r\n<li>\r\n<p><strong>Add the font-family css code<\/strong> from <strong>fonts.css<\/strong> to the needed element, for example, we will add this code to <i>themes\/theme_number\/css\/modules\/tmmegamenu\/views\/css\/tmmegamenu.css<\/i>  to change the menu items font:<\/p>\r\n<pre class=\"brush:css\">.top_menu &gt; ul &gt; li &gt; a {\r\n  font-family: 'Conv_AbrilFatface-Regular' !important;\r\n  }\r\n  <\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_5-300x99.png\" alt=\"PrestaShop_1.6_How_to_add_a_custom_font_5\" width=\"300\" height=\"99\" class=\"aligncenter size-medium wp-image-59103\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_5-300x99.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_5-150x49.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_5-1024x338.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop_1.6_How_to_add_a_custom_font_5.png 1273w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>Follow <a target=\"_blank\" href=\"\/help\/firebug-how-to-determine-a-file-with-needed-code.html\">this tutorial<\/a> to track the needed code.<\/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=t1nX5_2FQ8g?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to add a custom font<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to <strong>add a custom font<\/strong> in PrestaShop 1.6.<\/p>\n","protected":false},"author":75,"featured_media":59104,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[789,688,552],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/59098"}],"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\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=59098"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/59098\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/59104"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=59098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=59098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=59098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}