Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I want to integrate a bootstrap snippet on my odoo website, but as you know, a snippet is a block composed from Html, css, and sometimes JS Code, that you can integrate into your Odoo website.
So I used the HTML editor to integrate the HTML Code on my odoo website
How to also integrate to my odoo website the CSS and JS Code ? is there a way to add this on the default theme ?
What I did to add a jquery plugin is in the assets.xml file I added :
<template id="myjq" inherit_id="website.assets_frontend" name="Myjq">
<xpath expr="." position="inside">
and for the css I did:
<template id="mystyle" name="My style" inherit_id="website.assets_frontend">
<xpath expr="link[last()]" position="after">
<link href="/theme_vish/static/less/style.less" rel="stylesheet" type="text/less"/>
Hopefully, this will help you.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/25/15, 2:39 PM|
|Seen: 1877 times|
|Last updated: 7/4/16, 11:32 AM|