End of Support for Joomla 3 - Forum closed

Google Fonts lokal einbinden

  • ofv1907
  • ofv1907's Avatar Offline Topic Author
  • Gold Boarder
  • Gold Boarder
  • Posts: 280
  • Thank you received: 15

Google Fonts lokal einbinden was created by ofv1907

Posted 5 years 11 months ago #20687
Guten Abend,
folgenden Code verwende ich im Template "Alpha" für die lokale Schriftart-Einbindung ins Template:

/* Schriftart laden */
@font-face {
font-family: "Abel";
src: url('../css/Abel-Regular.ttf');
}

/* Schriftart zuordnen */
html h1, h3 {
font-family: 'Abel', Helvetica, Arial, sans-serif !important;
}

Im "Alpha" funktioniert es, so dass vom Google-Server nichts geladen wird. Im Template "Personal" wird die Schriftart weiterhin von Google bezogen (--> www.offenburgerfv.de ).

Wo kann der fehler liegen? Vielen Dank.
Last Edit:5 years 11 months ago by ofv1907
Last edit: 5 years 11 months ago by ofv1907.
The topic has been locked.

Replied by joomlaplates on topic Google Fonts lokal einbinden

Posted 5 years 11 months ago #20688
Das kann ich ihnen leider auch nicht sagen.
Ich tippe mal, dass der Pfad nicht stimmt.
Ausserdem wird beim Personal Theme eiegtnlich keine Schrift von Google geladen. Alle Schriften sind lokal...
The topic has been locked.
  • ofv1907
  • ofv1907's Avatar Offline Topic Author
  • Gold Boarder
  • Gold Boarder
  • Posts: 280
  • Thank you received: 15

Replied by ofv1907 on topic Google Fonts lokal einbinden

Posted 5 years 11 months ago #20689
Der Pfad ist aber --> offenburgerfv.de/templates/jp-personal/css/Abel-Regular.ttf .

Oder ist der Code falsch?

/* Schriftart laden */
@font-face {
font-family: "Abel";
src: url('../css/Abel-Regular.ttf');
}
Last Edit:5 years 11 months ago by ofv1907
Last edit: 5 years 11 months ago by ofv1907.
The topic has been locked.

Replied by joomlaplates on topic Google Fonts lokal einbinden

Posted 5 years 11 months ago #20691
Es kommt darauf an von wo die css geladen wird, da der Pfad relativ ist

/* Schriftart laden */
@font-face {
font-family: "Abel";
src: url('../../css/Abel-Regular.ttf');
}

The topic has been locked.
  • ofv1907
  • ofv1907's Avatar Offline Topic Author
  • Gold Boarder
  • Gold Boarder
  • Posts: 280
  • Thank you received: 15

Replied by ofv1907 on topic Google Fonts lokal einbinden

Posted 5 years 11 months ago #20701
Im CSS-Ordner den Template "Personal". Im "Alpha" klappt es und die Schriftart wird aus dem Ordner bezogen.
by ofv1907
The topic has been locked.
  • ofv1907
  • ofv1907's Avatar Offline Topic Author
  • Gold Boarder
  • Gold Boarder
  • Posts: 280
  • Thank you received: 15

Replied by ofv1907 on topic Google Fonts lokal einbinden

Posted 5 years 11 months ago #20710
Was ist falsch? Ich verstehe nicht ganz wo das Problem liegen soll?
by ofv1907
The topic has been locked.
Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2022 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License