PDA

View Full Version : Fixing validity errors Zencart


dbloom3
1-3-06, 12:38 PM
I am using Zencart, and when I run the markup validator I get several errors.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.travelingtoddler.com%2F &charset=%28detect+automatically%29&doctype=Inline&verbose=1

I want to fix these errors, but don't know where to start. When I view the source code for the index pagen I can find the errors there, but don't know where to find the errors in the PHP files.

Also, when my site appears on a search engine it displays the tag line, but then includes the keywords after that. I have been advised (here) to delete the metatags, but then what will the search engines display? Where do I put the description?

Thanks

stevel
1-3-06, 02:28 PM
You're trying to validate this as XHTML Transitional? That's might ambitious. I'd suggest settling for HTML 4.0 Transitional.

You have to find which piece of PHP code puts out the HTML in question. It may be in various places. You may want to look at http://www.oscommerce.com/community/contributions,2693

dbloom3
1-3-06, 02:40 PM
I get even more errors when validating as HTML 4.01 transitional. The source code says it is XHTML 1.0 transitional. I am mainly concerned because someone had suggested that this might prevent google from indexing my site, something I am still having a problem with. Is this really a problem for google? Can it create other problems.

stevel
1-3-06, 03:52 PM
No, it's not a problem for Google. If you're having trouble getting Google to index your site, it isn't because of invalid HTML.

It's easier to get your site to validate as HTML 4.01 than XHTML. I haven't looked at your code specifically. Anyway, the reference I gave should help.

As for metatags, the Description metatag is worthwhile, keywords are not.