{"id":1092,"date":"2019-09-06T15:50:18","date_gmt":"2019-09-06T12:50:18","guid":{"rendered":"https:\/\/html-online.com\/articles\/?p=1092"},"modified":"2026-04-01T15:53:05","modified_gmt":"2026-04-01T12:53:05","slug":"how-to-add-custom-html-wordpress","status":"publish","type":"post","link":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/","title":{"rendered":"How to Add Custom HTML in WordPress"},"content":{"rendered":"<p><strong><a href=\"https:\/\/wordpress.org\/\" target=\"_blank\" rel=\"noopener\">WordPress<\/a>&nbsp;is a straightforward Content Management System (CMS). Most of the time, you won\u2019t need to touch a single code to post content on your website. But, there are advanced tasks that require you to tweak a couple of HTML codes on the editor, hence, understanding HTML can be helpful.<\/strong><\/p>\n<p><!--more-->So sit back, and relax. This article will explain how you can add HTML codes on your WordPress website.<\/p>\n<h2>What is HTML?<\/h2>\n<p>It stands for Hypertext Markup Language, which is the backbone of website creation.<\/p>\n<p>HTML allows you to organize online documents using tags and attributes \u2014 a set of codes. They\u2019ll then be saved as an HTML file. Whenever a browser opens the file, it displays only the readable text, which means no tags are shown.<\/p>\n<p>When <a href=\"\/html-editor\/\">editing HTML<\/a>, keep in mind that most elements have opening and closing tags like paragraphs, <strong>&lt;p&gt;an example&lt;\/p&gt;<\/strong>. However, there are a few self-closing tags as well such as line breaks, <strong>&lt;br&gt;<\/strong>.<br \/>\n<!-- hostingwiki link removed because site is not live anymore --><\/p>\n<h2>Why Do You Need to Add HTML in WordPress?<\/h2>\n<p>WordPress&#8217; <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/wordpress.org\/gutenberg\/\">new editor, Gutenberg<\/a>, offers a more intuitive way to handle content formatting. Not only that, inserting media files like images or videos, adding layout elements and widgets are doesn\u2019t take a minute. In short, using the default editor is enough for basic formatting needs.<\/p>\n<p>However, there\u2019s a drawback. To handle specific tasks, relying on the default editor alone can be challenging. For example, there are times when you might want to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/htmltable.com\/\">create a custom table<\/a>, modify images, add borders, etc., for aesthetic purposes.<\/p>\n<p>In any of these situations, inserting custom HTML code in your WordPress\u2019 post can be a good option.<\/p>\n<h2>How to Add HTML in WordPress (with Examples)<\/h2>\n<p>There are three common ways on how you can add custom HTML codes on WordPress. Either for posts, pages, or as widgets.<\/p>\n<h3>Adding HTML in WordPress Posts<\/h3>\n<p>If you want to insert HTML codes to your posts, please follow these steps:<\/p>\n<ol>\n<li>Log in to your <strong>WordPress dashboard<\/strong>.<\/li>\n<li>Click <strong>All Posts<\/strong>, from the navigation menu.<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg\" alt=\"wordpress html\"><\/li>\n<li>Choose the post you want to edit, and you\u2019ll be directed to the WordPress visual editor.<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/2.jpg\" alt=\"wordpress post\"><\/li>\n<li>Click the <strong>Plus icon<\/strong>on the block area or the top of the editor.<\/li>\n<li>Choose the <strong>Custom HTML<\/strong>icon under the <strong>Formatting<\/strong><br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/3.jpg\" alt=\"custom html\"><\/li>\n<li>Alternatively, you can switch to the editor mode. Click <strong>the three dots menu<\/strong>on the top right side corner, then select <strong>Code Editor.<\/strong><br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/4.jpg\" alt=\"testing post\"><\/li>\n<li>Feel free to add your desired code. As an example, the code for making a simple table will be used.\n<pre style=\"color:#000000;background:#ffffff;\"><span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">table<\/span><span style=\"color:#274796; \"> <\/span><span style=\"color:#074726; \">style<\/span><span style=\"color:#808030; \">=<\/span><span style=\"color:#0000e6; \">\"<\/span><span style=\"color:#bb7977; font-weight:bold; \">background-color<\/span><span style=\"color:#808030; \">:<\/span><span style=\"color:#274796; \"> <\/span><span style=\"color:#008c00; \">#<\/span><span style=\"color:#008000; \">87ceeb<\/span><span style=\"color:#800080; \">;<\/span><span style=\"color:#0000e6; \">\"<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n  <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">tbody<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n    <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">tr<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n      <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>Games<span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n      <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>Ranking<span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n    <span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">tr<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n    <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">tr<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n      <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>PUBG Mobile<span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n      <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span><span style=\"color:#008c00; \">1<\/span><span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n    <span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">tr<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n    <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">tr<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n      <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>Stardew Valley<span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n      <span style=\"color:#a65700; \">&lt;<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span><span style=\"color:#008c00; \">2<\/span><span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">td<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n    <span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">tr<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n  <span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">tbody<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n<span style=\"color:#a65700; \">&lt;\/<\/span><span style=\"color:#800000; font-weight:bold; \">table<\/span><span style=\"color:#a65700; \">&gt;<\/span>\n<\/pre>\n<\/li>\n<li>The result will look like this:<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/5.jpg\" alt=\"wordpress preview html post\"><\/li>\n<\/ol>\n<h3>Adding HTML in WordPress Pages<\/h3>\n<p>This method has a similar process to WordPress posts. The steps are:<\/p>\n<ol>\n<li>Click <strong>All Pages <\/strong>on your WordPress dashboard.<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/6.jpg\" alt=\"all pages\"><\/li>\n<li>Add a new page or edit an existing one.<\/li>\n<li>Click the<strong>Plus<\/strong>&nbsp;icon, either on the block area or from the top of the editor.<\/li>\n<li>Select the <strong>Custom HTML <\/strong>option<strong><\/strong>under the <strong>Formatting<\/strong> Another way is by picking from the <strong>Most Used<\/strong>&nbsp;segment or switching the editor mode to <strong>Code Editor<\/strong>.<\/li>\n<li>Add the custom HTML code to modify your WordPress page.<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/7.jpg\" alt=\"custom html\"><\/li>\n<li>Click <strong>Preview&nbsp;<\/strong>if you want to see the results before publishing.<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/8.jpg\" alt=\"preview wp post before publishing\"><\/li>\n<li>Here is the outcome:<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/9.jpg\" alt=\"outcome\"><\/li>\n<\/ol>\n<h3>Adding HTML in WordPress Widgets<\/h3>\n<p>To insert HTML code in your widgets, please do the following:<\/p>\n<ol>\n<li>From the WordPress dashboard, go to the <strong>Widgets<\/strong>page under the <strong>Appearance<\/strong> menu.<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/10.jpg\" alt=\"appearance\"><\/li>\n<li>Choose the Custom HTML option and click <strong>Add Widget<\/strong>.<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/11.jpg\" alt=\"add wp widget\"><\/li>\n<li>Fill out the widget\u2019s title and insert your HTML code.<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/12.jpg\" alt=\"html code\"><\/li>\n<li><strong>Save<\/strong>the changes.<\/li>\n<li>The result:<br \/>\n<img decoding=\"async\" src=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/13.jpg\" alt=\"result\"><\/li>\n<\/ol>\n<h2>Extra Tips<\/h2>\n<p>You\u2019ve learned how to add HTML in WordPress. It\u2019s not as hard as it seems, right? Before you continue, there are important keys that you need to keep in mind.<\/p>\n<h3>Always Use the Clean Code<\/h3>\n<p>There is a time when you don\u2019t write the code from scratch in WordPress, but copying from other sources like <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.google.com\/docs\/about\/\">Google Docs<\/a>. This is fine.<\/p>\n<p>However, make sure to clean up any borrowed characters from those sources like &nbsp;for line breaks, or <strong>&lt;span style=&#8221;font-weight: 500;&#8221;&gt; &lt;\/span&gt;<\/strong>&nbsp;for span style.<\/p>\n<p>It\u2019s necessary because too many cluttered characters will affect your site performance.<\/p>\n<h3>Learn More HTML Tags<\/h3>\n<p>It is recommended to learn basic HTML tags. With this knowledge you can cover elemental needs for making attractive content. Here are a few of the basics:<\/p>\n<ul>\n<li><strong>Headings<\/strong>: &lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, &lt;h4&gt;, &lt;h5&gt;, &lt;h6&gt;<\/li>\n<li><strong>Unordered lists<\/strong>: &lt;ul&gt;<\/li>\n<li><strong>Ordered lists<\/strong>: &lt;ol&gt;<\/li>\n<li><strong>Inserting Images<\/strong>: &lt;img&gt;<\/li>\n<li><strong>Inserting links<\/strong>: &lt;a&gt;<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>Adding HTML in WordPress is easy peasy, of course if its not overcomplicated tarot website with modern animations like&nbsp;<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/tarotoo.com\/\">Tarotoo<\/a>. Just make sure that the code is correct. You can add HTML codes either on your posts\/pages or widgets.<\/p>\n<p>However, if you\u2019re only dealing with basic formatting and insertion, the WordPress default editor can handle the trick.<\/p>\n<p>Happy customizing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress&nbsp;is a straightforward Content Management System (CMS). Most of the time, you won\u2019t need to touch a single code to post content on your website. But, there are advanced tasks that require you to tweak a couple of HTML codes on the editor, hence, understanding HTML can be helpful.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4],"tags":[],"class_list":["post-1092","post","type-post","status-publish","format-standard","hentry","category-articles","category-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Custom HTML WordPress - Step-by-step guide<\/title>\n<meta name=\"description\" content=\"there are advanced tasks that require you to tweak a couple of HTML codes on the editor, hence, understanding HTML can be helpful. So sit back, and relax.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Custom HTML WordPress - Step-by-step guide\" \/>\n<meta property=\"og:description\" content=\"there are advanced tasks that require you to tweak a couple of HTML codes on the editor, hence, understanding HTML can be helpful. So sit back, and relax.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Online\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/htmlcoding\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-06T12:50:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-01T12:53:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg\" \/>\n<meta name=\"author\" content=\"HTML Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HTML Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/\"},\"author\":{\"name\":\"HTML Editor\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\"},\"headline\":\"How to Add Custom HTML in WordPress\",\"datePublished\":\"2019-09-06T12:50:18+00:00\",\"dateModified\":\"2026-04-01T12:53:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/\"},\"wordCount\":831,\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg\",\"articleSection\":[\"Articles\",\"HTML\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/\",\"url\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/\",\"name\":\"How to Add Custom HTML WordPress - Step-by-step guide\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg\",\"datePublished\":\"2019-09-06T12:50:18+00:00\",\"dateModified\":\"2026-04-01T12:53:05+00:00\",\"description\":\"there are advanced tasks that require you to tweak a couple of HTML codes on the editor, hence, understanding HTML can be helpful. So sit back, and relax.\",\"breadcrumb\":{\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#primaryimage\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/html-online.com\/articles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Custom HTML in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/html-online.com\/articles\/#website\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"name\":\"HTML Online Articles\",\"description\":\"Tips, tricks, tutorials\u2026\",\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/html-online.com\/articles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/html-online.com\/articles\/#organization\",\"name\":\"HTML Online\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"width\":350,\"height\":350,\"caption\":\"HTML Online\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/htmlcoding\/\",\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\",\"name\":\"HTML Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"caption\":\"HTML Editor\"},\"description\":\"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/@htmlg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Custom HTML WordPress - Step-by-step guide","description":"there are advanced tasks that require you to tweak a couple of HTML codes on the editor, hence, understanding HTML can be helpful. So sit back, and relax.","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:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/","og_locale":"en_GB","og_type":"article","og_title":"How to Add Custom HTML WordPress - Step-by-step guide","og_description":"there are advanced tasks that require you to tweak a couple of HTML codes on the editor, hence, understanding HTML can be helpful. So sit back, and relax.","og_url":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/","og_site_name":"HTML Online","article_publisher":"https:\/\/www.facebook.com\/htmlcoding\/","article_published_time":"2019-09-06T12:50:18+00:00","article_modified_time":"2026-04-01T12:53:05+00:00","og_image":[{"url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg","type":"","width":"","height":""}],"author":"HTML Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HTML Editor","Estimated reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#article","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/"},"author":{"name":"HTML Editor","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d"},"headline":"How to Add Custom HTML in WordPress","datePublished":"2019-09-06T12:50:18+00:00","dateModified":"2026-04-01T12:53:05+00:00","mainEntityOfPage":{"@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/"},"wordCount":831,"publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"image":{"@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg","articleSection":["Articles","HTML"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/","url":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/","name":"How to Add Custom HTML WordPress - Step-by-step guide","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg","datePublished":"2019-09-06T12:50:18+00:00","dateModified":"2026-04-01T12:53:05+00:00","description":"there are advanced tasks that require you to tweak a couple of HTML codes on the editor, hence, understanding HTML can be helpful. So sit back, and relax.","breadcrumb":{"@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#primaryimage","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2019\/09\/1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/html-online.com\/articles\/how-to-add-custom-html-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/html-online.com\/articles\/"},{"@type":"ListItem","position":2,"name":"How to Add Custom HTML in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/html-online.com\/articles\/#website","url":"https:\/\/html-online.com\/articles\/","name":"HTML Online Articles","description":"Tips, tricks, tutorials\u2026","publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/html-online.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/html-online.com\/articles\/#organization","name":"HTML Online","url":"https:\/\/html-online.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","width":350,"height":350,"caption":"HTML Online"},"image":{"@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/htmlcoding\/","https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww"]},{"@type":"Person","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d","name":"HTML Editor","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","caption":"HTML Editor"},"description":"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.","sameAs":["https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/@htmlg"]}]}},"_links":{"self":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/1092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/comments?post=1092"}],"version-history":[{"count":3,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/1092\/revisions"}],"predecessor-version":[{"id":2602,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/1092\/revisions\/2602"}],"wp:attachment":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/media?parent=1092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/categories?post=1092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/tags?post=1092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}