Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
11072 Ansichten

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 ?

 

Avatar
Verwerfen

try to post it like this -> https://bbbootstrap.com

Beste Antwort

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">

<script type="text/javascript" src="/theme_vish/static/src/js/jquery.cycle2.min.js" />

<script type="text/javascript" src="/theme_vish/static/src/js/slideshow.js" />

<script type="text/javascript" src="/theme_vish/static/src/js/backtotop.js" />

</xpath>

</template>


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"/>

</xpath>

</template>


Hopefully, this will help you.

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
März 23
2208
1
Aug. 21
4160
1
März 20
4182
2
Sept. 17
8972
1
März 17
2693