• Skip to main content

StudioPress

Customer Portal

  • Genesis Pro
  • Blocks
  • Custom Blocks
  • Framework
  • Themes
  • Hosting
  • Agencies
  • Login
Get Help / Code Snippets / HTML5 /

Enable HTML5 Markup

Unless otherwise indicated, the code snippets you see below should be placed into your theme’s functions.php file.

Below is the code to enable HTML5 markup on your site:

Note: Previously the code to enable HTML5 markup was slightly different. While the previously suggested code will not break your site, there will be an error message displayed if Debug mode is enabled.

It is recommended that users update their own functions.php files or download a new copy of the theme as all theme downloads have been updated to reflect the new code.

Ready to get started? Create a site or shop for themes.

Explore Genesis ProductsGenesis + Hosting

Footer

StudioPress

© 2025 WPEngine, Inc.

WP Engine is a proud member and supporter of the community of WordPress® users. The WordPress® trademarks are the intellectual property of the WordPress Foundation, and the Woo® and WooCommerce® trademarks are the intellectual property of WooCommerce, Inc. Uses of the WordPress®, Woo®, and WooCommerce® names in this website are for identification purposes only and do not imply an endorsement by WordPress Foundation or WooCommerce, Inc. WP Engine is not endorsed or owned by, or affiliated with, the WordPress Foundation or WooCommerce, Inc.

Products
  • Genesis Pro
  • Blocks
  • Custom Blocks
  • Framework
  • Themes
  • Hosting
  • Agencies
Company
  • Brand Assets
  • Terms of Service
  • Acceptable Use Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Developer Documentation
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble