Welcome, Guest
Username: Password: Remember me

TOPIC: How to change template Doctype from xhtml to html5

How to change template Doctype from xhtml to html5 1 year 11 months ago #84500

  • anaxent
  • anaxent's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 2
  • Karma: 0
I noticed that the templates get the doctype html and head tags injected into the themes as
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>

How would I go about over riding that to use html5 doctype
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
The administrator has disabled public write access.

Re: How to change template Doctype from xhtml to html5 1 year 11 months ago #84501

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 6219
  • Thank you received: 791
  • Karma: 238
Hello,

For the no-js / ie6 .... class, you can put it in body and not in html tag. It's what oi done in citronade template (adapat the no-js/js script for body).

To have HTML 5 tag : i think you can use $embedded function ( look in config-default.php).

I think there are a feature request for HTML 5.

Denis
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.115 seconds
Donation Image