Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1850 Vistas

Hello,

I would like to use a personal icon on my website.

I can only add image that disable the "icon" option.

If someone know how to do that ?

Thanks

Avatar
Descartar
Autor Mejor respuesta

Thank you, but it's not the fav-icon.

For example there are some oddo' blocks with social media icon, I would like to use a personal icon instead one of it.

Avatar
Descartar

the code that represents the icon in Odoo V17 for Facebook is <a t-att-href="social_links.get('social_facebook')" aria-label="Facebook" title="Facebook">
<span class="fa fa-facebook"></span>
Replace this with an <img> tag pointing to your custom icon, like this <img src="/path/to/your/icon.png" alt="Custom Icon" style="width: 32px; height: 32px;">.

Autor

Thank you but it still doesn't work.
It's only put my image as normal.
But I tinker something that is not exactly that i want.
i wrote this
<a href="https://www.thewebsite" target="_blank" aria-label="website">
<img src="/path/to/theimage.png" alt="Custom Icon" style="height: 3rem; padding: 1.1rem 0.85rem; class="rounded img-thumbnail"/>
</a>
The original <i class="fa fa-instagram rounded shadow-sm o_editable_media"/> make the icon in a white rounded square and i can edit it in the builder.
it's like i have an "icon class" but with your technic it's like an "image class"
I can't change color or have a perfect square for the background. Neither have a hover on it.

Mejor respuesta

Log in to your Odoo instance as an admin user.

Navigate to the Website module.

Enable Developer Mode.

Navigate to Website > Configuration > Settings.

Look for the section labeled "Favicon" or "Website Icon".

Upload Your Custom Icon.


If you’re comfortable with coding or have a developer, you can add custom code to change the favicon.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 22
2688
1
ago 24
1480
13
mar 16
5098
1
sept 15
5774
1
sept 24
2005