Skip to main content
Custom HTML blocks module illustration

What it is

The Custom HTML Block module lets you create multiple HTML and JavaScript blocks and place them in any hook of your PrestaShop store.

Every online store needs custom content: chat widgets, tracking scripts, custom banners, announcements, social media pixels or any other HTML or JavaScript snippet.

Display rules control exactly where and when each block appears.

Why use a dedicated module

Without a dedicated module, adding custom code to a PrestaShop store typically means editing theme files by hand. That is risky, can break the site and is lost with every theme update. The Custom HTML Block module lets you manage the code from the back office, safely.

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, for example 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, with no theme file modifications

Use cases

  • Injecting Meta Pixel, Google Tag Manager, TikTok Pixel and other tracking scripts without touching code
  • Adding a live chat widget (Tawk.to, Intercom, Crisp and others) in the footer across all pages
  • Displaying custom announcements or banners only on specific categories or pages
  • Embedding chatbots, calculators or third-party widgets anywhere in the store layout
  • Adding custom CSS that applies only to specific pages or page types

Benefits for the merchant

You no longer need a developer every time a script or snippet has to be added, updated or removed. Every change is managed safely from the back office and survives theme updates.

Technical details

  • Compatible with PrestaShop 9, Symfony-based and lightweight
  • Supports unlimited blocks across any hook

Frequently asked questions

What does the Custom HTML Block module do?

It lets you create multiple HTML and JavaScript blocks and place them in any hook of your PrestaShop store.

Do I need to edit theme files?

No. All custom code is managed through the admin panel, with no theme file modifications.

Can I control where each block appears?

Yes. Display rules let you choose the pages or conditions, for example only on the product page, only on mobile or only in specific categories.

Which scripts can I add?

Tracking scripts, chat widgets, chatbot integrations, pixels (Meta, Google, TikTok) and any other third-party script.

Get in touch

If you are interested in the Custom HTML Block module, or would like to discuss how to integrate third-party services and custom functionality into your store, contact us. We are here to help you find the best solution for your online store. You can also call us on +30 215 215 1362.