Skip to Content

Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
39 Views

The Odoo website module uses several Google fonts, hosted by Google servers. Is there a way to override this and host the fonts locally?

Avatar
Discard

A quick and dirty fix:

Comment out in /addons/website/static/src/scss/website.scss:

$-seen-urls: ();

@each $alias, $key in $o-font-aliases-to-keys {

$-url: o-get-font-info($alias, 'url');

@if $-url and index($-seen-urls, $-url) == null {

$-seen-urls: append($-seen-urls, $-url);

// @import url("https://fonts.googleapis.com/css?family=#{unquote($-url)}&display=swap");

}

}

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!