Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

How to add google fonts into word press ?

how to add google fonts into word press theme development? using functions.php page

3 Answers

ya thank you , see this code also , by using wp_enqueue_style() function we can also assign Google Fonts after my search i found this answer ,and its working !

function child_scripts() { wp_enqueue_style('child-google-fonts','//fonts.googleapis.com/css?family=Roboto+Slab:700| Alegreya:400italic,700italic,400,700'); } add_action( 'wp_enqueue_scripts','child_scripts' );

Thando Mantsha, Thank you