/ Documentation /Developers/How to Add a New Google Font?

How to Add a New Google Font?


The cp_add_google_fonts filter allows adding Google font to existing Google font list.


// Filter callback function
function example_callback( $fonts ) {
   // update fonts here 

    return $fonts;
add_filter( 'cp_add_google_fonts', 'example_callback', 10 );


    (array) array of existing fonts 


 * Add Google Font "Mogra" to existing font list
 * @param array $fonts 
 * @return array 
function google_font_callback( $fonts ) {
    // Here Mogra is font family and 400 is font weight
    $fonts["Mogra"] = array(

    return $fonts;
add_filter( 'cp_add_google_fonts', 'google_font_callback', 10 );  

Note: Make sure font family and weight are correct to apply font.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Compare Convert Pro with...

Scroll to Top