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.
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
Hi Farid,
Will you please contact our technical team from here- https://ampforwp.com/support/ they will help you as soon as possible.
not working
Hi vahidgoudini,
Will you please elaborate more about your issue so that we will understand and help you.
hi, I’m trying to get adobe fonts to work, is it possible?
Hi Rosa,
Will you please contact our technical team from here- https://ampforwp.com/support/ they will help you as soon as possible.