This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Vantage Premium – Google Fonts in customizer compromise SSL

11 years ago · Last reply by Andrew Misplon 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Andrew Misplon Staff 11 years, 5 months ago

    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. Spazmic 10 years, 8 months ago

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

    Thanks

    • Spazmic 10 years, 8 months ago

      *this isn’t

      • Andrew Misplon Staff 10 years, 8 months ago

        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.

Have a different question or issue?

Start New Thread