Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1305893

    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?

    #1306051

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.