Solved Templates

Non custom font in error page

Asked by Chotika Mahatkomol 4 years ago Last activity 4 years ago

I use the language school template and the text in 404 page was non-customizable (the same problem as the log in button I previously posted.).
I would like font k2d at the text 'component not found' and 'home' button please.

http://physiology2.md.chula.ac.th/index.php?Itemid=404

Thanks

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
4 years ago · edited

Hi Chotika,

in custom.css file add/set K2D font for those classes, example CSS code:

  @import url('https://fonts.googleapis.com/css2?family=K2D:wght@500;600;700;800&display=swap');
.error-page .error-message h1, 
.error-page .error-message h2, html.error-page a.btn 
{ font-family: 'K2D', sans-serif !important; }

2 more replies

Chotika Mahatkomol Asked this

the code works after I remove 'html' wording.
Thanks

Paul Frankowski Senior Staff

Indeed. I had to copy without dot.

Log in to reply.