Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
3865 Widoki

How I fix my website(Construction website) font style to Roboto to Popins?

Awatar
Odrzuć
Najlepsza odpowiedź

you need to update the CSS styles in your Odoo theme. Here's how you can do it:

  1. Identify the CSS class or selector that applies the font style to the website elements. This can vary depending on the specific theme and template you are using. Look for classes like body, h1, h2, p, or any other element selectors that define the font style.

  2. Locate the CSS file where the font styles are defined. This can be in your custom theme or in the Odoo default theme. You can use your browser's developer tools to inspect the HTML elements and find the associated CSS file.

  3. Open the CSS file and search for occurrences of font-family: 'Roboto', sans-serif;. Replace 'Roboto' with 'Poppins', sans-serif;.

  4. Save the CSS file with the updated font styles.

  5. If you are using a custom theme, make sure to upload the modified CSS file to your theme's assets folder.

  6. If you are using the Odoo default theme, you can create a custom theme module to override the CSS file. Place the modified CSS file in the static/src/css directory of your custom theme module.

  7. Restart your Odoo server and clear your browser's cache.


Awatar
Odrzuć
Najlepsza odpowiedź

Hi 

Enable the debug mode. Go to Edit > Theme > Font Family > Add Google font. In that Popup, you can add the URL for the font Poppins then save and reload the font it will apply to the website 

Hope this Helps


Regards

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

You can load new fonts in two ways, one by using the google fonts link and the next by downloading it and adding them locally.
https://www.cybrosys.com/blog/how-to-add-new-fonts-to-the-odoo-15-website

Please refer to the above mentioned blog. Even though it says version 15, 16 follows the same steps. 

Hope it helps

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 25
420
1
cze 25
1044
0
maj 25
1163
2
kwi 25
3153
1
lut 25
1366