follow mejoin mesubscribe

Change the Genesis doctype declaration

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

function dream_do_doctype() { ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
    <html xmlns="" <?php language_attributes('xhtml'); ?>>
    <head profile="">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

Place the code in the functions.php file, anywhere after this:


And before the following closing code (if it exists):

About Jennifer Baumann

I am an avid horseback rider, animal lover, and freelance designer. I love working with WordPress and Genesis and work for Copyblogger Media as a Technical Support Advocate.

Dream Whisper Designs is Powered by Genesis

StudioPress Premium WordPress Themes

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.