Custom HTML Snippet - HTML CSS JS Code Block
by Modvanta https://modvantaapps.tech/odoo-apps/html-snippet/$ 9.97
Built and supported by Modvanta - modvantaapps@gmail.com
What it does
A website block that runs your own HTML, CSS and JavaScript
Drop the HTML Snippet block on any page and give it your own code: HTML for the content, CSS for the look and JavaScript for behaviour. The code is stored as a reusable code block record and loaded into the page.
Use it for embeds, small widgets, calculators or custom banners that the standard blocks cannot do, without editing a theme.
Who it is for
For websites that need one thing the builder cannot do
Agencies Add a custom widget for a client in minutes. |
Marketing Paste an embed or a styled banner. |
Developers Keep small page code in Odoo, versioned in a record. |
Key features
What you get
1Your HTML and CSS on the page
Here a styled opening-hours banner built with the block.

2JavaScript runs
The button runs the block's script and shows today's hours.

3HTML, CSS and JS fields
Each code block keeps its name, HTML, CSS and JS.

4Responsive
The same block on a phone.

How it works
Step by step
| 1 | Drag the block Add HTML Snippet to a page in the website editor. |
| 2 | Edit the code Use Edit Code in the block options to write HTML, CSS and JS. |
| 3 | Save The block shows your code on the live page. |
Settings
What you can configure
| Setting | Where | What it does |
| HTML / CSS / JS | Code block record | The code the block loads. |
| Access | User rights | Website editors can create and change code blocks. |
FAQ
Questions buyers ask
Who can edit the code?
Users with website editor rights. Only give this to people you trust with site code.
Can I reuse a block?
Yes, the code is stored as a record.
Does the JavaScript run for visitors?
Yes, it runs on the published page.
Which theme was it tested on?
The default Odoo website theme.
Compatibility
Works with
Odoo 19 Community Odoo 19 Enterprise Depends on: websiteBuilt and tested on Odoo 19.
Add anything to your pages
Questions before buying, help with setup, or a change you need: write to us and a developer answers.
SUPPORT |
AUTHOR Modvanta |
INCLUDED Source code, free bug fixes for Odoo 19 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Website (website)
• Discuss (mail) |
| Lines of code | 263 |
| Technical Name |
mdv_html_snippet |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/html-snippet/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module