If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / How do I make a font from Google Web Fonts Secure..?

How do I make a font from Google Web Fonts Secure..?

Started by nolsowski on 29 Jul 2011, 2:15 PM · Views: 10,785

Results 1 to 11 of 11
29 Jul 2011, 2:15 PM
#1
nolsowski avatar

nolsowski

Inactive

Join Date:
Aug 2010
Posts:
324
Plugin Contributions:
0

Post #1 by nolsowski

I have a font from google web fonts on my category headers and I noticed that when I test out my site in IE or Chrome that the font is not secure on my secure pages. It seems to be the only thing on the page that isn't secure.

Is there a way to make it secure?

My site is in my signature.

Thanks!

29 Jul 2011, 3:16 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #2 by clydejones

nolsowski:

I have a font from google web fonts on my category headers and I noticed that when I test out my site in IE or Chrome that the font is not secure on my secure pages. It seems to be the only thing on the page that isn't secure.

Is there a way to make it secure?

My site is in my signature.

Thanks!

I ran into this on one of my clients sites:

simple solution was to change this:

<link href='http://fonts.googleapis.com/css?family=Neucha' rel='stylesheet' type='text/css'>

to this:

<link href='https://fonts.googleapis.com/css?family=Neucha' rel='stylesheet' type='text/css'>

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

29 Jul 2011, 3:49 PM
#3
nolsowski avatar

nolsowski

Inactive

Join Date:
Aug 2010
Posts:
324
Plugin Contributions:
0

Post #3 by nolsowski

:clap: Thanks a bunch!

29 Jul 2011, 5:22 PM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #4 by clydejones

nolsowski:

:clap: Thanks a bunch!

glad to help

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 Dec 2011, 5:19 AM
#5
eclypes2008 avatar

eclypes2008

New Zenner

Join Date:
Oct 2011
Location:
Seattle,WA
Posts:
8
Plugin Contributions:
0

Post #5 by eclypes2008

is there any way you can let me know the location of the font file to change the http properties?
i am running into this as well for this fonts.googleapis.com/css?family=Anton
in http://
i can't seem to locate the file.

16 Dec 2011, 5:34 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Dec 2011, 5:41 AM
#7
eclypes2008 avatar

eclypes2008

New Zenner

Join Date:
Oct 2011
Location:
Seattle,WA
Posts:
8
Plugin Contributions:
0

Post #7 by eclypes2008

No dice still not able to find location of these lines of code,
Total number of items: 86
Number of insecure items: 2
Insecure URL: http://fonts.googleapis.com/css?family=Anton
Found in: https://at-electronics.co/

Insecure URL: http://themes.googleusercontent.com/static/fonts/anton/v2/5t8vP9Hx2udzw372glmOxA.ttf
Found in: http://fonts.googleapis.com/css?family=Anton
i need to change them to https and i just can't seeem to locate them i have looked through css? any idea...thank you for the links i have done that step I am secure all over the web except for google chrome witcch states i must resolve this issue.
Thank you for the reply.

16 Dec 2011, 5:44 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #8 by drbyte

Those links show you how to look for stuff inside your Zen Cart files. Perhaps if you shorten your search to "Anton" or to "googleapis" you might find more success in your search.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Dec 2011, 5:46 AM
#9
eclypes2008 avatar

eclypes2008

New Zenner

Join Date:
Oct 2011
Location:
Seattle,WA
Posts:
8
Plugin Contributions:
0

Post #9 by eclypes2008

ok i seemed to finally learn how to use the search bar in zen cart....lol to be in school again so much fun..>:)
Thank you for the help:clap:

3 Dec 2012, 10:26 AM
#10
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Post #10 by swamyg1

clydejones:

I ran into this on one of my clients sites:

simple solution was to change this:

<link href='http://fonts.googleapis.com/css?family=Neucha' rel='stylesheet' type='text/css'> ``` > > to this: > > ``` <link href='https://fonts.googleapis.com/css?family=Neucha' rel='stylesheet' type='text/css'> ```

I've tried this but it's still not having an effect, Google fonts aren't working on secure pages. Any idea?

6 Dec 2012, 4:47 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #11 by drbyte

Another little-known trick with google's CDN URLs is this:

Just leave out the "http:" or "https:"
ie: http://fonts.googleapis.com/blahblah would become: //fonts.googleapis.com/blahblah

It'll automatically pick up whichever protocol is in use on the current page.

(caveat: I've not tested this extensively, but have seen it used a few times and it worked fantastically)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.