Free PrestaShop1.7 custom code module - Put custom css or javascript, Google analytics code, Google fonts and meta tags.
This module allows you to add custom css or JavaScript, Google analytics code, google fonts and meta tags to your site.
Compatible with: All versions later than Prestashop1.7.1.0
Download
Free PrestaShop1.7 custom code module (39843 downloads)Important if you are transformer theme or panda theme user, then no need to use this module, the feature is one of our theme's built-in features. This module is for people how are using prestashop classic theme or other themes which do not have custom code feature.
Key features
- Add custom css code.
- Add extra css file code.
- Add extra google fonts and other web fonts to your site.
- Add meta tags to <head>.
- Add custom javascript code.
- Add extra javascript file code.
- Add extra google tracking code to your site.
- Support cache.
Screenshots
Installation
Download the module, install it from BO > Modules page.
FAQ
Why my code can be saved?
This usual happens when you try to add extra css/javascript files or tracking code, the solution is turning off the "Use HTMLPurifier Library" setting on the BO > Shop parameters > General page.
How to add google fonts?
You can get a code like this form Google web fonts, just put the code into the Head code field.
1 |
Where should I put the Google analytics code?
Put the code your got from Google analytics to the Head code field.
Hi, I have a problem that can be seen in the picture. The minus sign overlaps with the category name. (I don't want to change category name for shorter, there is no synonyms ; P)
I tried to change the font size in the theme.css (body-font size) file and checked it by using browser devtools. And it worked (temporarily for obvious reason). So next step was copy theme.css via ftp, edit and replace. But it seems to be like it was earlier. I couldn't overwrite this file. What should i do? (sorry for my bad english)
[url=https://ibb.co/Qcx3w29][img]https://i.ibb.co/Qcx3w29/store.png[/img][/url]
link to the pic https://ibb.co/Qcx3w29
I don't 100% understand your question. If you need to add a piece of css code to change the font size of categories, then install this module and put the code in the module's custom css code field. If you prefer adding the code to your site by editing files, then put the code in the /themes/yourthemename/assets/css/custom.css file if your site is running on PrestaShop 1.7.
Thanks. I have another question. In theme configuration(prestashop 1.7.%) i set two columns for product page. Why there is no categorytree list on the left side on product page? https://ibb.co/Rv3Sx6L
Transplant the categorytree module to the "displayLeftColumnProduct" hook.
I made the download of the module, but it shows me that the folder is empty and I can not install it!
My fault, I recently did a small modification to the module which cased the problem. Download it again to get it.
Thanks for your feedback.
Thank you very much, by chance you know how I can insert the code or the script: https://optimize.google.com/
Put the code you got to the "Head code" field.
I did it, but it does not detect it at optimize.google.com
Send me a picture to show me how the code looks like, my email address is helloleemj@gmail.com
I already sent the email.