My client has a subscription for typography.com cloud-based fonts and the generated code is supposed to be placed in within the <head> tag. Which file/files should I add it to?
Hey nobletx,
Thank you for the inquiry.
You can use this function to register the stylesheet or css file.
// https://developer.wordpress.org/reference/functions/wp_enqueue_style/
Example:
/**
/* adds stylesheet file to the end of the queue */
function wpdocs_override_stylesheets()
{
$dir = plugin_dir_url(__FILE__);
wp_enqueue_style('theme-override', $dir . '/theme-overrides.css', array(), '0.1.0', 'all');
}
add_action('wp_enqueue_scripts', 'wpdocs_override_stylesheets', PHP_INT_MAX);
Best regards,
Ismael