Hi, our client wants to add an Adobe font to our Enfold theme. I tried linking it with a plugin with no success. We do not have a physical copy of the font, just the project ID from the Adobe Font Manager. Is this possible?
Hey bbertuzzi7,
Thank you for the inquiry.
According to the documentation, the fonts can be loaded from https://use.typekit.net site and the embed code is available on the Web Projects page. Please check the documentation below.
// https://helpx.adobe.com/fonts/using/embed-codes.html
After obtaining the embed code, try to add it inside the head tag of your WordPress site using the wp_head hook.
// https://developer.wordpress.org/reference/functions/wp_head/
Example:
add_action('wp_head', function() {
echo ' <link rel="stylesheet" href="https://use.typekit.net/xxxxxxx.css">';
}, 10);
You can also try the wp_enqueue_style function.
// https://developer.wordpress.org/reference/functions/wp_enqueue_style/
Best regards,
Ismael