ClearOS Documentation

×

Warning

301 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=82873f9c9a1f5784b951644363f20ef8

User Tools

Site Tools


Table of Contents

Theming Document Type

The document type declaration is required for your theme. This is certainly one of the easiest steps in creating a theme!

Hook

The theme engine loads the core/doctype.php file in your theme directory and expects to find the theme_page_doctype hook defined. Your hook should return the doctype string.

Examples

The following returns the old 4.01 transitional doctype.

function theme_page_doctype()
{
    return "\n";
}

A more modern HTML 5 example:

function theme_page_doctype()
{
    return "\n";
}
content/en_us/dev_theming_document_type.txt · Last modified: 2015/03/02 10:05 by dloper

https://clearos.com/dokuwiki2/lib/exe/indexer.php?id=content%3Aen_us%3Adev_theming_document_type&1563892536