Skip to Content
Menú
This question has been flagged
2 Respostes
3146 Vistes

I'm trying to create a new theme for Odoo 16.  I'm having an issue trying to get a custom gradient to stick in the header.


Anyone know the code to do such a thing?  Also is there any in depth documentation on theming Odoo 16?


Thank you,

Anthony Taylor

Avatar
Descartar
Best Answer

Hi,

You can check the documentation by odoo on how to develop themes in odoo 16.

The link is given below. 

https://www.odoo.com/documentation/16.0/developer/howtos/themes.html

To add a gradient to the header, you can add the css by calling the navbar inside the header tag.

eg:

header nav.navbar {
background: linear-gradient(red, orange);
}

Regards

Avatar
Descartar
Autor

Using this approach 'hard codes' the color into the header. I was wanting to program the customizer to have my header color, yet still be useful.

I'm looking for something more 'in-depth' then the standard documentation which starts off with: "This tutorial is outdated and won’t work out of the box."

Related Posts Respostes Vistes Activitat
2
de febr. 25
1920
1
de maig 23
1708
1
de set. 23
3026
1
d’abr. 23
6181
1
de des. 22
3229