Okay
  Public Ticket #3687341
How to Avoid Google Fonts?
Closed

Comments

  • W W started the conversation

    Hello! I am revamping our Privacy Policy, and I noticed that this plugin appears to require calls to Google Fonts. I would like to remove this dependency, as we do not use any other Google products on our website, for both privacy and speed reasons.

    It appears that the calls to Google Fonts are hard-coded in public/class-sonaar-music-public.php, for example starting at line 130:

    $data .= ( isset($font['font-family']) && $font['font-family'] != NULL && !strpos($font['font-family'], '_safe_') )?'@import url(//fonts.googleapis.com/css?family='. $font['font-family'] .');':'';
    $data .= ( isset($fontTitle['font-family']) && $fontTitle['font-family'] != NULL && !strpos($fontTitle['font-family'], '_safe_') )?'@import url(//fonts.googleapis.com/css?family='. $fontTitle['font-family'] .');':'';
    $data .= ( isset($fontdate['font-family']) && $fontdate['font-family'] != NULL && !strpos($fontdate['font-family'], '_safe_') )?'@import url(//fonts.googleapis.com/css?family='. $fontdate['font-family'] .');':'';
    I already have a custom plugin for our site, so is there any way I could use a hook or other mechanism to prevent these calls to Google Fonts? Then I can simply add local copies of my chosen fonts to my theme, and avoid these calls out to Google.

    If it's not currently possible, would it be possible to add an option like "Use theme fonts only" or similar? Or maybe just a hook or other mechanism that allows this call to be avoided with custom code?

    Thank you!

  •  667
    Alexandre replied

    Hi, 
    Go to wp-admin>mp3 player>settings>widget player
    And reset all typography settings.
    Go to wp-admin>mp3 player>settings>sticky player
    And do the same

    Thanks,


    Alexandre from the Sonaar.io Crew

  • W W replied

    Thanks, Alexandre! I did try doing this, and it seems to have worked.

    Excellent!

  •  667
    Alexandre replied

    You are welcome

    Thanks,


    Alexandre from the Sonaar.io Crew