In this recipe, we'll see how to add custom style sheets and JavaScript to the website.
Extending CSS and JavaScript for the website
Getting ready
Create an empty module named r1_css_js and install it in your test database. Ensure that this module depends on the website module, as we use some of its functionality.
How to do it...
Override the main website template to inject your code:
- Add a file called views/templates.xml and add an empty view override:
<odoo> <template id="assets_frontend"
inherit_id="website.assets_frontend...