Loading...
Navigation überspringen

FAQ

FAQ

Häufig gestellte Fragen

Wie verwende ich Web-Fonts in AMP-Views?

Zunächst müssen Sie die font Library aktivieren. Zusätzlich müssen Sie das HTML-Tag einfügen, um einen Font in den headerDataTypoScript-Knoten aufzunehmen. Fügen Sie einfach dieses TypoScript in Ihre Erweiterungsvorlage auf Ihrer Detailseite ein.

plugin.tx_amp {
  settings {
    amp {
      libraries {
        font = 1
      }
      # Add some header data
      headerData (
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400">
      )
    }
  }
}

Beachtung:

Nicht jedes CDN (Content Delivery Network) darf Web-Fonts in AMP-Pages einbinden. Weitere Informationen finden Sie unter: www.ampproject.org/docs/guides/responsive/custom_fonts

Kontaktanfrage

Du kannst uns jederzeit kontaktieren

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
OP4__________S_______
6_O____S____85____U4O
I5G___QMB____3_______
__1____G_____O____2N6
FW2_________ZT5______