Created
September 13, 2018 17:35
-
-
Save kimcoleman/40a3a6a7671ac1c6859535463a01119e to your computer and use it in GitHub Desktop.
Filter the Google Fonts weights loaded in Memberlite.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Do not copy this tag | |
/** | |
* Filter the Google Font weights loaded in Memberlite (as of version 4.0.1). | |
* | |
* Add this code below to a plugin for theme customizations. | |
*/ | |
function my_memberlite_google_fonts_weights( $font_weights ) { | |
$font_weights = '300,400,700,900'; | |
return $font_weights; | |
} | |
add_filter( 'memberlite_google_fonts_weights', 'my_memberlite_google_fonts_weights' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment