Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet

Hello, I need to change the font on the website.

I added to my homemade theme module a font.css file with this code:

@font-face {
 font-family: bellota_regular;
 src: url('/theme_precious/static/src/css/bellota_font/fonts/BellotaRegular.eot');
 src: url('/theme_precious/static/src/css/fonts/bellota_font/BellotaRegular.eot') format('embedded-opentype'),
 url('/theme_precious/static/src/css/fonts/bellota_font/BellotaRegular.woff2') format('woff2'),
 url('/theme_precious/static/src/css/fonts/bellota_font/BellotaRegular.woff') format('woff'),
 url('/theme_precious/static/src/css/fonts/bellota_font/BellotaRegular.ttf') format('truetype'),
 url('/theme_precious/static/src/css/fonts/bellota_font/BellotaRegular.svg#BellotaRegular') format('svg');
}


Then in my stile.css I simply called a

body{
font-family:bellota_regular;
}



Files and stuff are all in their correct place. The font.css is imported into the assets.xml file. Howewer the font does not change.

Any help? Thank you!

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Juni 23
1675
0
Sept. 21
3215
2
März 15
4504
1
März 15
3962
1
Aug. 23
4612