Clicky

AMP font

This article is for AMP Theme Framework users.

About this Component

Font Component is used to load the custom fonts or Google Fonts in your AMP theme.

How to use:

Following are the steps to use this component.

Step 1:
To add the component in your theme just add the following code to the functions.php of the theme files.

//Search
amp_font('YOUR_FONT_URL');

This was the back-end functionality part so whenever we need to add external fonts just call function with URL, to make it appear in the front-end.

That’s it for this tutorial!

We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.

Ask your Questions Directly!
If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!
Updated on May 7, 2020

    Are you still looking for a solution?

    Then fill out the below form and we will reach out to you within a few hours.

    Was this article helpful?

    Related Articles

    Comments

    1. Hello there. I want to upload my own custom font here. but don’t know which font should I address: .woff? .eot? or else. could you please specifically write down the code and how to address the font?

      thanks

      1. Hi vahidgoudini,

        Will you please elaborate more about your issue so that we will understand and help you.

    2. hi, I’m trying to get adobe fonts to work, is it possible?

    Leave a Comment