End of Support for Joomla 3 - Forum closed

New Google Font / Neue Google Schriftart

New Google Font / Neue Google Schriftart was created by Sigi-77

Posted 7 years 1 month ago #20151
Hallo!

Ich würde gerne beim IMO-Template eine besondere Google Schriftart verwenden.
Und zwar die Schriftart Fira Sans.

Über die "Web-Entwickler" Funktion von Firefox konnte ich das bereits "simulieren".
Habe alle Fonts-Einträge in der "theme.css" durch Fira Sans ersetzt und zu Beginn @import ' fonts.googleapis.com/css?family=Oswald:300,400 '; durch @import ' fonts.googleapis.com/css?family=Fira+Sans:400,700 '; ersetzt. (diese Info kommt direkt von google fonts)

In der custom.css habe ich die entsprechenden Einträge schon umgeschrieben, aber leider wird zu Beginn immer wieder @import ' fonts.googleapis.com/css?family=Oswald:300,400 '; angezeigt.
Wie kann ich das ändern?
Was muss ich in der custom.css eingeben dass automatisch diese "Fira Sans" Schriftart "importiert" und verwendet wird?
Laut Google Fonts muss dieser code ja im HEAD der Seite eingesetzt werden. Aber wie überschreibe bzw. ergänze ich hier den HEAD mit dieser Code-Zeile?

Vielen Dank
Sigi-77


Attachment 2018_03_20_font_fira_sans_IMO.PNG not found

by Sigi-77

Attachments:

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic New Google Font / Neue Google Schriftart

Posted 7 years 1 month ago #20158
~~Hallo,
die theme.css wird vom Customizer erzeugt und sollte nicht editiert werden.
Wenn sie im Customizer alle Fonts auf "Arial" setzen wird diese Zeile gelöscht.
Wenn sie eine neue Schrift über @import laden, müssen sie diese auch der CSS Klasse zuordnen.
1.) Laden der Schrift in die css/custom.css
@import 'fonts.googleapis.com/css?family=Fira+Sans:400,700';

2.) Nun die Schrift der Klasse zuordnen, als Beispiel für alle im HTML Bereich
html {font-family: 'Fire Sans' !important}
Last Edit:7 years 1 month ago by joomlaplates
Last edit: 7 years 1 month ago by joomlaplates.

Please Log in or Create an account to join the conversation.

Replied by Sigi-77 on topic New Google Font / Neue Google Schriftart

Posted 7 years 1 month ago #20162
Hallo!

Vielen Dank für die Rückmeldung.

Obwohl ich die css-Regel !important angefügt habe, werden einige Schriften (z.B. h1, h2, usw.) noch nicht mit der entsprechenden Schriftart angezeigt.
Die !important-Regel sollte ja eigentlich alle Einträge überschreiben, oder?

Gibt es hier doch noch irgendwelche css-Regeln die durch die custom.css nicht überschrieben werden?
Oder habe ich noch irgendwo einen Fehler in der custom.css?

Attachment 2018_03_21_css_font_fira_sans_IMO.PNG not found




VG
Sigi-77
by Sigi-77

Attachments:

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic New Google Font / Neue Google Schriftart

Posted 7 years 1 month ago #20164
Hallo, ihre css/custom.css sollte wie folgt aussehen

@import url(' fonts.googleapis.com/css?family=Fira+Sans ');

html, h1, h2, h6 {
font-family: 'Fira Sans' !important;
}

Please Log in or Create an account to join the conversation.

Replied by Sigi-77 on topic New Google Font / Neue Google Schriftart

Posted 7 years 1 month ago #20176
Vielen Dank!
Ich glaube ich hab es jetzt richtig umgesetzt!
by Sigi-77

Please Log in or Create an account to join the conversation.

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 © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License