Home>Support>Vantage Premium – Google Fonts in customizer compromise SSL

Vantage Premium – Google Fonts in customizer compromise SSL

I have the Vantage Premium theme running on my website: http://www.easybotics.com/

I had to edit the file “Vantage>Premium>Extras>Customizer>customizer.php” to change the line that actually imports fonts to this: $return .= ‘@import url(//fonts.googleapis.com/css?family=’ . implode( ‘|’, $import ) .

which just removes the http: part and allows the site the choose https or http..

This is an important bug to fix when running a webstore where you must have SSL on the checkout page. – The browser will say there are unsecure elements on the page from the http link to fonts.

I am just hoping this can be put in the next update..

URL: http://www.easybotics.com/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Hi hilo90mhz

    Thanks for your feedback.

    Our recommended hotfix here is:

    Line 92 of premium/customizer/customizer.php change to:

    $return .= '@import url(http' . ( is_ssl() ? 's' : '' ) . '://fonts.googleapis.com/css?family=' . implode( '|', $import ) . '); ';
    

    We’ll include this fix in the next update to Vantage.

  2. 9 years, 4 months ago Spazmic

    I still have this problem with vantage premium 2.4.2… So did wasn’t fixed right?

    Thanks

    • 9 years, 4 months ago Spazmic

      *this isn’t

      • 9 years, 4 months ago Andrew Misplon
        Hi, I Work Here

        Hi Spazmic

        The issue should be resolved. No protocol is being added to Google font links. For example:

        //fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.2.2
        

        Do you perhaps have a URL we could check out?

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More