Skip to Content
Menu
This question has been flagged
2 Replies
1847 Views

Hi,

I want to add a custom Arabic font to my Odoo 17 Website? It is not a Google Font.

I want to add it without going into technical coding as I am not capable of.

Is there any easy way to do without coding?


Thanks.

Avatar
Discard
Best Answer

-        To add a custom font for each language, just do this:

1- Go to the Website tab, then from the menu:

-        Click “site”, then HTML / CSS editor, click “edit anyway” and then choose (SCSS / CSS) from the dropdown menu.

-        In the menu inside SCSS, choose (use_custom_rules) then add the customization for each language

-        Click “save”

-        In order for this to work, you have to load the font at least once from the “edit” website button, by clicking any website section and selecting the “add font” button from the font menu, and then saving.

Avatar
Discard
Best Answer

Hi,

To add a custom Arabic font to your Odoo 17 website, you'll need to follow some technical steps, but it's not overly complex. Here's a simplified guide:


* Place the font file in the static/src/font/ directory.

* Include the file link in the @font-face within a scss file.

* Specify the font family in a stylesheet.

* Connect the stylesheet to the manifest file.

* Choose the font family in the website editor under theme settings.

* Save the changes to observe the updated font.


For more please refer to the following link:

[NOTE: The first portion of the blog is how to add Google fonts. The second portion is the part that you looking for]


https://www.cybrosys.com/blog/how-to-add-custom-fonts-in-odoo-17#:~:text=To%20incorporate%20a%20custom%20font,font%20family%20in%20a%20stylesheet.


Hope it helps

Avatar
Discard
Author

I am using the Enterprise Edition, how to access the static/src/font/ directory?