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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/25/15, 2:39 PM|
|Seen: 1108 times|
|Last updated: 7/4/16, 11:32 AM|