Custom Home Blocks
Custom Home Blocks is a PrestaShop module that lets you add multiple custom HTML content blocks to your store's homepage, Use it for banners, promotional text or any other HTML content without depending on your theme or touching code.
What does Custom Home Blocks do?
With Custom Home Blocks you can create as many content blocks as you need from the PrestaShop admin panel, each with:
- An internal title to easily identify it in the list
- Free HTML content, with no restrictions or sanitization
- An independent enabled/disabled status
- A specific position within the page's block order
Simple management from the back office
All management is done from a single module configuration screen, with no complex forms involved:
- Add, edit and delete blocks at any time
- Reorder blocks up and down with a single click
- Enable or disable a block without having to delete it
- Content preview in the list to identify each block at a glance
Unfiltered HTML
The content editor is a simple monospace text field: any HTML you write (tags, attributes, inline styles, scripts...) is kept exactly as written, with no WYSIWYG visual editor in between and no cleanup process altering the result.
Multiple instances on the same hook
The module can be added several times to the displayHome hook from Design > Positions. This lets you show the blocks, for example, at both the top and the bottom of the homepage. Both positions render the same set of blocks.
No new database tables
Custom Home Blocks doesn't create any additional tables: all blocks are stored in PrestaShop's own configuration table, encoded so any HTML is saved without being altered.
Requirements
PrestaShop 1.7 or higher (tested on 9) and PHP 7.1 or higher.
Have an idea or want to collaborate?
Have an idea, want to team up on a project, or just want to talk tech? Drop us a line. We love meeting people who want to build things.
Let's talk