Skip to content

Instantly share code, notes, and snippets.

@mmh4560
Last active January 5, 2021 02:57
Show Gist options
  • Save mmh4560/75dd193de5a94b4f6627c3b6f33be587 to your computer and use it in GitHub Desktop.
Save mmh4560/75dd193de5a94b4f6627c3b6f33be587 to your computer and use it in GitHub Desktop.
Register Custom Fonts WordPress
/* At first Upload your desire fonts the try it */
@font-face {
font-family: "Arvo";
src: url(http://www.example.com/wp-content/themes/your-theme/fonts/Arvo-Regular.ttf);
font-weight: normal;
}
/* Now you can use it in for your Html code something like this*/
.h1 site-title {
font-family: "Arvo", Arial, sans-serif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment