[Resolved] webfont usage in Puro Premium

This topic contains 16 replies, has 2 voices, and was last updated by  Andrew Misplon 3 months, 3 weeks ago.

  • Author
    Posts
  • #10209

    shreddie
    Participant

    OK, thanks for the extra instruction.

    I added my copperplatewebfont.css file to the /wp-content/themes/puro-child/ directory.

    and then edited the functions.php, adding:

    /**
     * Enqueue custom styles.
     */
    function puro_child_enqueue_custom_styles() {
    	wp_enqueue_style( 'web-font', get_stylesheet_directory_uri() . '/copperplatewebfont.css' );
    }
    add_action( 'wp_enqueue_scripts', 'puro_child_enqueue_custom_styles', 8 );

    But it was not working – the font was not loading.

    I Inspected the element, and my console had these errors:

    copperplatewebfont.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
    copperplategothicstd-33bc-webfont.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
    copperplategothicstd-33bc-webfont.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
    copperplatewebfont.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)

    I installed the font files into the /wp-content/themes/puro-child/ directory, and it is now working!

    Thanks for all of your help!!

    #10210

    Andrew Misplon
    Keymaster

    Awesome 🙂 Nicely done!

Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in to reply to this topic.

Scroll to top