
Custom HTML Blocks for PrestaShop 9 — Insert HTML and JavaScript into Any Hook with Display Rules
Custom HTML Block: Place Any HTML or JavaScript Code in Any PrestaShop Hook
Every online store needs custom content — chat widgets, tracking scripts, custom banners, announcements, social media pixels, or any other HTML or JavaScript snippet. The Custom HTML Block module for PrestaShop 9 lets you create multiple HTML/JavaScript blocks and place them in any store hook, with fine-grained display rules to control exactly where and when each block appears.
Why You Need Flexible Custom HTML Injection
Without a dedicated module, adding custom code to a PrestaShop store typically requires manually editing theme files — a risky process that can break the site and is lost with every theme update. The Custom HTML Block module gives merchants full control over custom code from the back office, safely and without any technical knowledge required.
Key Features
- Multiple HTML blocks: Create as many blocks as you need — each with its own HTML content or JavaScript code.
- Place in any hook: Choose which PrestaShop hook each block is injected into (header, footer, product page, category, checkout, and more).
- Display rules: Control on which pages or under which conditions each block appears — e.g. only on the product page, only on mobile, or only in specific categories.
- JavaScript support: Inject tracking scripts, chat widgets, chatbot integrations, pixels (Meta, Google, TikTok), and any third-party script.
- Safe back-office management: All custom code is managed through the admin panel — no theme file modifications needed.
- Full PrestaShop 9 compatibility: Symfony-based, lightweight, supporting unlimited blocks across any hook.
What Can You Do with Custom HTML Block?
- Inject Meta Pixel, Google Tag Manager, TikTok Pixel and other tracking scripts without touching code.
- Add a live chat widget (Tawk.to, Intercom, Crisp, etc.) in the footer across all pages.
- Display custom announcements or banners only on specific categories or pages.
- Embed chatbots, calculators, or third-party widgets anywhere in the store layout.
- Add custom CSS that applies only to specific pages or page types.
Benefits for the Merchant
The Custom HTML Block module eliminates the need to involve a developer every time a script or custom snippet needs to be added, updated, or removed. Every change is managed safely from the back office and survives theme updates — making it one of the most flexible and time-saving tools in any merchant's PrestaShop toolkit.
Get in Touch
If you are interested in the Custom HTML Block module or would like to discuss how we can integrate third-party services and custom functionality into your store, feel free to contact us. We are here for every need of your online business.