Categories

Featured templates

PrestaShop 1.4.x/1.5.x. How to change a Google web font

Ryan DeWitt December 26, 2012
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial shows how to change a Google web font in Prestashop template.

1. Lets change font for menu items. Find font that used for particular text on your template using Firebug software. Information on how to use firebug you can find at Firebug. Mozilla Firefox plugin

2. Open file with the link to Google font. In our template link to the Google font code is located in header.tpl file.

3. We need to replace this font with modified one or just add line with the new font in case original font will be used as well.

3.1. Open http://www.google.com/webfonts and select appropriate font using filters.

3.2. Pay attention to character set. Select font that supports your character set. We have selected Cyrillic Extended in order to be able to use Cyrillic fonts.

3.3. Add font to collection and click Use.

3.4. Select appropriate character set and Copy generated code.

4. Replace original code in file or just add code in case you are going to use old font as well. Modified code you can see on the screenshot below.

5. Now we need to change the font in css file. In our case global.css should be modified. Search appropriate code in css file.

6. Scroll down to the page with google font and copy font to your css file.

7. Modified code should look like on the screenshot below.

8.Clear Prestashop cache. Details you can find in our tutorial at Prestashop. How to clear Smarty cache

9. Refresh home page and check how your site looks. We have changed Google font.

Feel free to check the detailed video tutorial below:

PrestaShop. How to change a Google web font

" Premium Prestashop Templates "
This entry was posted in PrestaShop Tutorials and tagged archived_tutorial, change, font, google, Prestashop, web. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket