Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Is it possible to include a doctype???

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-12-2006, 10:27 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default 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
Reply With Quote
  #2  
Old 03-13-2006, 09:59 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

Yes.

Add the doctype to home.tpl.

Make sure it is just before the <html> and not in the code before the html opener.
Reply With Quote
  #3  
Old 03-13-2006, 10:11 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

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
Reply With Quote
  #4  
Old 03-13-2006, 10:17 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:18 PM.

   

 
X-Cart forums © 2001-2020