SSL Google font api

Support Area Forums Foundation SSL Google font api

Viewing 5 posts - 1 through 5 (of 5 total)
URL to the page in question: https://www.clevelandvets.org
  • Author
    Posts
  • #38448
    Chris Jones
    Participant

    Hi Bill, I’m getting a mixed content warning with the google font api in Foundation.

    Ideas?

    Thanks

    #38450
    Chris Jones
    Participant

    Same thing happening with the MailChimp widget form.

    #38451
    Bill Robbins
    Moderator

    Hi Chris,

    You can make a change to load the fonts over https. Go to the Appearance section in your WordPress dashboard and click on edit. From the list of files on your right, choose fonts.php. Scroll down near the bottom and you’ll see a line like this:

    
    wp_enqueue_style( "options_typography_$font", "http://fonts.googleapis.com/css?family=$font", false, null, 'all' );
    
    

    Change the http:// there to https:// or you can take out the http: altogether and just leave // which will load the files with either protocol.

    Let me know if you run into any trouble there.

    Bill

    #38452
    Chris Jones
    Participant

    Worked great thanks.

    I assume the mailchimp widget is similar problem, can’t see to find it in the theme files.

    #38453
    Chris Jones
    Participant

    Found it in the mailchimp php file

    <form id="signup" action="<?php echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>" method="post">

    Changed to https and all mixed content is gone.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘SSL Google font api’ is closed to new replies.