Home Forums Cordero Pro Remove google-fonts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12242
    lisia
    Participant

    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

    #12244
    Andy
    Keymaster

    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.

    • This reply was modified 3 years, 7 months ago by Andy. Reason: typo corrected
    #12245
    lisia
    Participant

    Thank you, andy. I guess, I have to replace lorina through cordero.

    Kind regards, lisia

    #12247
    Andy
    Keymaster

    Oops! Yes, good spot!

    I have corrected it now, sorry about that.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove google-fonts’ is closed to new replies.