{"id":25488,"date":"2023-03-19T15:43:40","date_gmt":"2023-03-19T19:43:40","guid":{"rendered":"https:\/\/appfinite.com\/?post_type=docs&#038;p=25488"},"modified":"2023-03-19T15:43:51","modified_gmt":"2023-03-19T19:43:51","password":"","slug":"enable-html5-markup","status":"publish","type":"docs","link":"https:\/\/appfinite.com\/docs\/enable-html5-markup\/","title":{"rendered":"Enable HTML5 Markup"},"content":{"rendered":"\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">Unless otherwise indicated, the code snippets you see below should be placed into your theme\u2019s\u00a0<strong>functions.php<\/strong>\u00a0file.<\/p>\n\n\n\n<p>Here is the code to enable HTML5 markup on your site:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ Adds HTML5 markup structure.\nadd_theme_support(\n\t&#039;html5&#039;, array(\n\t\t&#039;caption&#039;,\n\t\t&#039;comment-form&#039;,\n\t\t&#039;comment-list&#039;,\n\t\t&#039;gallery&#039;,\n\t\t&#039;search-form&#039;,\n\t)\n);\n<\/pre><\/div>\n\n\n<p><strong>Note:<\/strong> The previous method for enabling HTML5 markup was somewhat different. Although the old code won&#8217;t cause issues with your site, an error message may appear if Debug mode is active.<\/p>\n\n\n\n<p>It is advisable for users to update their functions.php files or obtain a new version of the theme since all theme downloads now include the updated code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is the code to enable HTML5 markup on your site: Note: The previous method for enabling HTML5 markup was somewhat different. Although the old code won&#8217;t cause issues with your site, an error message may appear if Debug mode is active. It is advisable for users to update their functions.php files or obtain a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"doc_category":[1684],"doc_tag":[],"class_list":["post-25488","docs","type-docs","status-publish","hentry","doc_category-html5"],"acf":[],"year_month":"2026-05","word_count":85,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Wes","author_nicename":"wes","author_url":"https:\/\/appfinite.com\/author\/wes\/"},"doc_category_info":[{"term_name":"HTML5","term_url":"https:\/\/appfinite.com\/docs-category\/html5\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Enable HTML5 Markup - appfinite<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/appfinite.com\/docs\/enable-html5-markup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enable HTML5 Markup - appfinite\" \/>\n<meta property=\"og:description\" content=\"Here is the code to enable HTML5 markup on your site: Note: The previous method for enabling HTML5 markup was somewhat different. Although the old code won&#8217;t cause issues with your site, an error message may appear if Debug mode is active. It is advisable for users to update their functions.php files or obtain a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/appfinite.com\/docs\/enable-html5-markup\/\" \/>\n<meta property=\"og:site_name\" content=\"appfinite\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/appfinite\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-19T19:43:51+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@appfinite\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/appfinite.com\\\/docs\\\/enable-html5-markup\\\/\",\"url\":\"https:\\\/\\\/appfinite.com\\\/docs\\\/enable-html5-markup\\\/\",\"name\":\"Enable HTML5 Markup - appfinite\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/appfinite.com\\\/#website\"},\"datePublished\":\"2023-03-19T19:43:40+00:00\",\"dateModified\":\"2023-03-19T19:43:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/appfinite.com\\\/docs\\\/enable-html5-markup\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/appfinite.com\\\/docs\\\/enable-html5-markup\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/appfinite.com\\\/docs\\\/enable-html5-markup\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/appfinite.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Enable HTML5 Markup\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/appfinite.com\\\/#website\",\"url\":\"https:\\\/\\\/appfinite.com\\\/\",\"name\":\"appfinite\",\"description\":\"Premium WordPress Themes for The Genesis Framework, Gutenberg, Block Themes, Full Site Editor, Elementor, Divi, and more!\",\"publisher\":{\"@id\":\"https:\\\/\\\/appfinite.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/appfinite.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/appfinite.com\\\/#organization\",\"name\":\"appfinite\",\"url\":\"https:\\\/\\\/appfinite.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/appfinite.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/appfinite.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/appfinite.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/logo.png\",\"width\":222,\"height\":58,\"caption\":\"appfinite\"},\"image\":{\"@id\":\"https:\\\/\\\/appfinite.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/appfinite\",\"https:\\\/\\\/x.com\\\/appfinite\",\"https:\\\/\\\/twitter.com\\\/wesstraham\",\"https:\\\/\\\/instagram.com\\\/appfinite\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Enable HTML5 Markup - appfinite","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/appfinite.com\/docs\/enable-html5-markup\/","og_locale":"en_US","og_type":"article","og_title":"Enable HTML5 Markup - appfinite","og_description":"Here is the code to enable HTML5 markup on your site: Note: The previous method for enabling HTML5 markup was somewhat different. Although the old code won&#8217;t cause issues with your site, an error message may appear if Debug mode is active. It is advisable for users to update their functions.php files or obtain a [&hellip;]","og_url":"https:\/\/appfinite.com\/docs\/enable-html5-markup\/","og_site_name":"appfinite","article_publisher":"https:\/\/facebook.com\/appfinite","article_modified_time":"2023-03-19T19:43:51+00:00","twitter_card":"summary_large_image","twitter_site":"@appfinite","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/appfinite.com\/docs\/enable-html5-markup\/","url":"https:\/\/appfinite.com\/docs\/enable-html5-markup\/","name":"Enable HTML5 Markup - appfinite","isPartOf":{"@id":"https:\/\/appfinite.com\/#website"},"datePublished":"2023-03-19T19:43:40+00:00","dateModified":"2023-03-19T19:43:51+00:00","breadcrumb":{"@id":"https:\/\/appfinite.com\/docs\/enable-html5-markup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/appfinite.com\/docs\/enable-html5-markup\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/appfinite.com\/docs\/enable-html5-markup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/appfinite.com\/"},{"@type":"ListItem","position":2,"name":"Enable HTML5 Markup"}]},{"@type":"WebSite","@id":"https:\/\/appfinite.com\/#website","url":"https:\/\/appfinite.com\/","name":"appfinite","description":"Premium WordPress Themes for The Genesis Framework, Gutenberg, Block Themes, Full Site Editor, Elementor, Divi, and more!","publisher":{"@id":"https:\/\/appfinite.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/appfinite.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/appfinite.com\/#organization","name":"appfinite","url":"https:\/\/appfinite.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/appfinite.com\/#\/schema\/logo\/image\/","url":"https:\/\/appfinite.com\/wp-content\/uploads\/2024\/01\/logo.png","contentUrl":"https:\/\/appfinite.com\/wp-content\/uploads\/2024\/01\/logo.png","width":222,"height":58,"caption":"appfinite"},"image":{"@id":"https:\/\/appfinite.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/appfinite","https:\/\/x.com\/appfinite","https:\/\/twitter.com\/wesstraham","https:\/\/instagram.com\/appfinite\/"]}]}},"_links":{"self":[{"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/docs\/25488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/comments?post=25488"}],"version-history":[{"count":1,"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/docs\/25488\/revisions"}],"predecessor-version":[{"id":25489,"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/docs\/25488\/revisions\/25489"}],"wp:attachment":[{"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/media?parent=25488"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/doc_category?post=25488"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/appfinite.com\/wp-json\/wp\/v2\/doc_tag?post=25488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}