{"id":59858,"date":"2016-01-29T08:35:56","date_gmt":"2016-01-29T13:35:56","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=59858"},"modified":"2016-02-18T03:50:01","modified_gmt":"2016-02-18T08:50:01","slug":"prestashop-1-6-x-how-to-change-font-awesome-icons","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prestashop-1-6-x-how-to-change-font-awesome-icons.html","title":{"rendered":"PrestaShop 1.6.x. How to change Font Awesome icons"},"content":{"rendered":"<p>\r\n<p>This tutorial provides an explanation of how to change <strong>Font Awesome<\/strong> icons in Prestashop 1.6.x.<\/p>\r\n<p>\t\t<a href=\"http:\/\/www.youtube.com\/watch?v=m56x1JAaiyA?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to change Font Awesome icons<\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>Inspect the icon using a developer tool in your browser, for example Firebug (for Mozilla Firefox), to check how it is set up. You can find information on how to use Firebug plugin <a href=\"\/help\/firebug-mozilla-firefox-plugin.html\" target=\"_blank\">here<\/a>.\r\n\t\t\t\t<\/p>\r\n<\/li>\r\n<li>\r\n<p>In our case we can see that the icon is assigned to this CSS selector:<\/p>\r\n<pre class=\"brush:css\">\r\n\t\t\t\t\t.shopping_cart > a:first-child::before\r\n\t\t\t\t<\/pre>\r\n<p>\t<a href=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_1-300x162.jpg\" alt=\"prestashop_how_to_change_font_awesome_icons_1\" width=\"300\" height=\"162\" class=\"aligncenter size-medium wp-image-59859\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_1-300x162.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_1-150x81.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_1-1024x554.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_1.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n<li>\r\n<p>In order to change the icon, you need to modify the respective file where the icon code is located. You can also see the path to this file with Firebug. Or right click on the file name in Firebug and select <strong>Copy Location<\/strong>. Paste the copied link to Notepad or any other text editor on your computer, and you will see the absolute path to this file:\r\n\t\t\t\t<\/p>\r\n<p>\t\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_2-300x170.jpg\" alt=\"prestashop_how_to_change_font_awesome_icons_2\" width=\"300\" height=\"170\" class=\"aligncenter size-medium wp-image-59860\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_2-300x170.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_2-150x85.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_2-1024x579.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_2.jpg 1283w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n<li>\r\n\t\t\t\tIn our case we need to edit the CSS code on the <strong>line 33<\/strong> in the <strong>blockcart.css<\/strong> file located in<br \/>\r\n\t\t\t\t<strong>themes\/themeXXXX\/css\/modules\/blockcart\/<\/strong> directory on the server. To edit the file, log into your <strong>cPanel<\/strong>.\r\n\t\t\t<\/li>\r\n<li>\r\n<p>Locate the <strong>File Manager<\/strong> and go to your website folder (you can perform the next steps via your FTP as well).<\/p>\r\n<\/li>\r\n<li>\r\n<p>Navigate to <strong>themes\/themeXXXX\/css\/modules\/blockcart\/<\/strong> directory and open the <strong>blockcart.css<\/strong> file:<\/p>\r\n<p>\t\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_3-300x168.jpg\" alt=\"prestashop_how_to_change_font_awesome_icons_3\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-59861\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_3-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_3-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_3-1024x574.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_3.jpg 1279w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n<li>\r\n<p>Locate the appropriate line (in our case line 33) in the <strong>blockcart.css<\/strong> file. You will see the same code you saw in Firebug:<\/p>\r\n<pre class=\"brush:css\">\r\n\t\t\t\t\t.shopping_cart > a:first-child:before {\r\n\t\t\t\t\t\tcontent: \"\\f07a\";\r\n\t\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\t\tfont-family: \"FontAwesome\";\r\n\t\t\t\t\t\tdisplay: inline-block;\r\n\t\t\t\t\t\tfont-size: 36px;\r\n\t\t\t\t\t\tfont-weight: 400;\r\n\t\t\t\t\t\tcolor: #fbdd12;\r\n\t\t\t\t\t\tleft: 2px;\r\n\t\t\t\t\t\ttop: 6px;\r\n\t\t\t\t\t\t-moz-transition: all 0.2s ease;\r\n\t\t\t\t\t\t-o-transition: all 0.2s ease;\r\n\t\t\t\t\t\t-webkit-transition: all 0.2s ease;\r\n\t\t\t\t\t\ttransition: all 0.2s ease; }\r\n\t\t\t\t<\/pre>\r\n<p>Our icon has <strong>\\f07a<\/strong> code value assigned to the <strong>content<\/strong> CSS property:<\/p>\r\n<p>\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_4-300x173.jpg\" alt=\"prestashop_how_to_change_font_awesome_icons_4\" width=\"300\" height=\"173\" class=\"aligncenter size-medium wp-image-59862\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_4-300x173.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_4-150x87.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_4-1024x591.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_4.jpg 1281w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n<li>\r\n<p>\r\n\t\t\t\t\tYou can use this <a href=\"https:\/\/fortawesome.github.io\/Font-Awesome\/icons\/\" rel=\"nofollow\" target=\"_blank\">Font Awesome icons reference<\/a> in order to pick another icon and find its respective code value. Also, you can use search engines in order to find it.\r\n\t\t\t\t<\/p>\r\n<\/li>\r\n<li>\r\n<p>\r\n\t\t\t\t\tLet&#8217;s pick the gift icon. Click on the icon link and locate its <strong>Unicode<\/strong> value. Copy the value which is <strong>f06b<\/strong>. Please note that not all icons may show up, as the newly added <strong>Font Awesome<\/strong> icons may not have styles in the template files:\r\n\t\t\t\t<\/p>\r\n<p>\t\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_5-300x175.jpg\" alt=\"prestashop_how_to_change_font_awesome_icons_5\" width=\"300\" height=\"175\" class=\"aligncenter size-medium wp-image-59863\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_5-300x175.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_5-150x87.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_5-1024x597.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_5.jpg 1277w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n<li>\r\n<p>\r\n\t\t\t\t\tGo back to the <strong>blockcart.css<\/strong> file. Replace the existing icon code with the one you have copied. Do not remove the <strong>backslash<\/strong> before the code value. In our case the final code for the <strong>content<\/strong> property should look like this:\r\n\t\t\t\t<\/p>\r\n<pre class=\"brush:css\">\r\n\t\t\t\t\tcontent: \"\\f06b\";\r\n\t\t\t\t<\/pre>\r\n<p>\t\t<a href=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_6-300x173.jpg\" alt=\"prestashop_how_to_change_font_awesome_icons_6\" width=\"300\" height=\"173\" class=\"aligncenter size-medium wp-image-59864\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_6-300x173.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_6-150x87.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_6-1024x592.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_6.jpg 1281w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t\t<\/li>\r\n<li>\r\n<p>\r\n\t\t\t\t\tSave your changes and refresh your website to review them. The icon has been changed:\r\n\t\t\t\t<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_7-300x174.jpg\" alt=\"prestashop_how_to_change_font_awesome_icons_7\" width=\"300\" height=\"174\" class=\"aligncenter size-medium wp-image-59865\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_7-300x174.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_7-150x87.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_7-1024x595.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2016\/01\/prestashop_how_to_change_font_awesome_icons_7.jpg 1278w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\t\t\t<\/li>\r\n<\/ol>\r\n<p>Now you know how to change <strong>Font Awesome<\/strong> icons in Prestashop 1.6.x.<\/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=m56x1JAaiyA?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6.x. How to change Font Awesome icons<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial provides an explanation of how to change <strong>Font Awesome<\/strong> icons in Prestashop 1.6.x.<\/p>\n","protected":false},"author":95,"featured_media":59866,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[1761,674,552],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/59858"}],"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\/95"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=59858"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/59858\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/59866"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=59858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=59858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=59858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}