Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

How to Add Custom Fonts to a WordPress Theme

function my_custom_fonts() { 
    wp_enqueue_style( 'my-custom-fonts', get_template_directory_uri() . '/assets/fonts/open-sans/open-sans.css', false );
}
add_action( 'wp_enqueue_scripts', 'my_custom_fonts' );
Source by pressidium.com #
 
PREVIOUS NEXT
Tagged: #How #Add #Custom #Fonts #WordPress #Theme
ADD COMMENT
Topic
Name
2+6 =