https and google fonts

Support Area Forums Elite https and google fonts

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question: https://beepou.com
  • Author
    Posts
  • #33130
    Alberto Brusa
    Participant

    Hi Bill,

    Is it possible to use https to load google fonts with Elite?
    It seems that using http for the fonts is causing mixed content errors.

    Best regards,

    #33134
    Bill Robbins
    Moderator

    Hi Alberto,

    You can do that. Here’s how:

    1. Go to the Appearance section in your WordPress dashboard and choose Edit.
    2. From the list of files on your right, choose fonts.php.
    3. Scroll down to the bottom and you’ll see this line:
      
      wp_enqueue_style( "options_typography_$font", "http://fonts.googleapis.com/css?family=$font", false, null, 'all' );
      

      Change it to this:

      
      wp_enqueue_style( "options_typography_$font", "//fonts.googleapis.com/css?family=$font", false, null, 'all' );
      
    4. Save your changes.

    That should do it.

    Have a great week,
    Bill

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