Skip to content

Instantly share code, notes, and snippets.

@farookibrahim
Created June 15, 2020 16:18
Show Gist options
  • Select an option

  • Save farookibrahim/e1f59891e0a56c371df08919ef2f7594 to your computer and use it in GitHub Desktop.

Select an option

Save farookibrahim/e1f59891e0a56c371df08919ef2f7594 to your computer and use it in GitHub Desktop.
Cartzilla - Add custom Google Font
if( ! function_exists( 'cz_child_custom_google_font_families_roboto' ) ) {
function cz_child_custom_google_font_families_roboto( $fonts ) {
$fonts['roboto'] = 'Roboto:100,300,400,500,700,900';
return $fonts;
}
}
add_filter( 'cartzilla_google_font_families', 'cz_child_custom_google_font_families_roboto', 20 );
body,
.tooltip,
.popover,
.a2a_count,
.a2a_full_services .a2a_i,
.a2a_menu a,
.single-post .sharedaddy .sd-social-icon-text .share-btn span {
font-family: 'Roboto', sans-serif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment