I use custom theme without font awesome, can i add it?

Hello, I use theme that doesn't have font awesome, i really like it and i want to use it. Can you please let me know how i can use it in my shop? How i can add it ? Do i have to switch theme? Happy wekend from Haag, Ahmed.

PrestaShop expert answer

Hello Ahmed, of course you don't have to switch theme. There is an easiest way to add font awesome libraries to your online shop. You can achieve this with tiny html code - this means that you will have to edit theme file (header.tpl for example) or use some custom contents module like html box free or content box pro. I will show you both ways to achieve this.

 

1. theme modification

As i mentioned you will have to alter theme file. In this case - header.tpl. You can find it in main directory of your template. So, please open it. and somehwere between code add this tiny html code:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

And save changes. That's all, now your shop will support font awesome. If you use caching - please clear it - in some cases it is necessary.

 

2. Html box free

I also mentioned that you can add support of font awesome without touching the theme files. In fact - you can achieve it in back office with some free and paid modules to add custom contents. I will describe below the way to achieve it with html box free module. Please install this addon in your shop. Go to module configuration page. From the left hand side box (where you see "positions" please select "header" option. To the right hand side textarea field please paste code attached below:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">

and save changes with "save" button. Now you will be able to use font awesome in your online shop.

author milos myszczuk
Answer by Milosz Myszczuk PrestaShop expert, official PrestaShop community moderator. PHP developer, specialist in relative and spatial databases management, GIS Analyst, CEO & founder of VEKIA interactive agency. Read more about VEKIA company
If you like my articles and want much more valuable tips, feel free to send me donation
"; ?>