Under certain circumstances, you may want to change the doctype used by the Genesis Theme Framework. The following code removes the standard Genesis Transitional doctype and replaces it with XHTML Strict.
remove_action('genesis_doctype', 'genesis_do_doctype'); add_action('genesis_doctype', 'dream_do_doctype'); /** * Change the Genesis DOCTYPE. * * @author Jen Baumann * @link http://dreamwhisperdesigns.com/?p=417 */ function dream_do_doctype() { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes('xhtml'); ?>> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <?php }
Place the code in the functions.php file, anywhere after this:
require_once(TEMPLATEPATH.'/lib/init.php');
And before the following closing code (if it exists):
?>