Add New Google Fonts To The Typography Font List

This is a Developer Level doc.

If you're unfamiliar with PHP and/or editing files, codes and templates, as well as with resolving possible conflict, please seek help from a professional. Under our Support Policy, we don't provide support for modifications and customization.

The theme doesn't include every single Google font that exists because we don't update it dynamically. The reason behind this decision is to keep your site fast and prevent it from having to connect to the Google API. You can add new Google fonts by using the following PHP snippet:

function my_new_fonts( $array ) {
    $array[] = 'Poppins';
    return $array;
add_filter( 'ocean_google_fonts_array', 'my_new_fonts' );

Alter the $array[] value per your need.

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.