X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Is it possible to include a doctype??? (https://forum.x-cart.com/showthread.php?t=20464)

cotc2001 03-12-2006 10:27 AM

Is it possible to include a doctype???
 
Pulling my hair out on this one.

Been running my site through a validator just to check if there are an non closed tags etc. and of course on of the first errors that comes up is that there isn't a doctype

I've added

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

to home.tpl but even after adding it if i check the page source or run it through a validator its not even included.

Am i going made or does it get stripped out?[/quote]

Light Speed 03-13-2006 09:59 PM

Yes.

Add the doctype to home.tpl.

Make sure it is just before the <html> and not in the code before the html opener.

cotc2001 03-13-2006 10:11 PM

Yeah i got it in now - not sure why it was disappearing before but it went in ok this time.

It did screw up the random review mod on the front page in IE (fine in firefox) so i've had to take it out for the moment until i figure out the problem

Light Speed 03-13-2006 10:17 PM

You might want to try this doctype instead:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

xhtml doctype is pushing it for most of xcarts code ;)


All times are GMT -8. The time now is 01:19 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.