Check out the LimeSurvey source code on GitHub!

How to change template Doctype from xhtml to html5

More
4 years 5 months ago #84500 by anaxent
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]-->

Please Log in to join the conversation.

More
4 years 5 months ago #84501 by DenisChenu
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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form