Custom CSS
Write CSS rules in the admin panel and they are printed in a style tag in the page head. Colors, spacing, hidden elements or a small layout fix: no child theme and no FTP needed.
Adds custom CSS and JavaScript to your PrestaShop 9 shop without editing the theme or using the database.
Small design fixes and tracking codes usually end up in theme files, and the next theme update deletes them. E5 PS Custom CSS & JS keeps that code in the admin panel: write your CSS, head JavaScript, footer JavaScript or DOM ready code, save, and it appears on the shop. The code is saved in a file outside the database, can be limited to selected pages and can be different for each shop in a multistore setup. Theme updates no longer touch it.
Write CSS rules in the admin panel and they are printed in a style tag in the page head. Colors, spacing, hidden elements or a small layout fix: no child theme and no FTP needed.
Head JavaScript runs before the page content, for example for verification or tracking codes. Footer JavaScript is printed at the end of the page, right before the closing body tag, so it does not slow down the first render.
Code that needs the page elements goes into the DOM ready field. The module wraps it in a DOMContentLoaded listener for you, so you only write the code itself.
Leave the page fields empty to print the code everywhere, or limit it to pages such as the home page, product pages, categories, cart or checkout. You can also exclude pages, for example keep a script away from the checkout.
In a multistore setup, code saved under “All shops” is shared. Select a shop to give it its own code, or keep it on the shared code with one switch.
Code is saved in a JSON file in PrestaShop’s protected var folder, or in a folder you choose. A database restore does not overwrite it, the file can be backed up or versioned, and it stays in place when you reinstall the module.
A short technical summary for developers and system administrators.
The questions we hear most about E5 PS Custom CSS & JS, answered.
It adds the CSS and JavaScript you write in the admin panel to your shop pages: CSS and JS in the page head, JS at the end of the page and DOM ready code. You do not edit theme files.
Every PrestaShop 9 release (9.0 and later 9.x versions), with PHP 8.1 or newer as PrestaShop 9 requires. PrestaShop 1.7 and 8 are not supported.
No. Write only the code; the module adds the style and script tags. If your code contains a closing script or style tag, for example inside a string, it is escaped so it cannot break the page.
In var/modules/e5pscj/snippets.json in your shop folder, which visitors cannot open. You can choose another folder with one line in config/defines_custom.inc.php; the module guide shows it.
Check that “Print the snippets” is on and that the page fields do not exclude the page. If your shop or hosting sends a strict Content Security Policy, the browser may block inline code; the browser console shows that. Errors in your own JavaScript also appear in the console.
Yes. Code saved under “All shops” is used by every shop. When you select a shop and turn off “Use the shared snippets”, that shop gets its own code, which replaces the shared code for it.
Install E5 PS Custom CSS & JS: it imports the code saved by the old module on install. Check the shop, then uninstall the old module so the code is not printed twice.
Your code is no longer printed on the shop, but the file stays where it is. If you install the module again, your code comes back.
PrestaShop 9 module that shows each product’s price in the currencies you choose, under the main price on the product page and in category, search and home page lists. Tax-included and tax-excluded prices, fixed rates such as EUR–BGN 1.95583, texts per language and an English and Turkish admin.
Custom development
We can extend E5 PS Custom CSS & JS for your site’s specific needs: a new feature, a different workflow, or an integration with another system you use. Tell us what you need and we will plan it with you. We only charge for the extra time we actually put in, and small 10–15 minute jobs are on us.