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)
-   -   Where do I put a doctype tag? (https://forum.x-cart.com/showthread.php?t=27704)

thentavius 12-31-2006 01:39 PM

Where do I put a doctype tag?
 
I would like to add the following code to a template which can apply the code to each page (rather like putting it in the <head> tag).

Quote:

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

I tried putting it in the customer/home.tpl, based on what the Webmaster Mode defined as the template that controls the whole page, but I'm not sure if that's the right place for it.

carpeperdiem 12-31-2006 02:16 PM

Re: Where do I put a doctype tag?
 
Wow... it is missing from 4.0.19

Yes, your instincts to put it in /customer/home.tpl are correct.

Here is where it lives in 4.1.x stock configs (in home.tpl):

Code:

{* $Id: home.tpl,v 1.88.2.4 2006/10/13 10:41:21 svowl Exp $ *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<html>
<head>

Right on top, before <html> (where it belongs).

Download a copy of 4.1.5 just to compare.

thentavius 01-01-2007 09:56 AM

Re: Where do I put a doctype tag?
 
Thank you so much! I put it where it belongs. :-)


All times are GMT -8. The time now is 11:03 AM.

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