- This topic has 3 replies, 2 voices, and was last updated 4 years, 2 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The topic ‘Remove google-fonts’ is closed to new replies.
Home › Forums › Cordero Pro › Remove google-fonts
Hello!
I included my used google fonts locally (I hope, it is working) and I want to deactivate fonts from googleapis.com in the function.php of my child-theme. How to do that?
Best regards, lisia
Add this php code to your child theme’s functions.php:
function cordero_fonts_url() {
return;
}
function cordero_editor_fonts_url() {
return;
}
The code will make these two functions return nothing, so disabling the Google fonts.
The first function is for the front end of the website, and the second function is for the page/post editor if you also want to remove Google fonts from there.
Thank you, andy. I guess, I have to replace lorina through cordero.
Kind regards, lisia
Oops! Yes, good spot!
I have corrected it now, sorry about that.