{"id":5511,"date":"2021-02-09T09:53:37","date_gmt":"2021-02-09T07:53:37","guid":{"rendered":"https:\/\/whitepapers.grafik-und-redaktion.de\/?p=5511"},"modified":"2021-02-09T09:53:37","modified_gmt":"2021-02-09T07:53:37","slug":"functions-add-a-unique-class-to-html-tag-element-wordpress-development-stack-exchange","status":"publish","type":"post","link":"https:\/\/whitepapers.grafik-und-redaktion.de\/?p=5511","title":{"rendered":"functions &#8211; Add a unique class to HTML tag\/element &#8211; WordPress Development Stack Exchange"},"content":{"rendered":"<blockquote><p>I know there is a body_class function for WordPress. But is there one (or a way) to add a class to the HTML element? My goal is to be able to add a unique class (or ID) to a page&#8217;s HTML element.<\/p><\/blockquote>\n<p>Quelle: <em><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/268339\/add-a-unique-class-to-html-tag-element\">functions &#8211; Add a unique class to HTML tag\/element &#8211; WordPress Development Stack Exchange<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I know there is a body_class function for WordPress. But is there one (or a way) to add a class to the HTML element? My goal is to be able to add a unique class (or ID) to a page&#8217;s &hellip; <a href=\"https:\/\/whitepapers.grafik-und-redaktion.de\/?p=5511\">Weiterlesen &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/posts\/5511"}],"collection":[{"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5511"}],"version-history":[{"count":1,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/posts\/5511\/revisions"}],"predecessor-version":[{"id":5512,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=\/wp\/v2\/posts\/5511\/revisions\/5512"}],"wp:attachment":[{"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/whitepapers.grafik-und-redaktion.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}