Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Addon Payment Modules / added Google Acceptance logo -- busted site validation

added Google Acceptance logo -- busted site validation

Locked

Started by willalbro on 30 Sep 2006, 2:34 AM · Views: 2,054

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 Sep 2006, 2:34 AM
#1
willalbro avatar

willalbro

New Zenner

Join Date:
Jan 2006
Posts:
22
Plugin Contributions:
0

added Google Acceptance logo -- busted site validation

Hi!

I added a Google Acceptance logo found here:

https://checkout.google.com/seller/acceptance_logos.html

The only problem when I add the following code to show in a sidebox my website doesnt validate anymore. Here's the code:

<link rel="stylesheet" href="https://checkout.google.com/seller/accept/s.css" type="text/css" media="screen" />
<script type="text/javascript" src="https://checkout.google.com/seller/accept/j.js"></script>
<script type="text/javascript">showMark(2);</script>
<noscript><img src="https://checkout.google.com/seller/accept/images/ht.gif" width="182" height="44" alt="Google Checkout Acceptance Mark" /></noscript>

Here's the failed validation error:

Line 68 column 110: document type does not allow element "link" here.
...out.google.com/seller/accept/s.css" />

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

I konw the problem is with this line: <link rel="stylesheet" href="https://checkout.google.com/seller/accept/s.css"

But I dont know how to fix it. Can someone please point me in the right direction. I have spent hour searching and am at a dead end.

Thanks,

Will
https://www.brooksestore.com

1 Oct 2006, 3:58 PM
#2
willalbro avatar

willalbro

New Zenner

Join Date:
Jan 2006
Posts:
22
Plugin Contributions:
0

Re: added Google Acceptance logo -- busted site validation

hello? ... :-D

1 Oct 2006, 6:15 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: added Google Acceptance logo -- busted site validation

You have to link stylesheets in the <HEAD> section. Linking them elsewhere is contrary to XHTML specs.

You could create an override file for html_header.php and add the stylesheet link there.

Moving this part of your discussion to a separate thread since it's not directly related to the checkout module.

.
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.

1 Oct 2006, 9:11 PM
#4
willalbro avatar

willalbro

New Zenner

Join Date:
Jan 2006
Posts:
22
Plugin Contributions:
0

Re: added Google Acceptance logo -- busted site validation

Awesome! Im gonna go do that now and next time I will start a new thread so I dont hijack another topic. Thanks for the help ... I will post the results.

Will

https://www.brooksestore.com

1 Oct 2006, 9:37 PM
#5
willalbro avatar

willalbro

New Zenner

Join Date:
Jan 2006
Posts:
22
Plugin Contributions:
0

Re: added Google Acceptance logo -- busted site validation

Dr. Byte...I can't thank you enough!! That worked like a charm. Thanks for the help and for making my Zen Cart experience pleasurable.

Thanks again!

Will
https://www.brooksestore.com