wordpress custom font

PHOTO EMBED

Mon Jul 24 2023 19:05:27 GMT+0000 (Coordinated Universal Time)

Saved by @benjaminb #php

/**
 * Custom Fonts
 */

 function enqueue_custom_fonts() {
if(!is_admin()) {
wp_register_style('source_sans_pro','https://fonts.googleapis.com/css2?family=Indie+Flower&family=Montserrat:wght@900&family=Roboto:ital,wght@0,400;0,700;1,300;1,400&display=swap' );
wp_register_style('nunito','https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap' );
wp_enqueue_style('source_sans_pro' );
wp_enqueue_style('nunito' );
};
};

add_action('wp_enqueue_scripts','enqueue_custom_fonts');
content_copyCOPY

https://youtu.be/8uYSLxJbPEY?t=1436