How can I change the link color of the Website?
I try to search this:
web/css/website.assets_frontend/19448cb
but I only found this:
/web/static/lib/bootstrap/css/bootstrap.css
When I change the bootstrap.css a{} color, nothing happends
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can I change the link color of the Website?
I try to search this:
web/css/website.assets_frontend/19448cb
but I only found this:
/web/static/lib/bootstrap/css/bootstrap.css
When I change the bootstrap.css a{} color, nothing happends
too much specific question on quite wider subject... but, here is answer:
option 1: Change theme in odoo website to one of existing (go to: "Customize/Change Theme" from website), or create/add your own theme...
option 2: through custom module (say named as my_module):
__openerp__.py:
...
'depends': ['website'],
'data':['my_module_view.xml'],
...
my_module_view.xml:
<openerp>
<data>
<template id="assets_frontend" name="my_module assets" inherit_id="website.assets_frontend" >
<xpath expr="." position="inside">
<link rel='stylesheet' href="/my_module/static/src/css/style.css"/>
</xpath>
</template>
</data>
</openerp>
static/src/css/style.css:
a {
color: #CA4040;
text-decoration: none;
}
option 3: it may work to change "/web/static/lib/bootstrap/css/bootstrap.css" or "/website/static/src/css/website.css" or whatever is original location of a {} style in base code, but that's not a recommended way, as any further update of web/website modules will discard your changes...
I suggest you to stick with first, or second option.
Stephane,
If you are having an anchor tag <a>, then you can use normal HTML tag only to add color like:
<a style="color:red;">YOUR TEXT</a>
Hope it help!!
I need to change the global a{} and not only for 1 html link.
so you can create your own custom module and add a new css file
and in that file add a new class
a{
color:red;
}
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Jun 15
|
19470 | ||
|
1
Apr 20
|
8669 | ||
|
0
Apr 22
|
3139 | ||
|
0
Mar 15
|
3157 | ||
|
1
Jul 24
|
426 |