| 
 | ||||||||||
|  | Shopping cart software Solutions for online shops and malls | |||||||||
|  |  |  | ||||||||
| X-Cart Home |  FAQ |  Forum rules |  Calendar |  Mark Forums Read |  User manuals |  Login | 
|  | 
| Is it possible to include a doctype??? | |||
|  |  | ||
|  | Thread Tools | Search this Thread | 
| 
			 
			#1  
			
			
			
			
		 | |||||||
| 
 | |||||||
|  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] 
				__________________ x-cart 4.0.5 (live and heavily modded) Server: freebsd | |||||||
| 
			 
			#2  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   Yes. Add the doctype to home.tpl. Make sure it is just before the <html> and not in the code before the html opener. | |||||||
| 
			 
			#3  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   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 
				__________________ x-cart 4.0.5 (live and heavily modded) Server: freebsd | |||||||
| 
			 
			#4  
			
			
			
			
		 | |||||||
| 
 | |||||||
|   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  | |||||||
|  |  | 
| Thread Tools | Search this Thread | 
| 
 | 
 | 
|  | |||
| 
X-Cart forums © 2001-2020
 | |||