{"id":15380,"date":"2019-02-15T15:59:53","date_gmt":"2019-02-15T15:59:53","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=15380"},"modified":"2026-03-10T10:25:07","modified_gmt":"2026-03-10T10:25:07","slug":"how-to-convert-html-to-wordpress","status":"publish","type":"post","link":"\/in\/tutorials\/how-to-convert-html-to-wordpress","title":{"rendered":"How to convert HTML to WordPress"},"content":{"rendered":"<p>So, you&rsquo;ve been looking at recent statistics, saying that WordPress currently powers 33% of websites on the internet. As a website owner, you might consider converting your static HTML website to WordPress.<\/p><p>While it&rsquo;s still okay to have an HTML-based website as HTML5 is quite powerful, especially for a showcase site. But for everything else, WordPress provides more comfortable solutions. WordPress offers plenty of themes, plugins, and widgets to improve the website and add useful features.<\/p><p>It&rsquo;s also easy to manage. You can add and remove content without coding. With an HTML site, it&rsquo;s a different story. Unless you know how to code, updating content with HTML can be difficult.<\/p><p>In this article, you will learn how to convert static HTML to WordPress, and different methods to do it. Let&rsquo;s get started.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-things-to-look-out-for-when-moving-from-html-to-wordpress\">Things to look out for when moving from HTML to WordPress<\/h2><p>Before moving out, you need to consider a few things.<\/p><ul class=\"wp-block-list\">\n<li><strong>Hosting service.<\/strong> You need to have a <a href=\"\/in\/wordpress-hosting\">WordPress hosting plan<\/a> before starting, as the requirements can be different from an HTML site. Alternatively, you can host your website locally, and make it live at a later point.<\/li>\n\n\n\n<li><strong>Code editor. <\/strong>You&rsquo;ll need a code editor such as Notepad++, Atom, Sublime, etc., to tweak your website HTML code.<\/li>\n\n\n\n<li><strong>Time and money. <\/strong>You need to consider the time and money you are willing to invest. If you&rsquo;re ready and committed to learning, this tutorial is perfect for you. Alternatively, you can also hire developers or use <a href=\"\/in\/tutorials\/how-to-migrate-wordpress\">WordPress migration<\/a> apps to help convert. Hiring someone is much easier, but you&rsquo;ll lose the opportunity to learn, and the process might be expensive.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-the-different-ways-to-convert-html-to-wordpress\">The different ways to convert HTML to WordPress<\/h2><p>There are several methods of converting HTML to WordPress, and they come with different difficulty levels. They are as follow:<\/p><ul class=\"wp-block-list\">\n<li><strong>Creating a WordPress Theme from a static HTML site.<\/strong> If you prefer your old HTML website&rsquo;s design intact, this option is for you. It&rsquo;s also the most challenging route and requires coding. But, don&rsquo;t get intimidated. All you need to do is copy\/paste the old HTML code into several PHP files.<\/li>\n\n\n\n<li><strong>Losing the design and keeping the content only.<\/strong> If you&rsquo;re okay with leaving behind your old website design and find a WordPress theme for a fresh start, this option is for you. You only need to transfer the content to its new home.<\/li>\n\n\n\n<li><strong>Using a child theme adapted from an existing theme.<\/strong> This is probably the easiest route if you want to retain the old website&rsquo;s design. With this method, you&rsquo;ll use a pre-existing WordPress theme and build upon it. As a bonus, you can use WordPress&rsquo; powerful features right away.<\/li>\n<\/ul><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a href=\"\/in\/website-migration\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/Website-migration_in-text-banner-2-1024x300.png\" alt=\"\" class=\"wp-image-77999\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/02\/Website-migration_in-text-banner-2.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/02\/Website-migration_in-text-banner-2-300x88.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/02\/Website-migration_in-text-banner-2-150x44.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/02\/Website-migration_in-text-banner-2-768x225.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-creating-a-wordpress-theme-from-a-static-html-site\">Creating a WordPress theme from a static HTML site<\/h3><p>If your goal is to create a WordPress website that resembles your old HTML site from scratch, you can start here. In this tutorial, we use a <a href=\"https:\/\/github.com\/rachelmccollin\/WPMU-DEV-Theme-Development-Series-Files\/tree\/master\/Starting%20code\" target=\"_blank\" rel=\"noopener noreferrer\">static HTML template<\/a> by Rachel McCollin.<\/p><h4 class=\"wp-block-heading\" id=\"h-1-create-a-theme-folder-and-basic-files\">1. Create a theme folder and basic files<\/h4><p>Create a new theme folder on your desktop and name it. We&rsquo;re naming our folder as <strong>my-theme<\/strong>. After that, open your code editor and create the following files:<\/p><ul class=\"wp-block-list\">\n<li><strong>style.css<\/strong><\/li>\n\n\n\n<li><strong>index.php<\/strong><\/li>\n\n\n\n<li><strong>header.php<\/strong><\/li>\n\n\n\n<li><strong>sidebar.php<\/strong><\/li>\n\n\n\n<li><strong>footer.php<\/strong><\/li>\n<\/ul><p>Note that some of these files might be optional, depending on your theme&rsquo;s features and design. To learn more about their purposes, check out our article about <a href=\"\/in\/tutorials\/create-wordpress-theme-html5\">creating a WordPress theme using HTML5<\/a>.<\/p><p>After creating the files, leave the editor open. We&rsquo;re going to come back to it later.<\/p><h4 class=\"wp-block-heading\" id=\"h-2-change-old-website-css-to-wordpress-style-sheet\">2. Change old website CSS to WordPress style sheet<\/h4><p>Now, we&rsquo;re going to create a WordPress style sheet by copying your old CSS code into it. Go to <strong>style.css<\/strong> file, and paste this code:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/*\nTheme Name: My Theme\nAuthor: LakiGarang\nAuthor URI: https:\/\/hostinger.com\/tutorials\/author\/luqman\nDescription: A development theme, from static HTML to WordPress\nVersion: 1.0\nLicense: GNU General Public License v2 or later\nLicense URI: http:\/\/www.gnu.org\/licenses\/gpl-2.0.html\n*\/\n<\/pre><p>This code provides information to WordPress that it&rsquo;s a theme stylesheet header. You can edit the details like the theme name, author and URL, description, etc.<\/p><p>Right after the header, copy and paste your old CSS code into the file. Save and close it.<\/p><h4 class=\"wp-block-heading\" id=\"h-3-split-up-your-old-website-html\">3. Split up your old website HTML<\/h4><p>WordPress uses PHP to pull information from its database. So, you need to split up your old website&rsquo;s HTML into different pieces to make sure it can put them together correctly.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/sample-website-preview.jpg\"><img decoding=\"async\" width=\"880\" height=\"660\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/sample-website-preview.jpg\" alt=\"Sample html to WordPress site preview\" class=\"wp-image-15384\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/sample-website-preview.jpg 880w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/sample-website-preview-150x113.jpg 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/sample-website-preview-300x225.jpg 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/sample-website-preview-768x576.jpg 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/a><\/figure><\/div><p>If this seems complicated, don&rsquo;t worry too much, the process is quite straightforward. First, let&rsquo;s see how our <a href=\"\/in\/tutorials\/static-website\">static website<\/a> and its code looks.&nbsp;<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;!--[if lt IE 7]&gt;&lt;html lang=\"en-US\" class=\"ie6\"&gt;&lt;![endif]--&gt;\n&lt;!--[if IE 7]&gt;&lt;html lang=\"en-US\" class=\"ie7\"&gt;&lt;![endif]--&gt;\n&lt;!--[if IE 8]&gt;&lt;html lang=\"en-US\" class=\"ie8\"&gt;&lt;![endif]--&gt;\n&lt;!--[if IE 9]&gt;&lt;html lang=\"en-US\" class=\"ie9\"&gt;&lt;![endif]--&gt;\n&lt;!--[if gt IE 9]&gt;&lt;html lang=\"en-US\"&gt;&lt;![endif]--&gt;\n&lt;!--[if !IE]&gt;&lt;html lang=\"en-US\"&gt;&lt;![endif]--&gt;\n&lt;head&gt;\n&lt;meta charset=\"UTF-8\" \/&gt;\n&lt;meta name=\"viewport\" content=\"width=device-width\" \/&gt;\n&lt;title&gt;WordPress Writer and Instructor | RACHEL McCOLLIN&lt;\/title&gt;\n\n&lt;link rel=\"stylesheet\" type=\"text\/css\" media=\"all\" href=\"style.css\" \/&gt;\n&lt;link href=\"https:\/\/fonts.googleapis.com\/css?family=Assistant|Oswald\" rel=\"stylesheet\"&gt;\n\n&lt;\/head&gt;\n\n&lt;body&gt;\n  \n  &lt;div class=\"header-bg\"&gt;\n  \n    &lt;header role=\"banner\"&gt;\n  \n      &lt;hgroup class=\"site-name three-quarters left\"&gt;\n        \n        &lt;!-- site name and description - site name is inside a div element on all pages execpt the front page and\/or main blog page, where it is in a h1 element --&gt;\n        &lt;h1 id=\"site-title\" class=\"one-half-left\"&gt;\n          &lt;a href=\"https:\/\/rachelmccollin.com\/\" title=\"RACHEL McCOLLIN\" rel=\"home\"&gt;RACHEL McCOLLIN&lt;\/a&gt;\n        &lt;\/h1&gt;\n        \n        &lt;h2 id=\"site-description\"&gt;Fiction and Technical Writer&lt;\/h2&gt;\n      \n      &lt;\/hgroup&gt;\n  \n      &lt;div class=\"right quarter\"&gt;\n                \n          &lt;a class=\"toggle-nav\" href=\"#\"&gt;&#9776;&lt;\/a&gt;\n          \n      &lt;\/div&gt; &lt;!-- .right quarter --&gt;\n    \n    &lt;\/header&gt;&lt;!-- header --&gt;\n    \n  &lt;\/div&gt;&lt;!-- header-bg--&gt;\n  \n      \n  &lt;!-- full width navigation menu --&gt;\n  &lt;nav class=\"menu main\"&gt;\n      \n    &lt;div class=\"skip-link screen-reader-text\"&gt;&lt;a href=\"#content\" title=\"Skip to content\"&gt;Skip to content&lt;\/a&gt;&lt;\/div&gt;\n            \n    &lt;div class=\"main-nav\"&gt;\n      &lt;ul class=\"menu\"&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/\"&gt;Home&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/about-me\/\"&gt;About Me&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/books\/\"&gt;Books&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/bookclub\/\"&gt;Book Club&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/blog\/\"&gt;Blog&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/contact\/\"&gt;Contact&lt;\/a&gt;&lt;\/li&gt;\n      &lt;\/ul&gt;\n    &lt;\/div&gt;    \n    \n  &lt;\/nav&gt;&lt;!-- .main --&gt;\n    \n\n  &lt;div class=\"main\"&gt;\n    \n    &lt;div id=\"content\" class=\"two-thirds left\"&gt;\n\n      &lt;article class=\"post\"&gt;\n      \n        &lt;h2 class=\"entry-title\"&gt;Welcome to This Website&lt;\/h2&gt;\n    \n        &lt;section class=\"entry-content\"&gt;\n      \n          &lt;p&gt;This site is comprised of one static HTML file.&lt;\/p&gt;\n          &lt;p&gt;You will be able to add more content later via the WordPress admin screens.\n            \n          &lt;h3&gt;Here's a heading so you can check how it's styled&lt;\/h3&gt;\n          &lt;p&gt;And another paragraph underneath.&lt;\/p&gt;\n          &lt;p&gt;And a list:&lt;\/p&gt;\n          \n          &lt;ul&gt;\n            &lt;li&gt;Item 1&lt;\/li&gt;\n            &lt;li&gt;Item 2&lt;\/li&gt;\n            &lt;li&gt;And so on...&lt;\/li&gt;\n          &lt;\/ul&gt;\n            \n        \n        &lt;\/section&gt;&lt;!-- .entry-content --&gt;\n\n      &lt;\/article&gt;&lt;!-- #post-## --&gt;\n\n    &lt;\/div&gt;&lt;!-- #content --&gt;\n\n    \n    &lt;aside class=\"sidebar one-third right\"&gt;\n\n      &lt;aside class=\"widget-area\"&gt;\n        \n        &lt;div class=\"widget-container\"&gt;\n          \n          &lt;h3 class=\"widget-title\"&gt;Buy My Book&lt;\/h3&gt;\n          \n          &lt;img width=\"242\" height=\"300\" src=\"https:\/\/premium.wpmudev.org\/wp-content\/themes\/wpmudev-2015-1\/assets\/img\/projects\/snapshot-hero@2x.png?v=1\" alt=\"WordPress: Pushing the Limits by Rachel McCollin\" style=\"max-width: 100%; height: auto;\" \/&gt;\n          \n          &lt;p&gt;&lt;em&gt;WordPress: Pushing the Limits&lt;\/em&gt; will help you become a professional WordPress developer.&lt;\/p&gt;\n  \n        &lt;\/div&gt;\n      \n      &lt;\/aside&gt;\n\n    &lt;\/aside&gt;\n    \n  &lt;\/div&gt;&lt;!-- .main --&gt;\n\n\n  &lt;footer&gt;\n  \n    &lt;div class=\"fatfooter\"&gt;\n  \n      &lt;p&gt;Add footer content here with &lt;a href=\"#\"&gt;widget areas&lt;\/a&gt; - the tutorials will show you how.&lt;\/p&gt;\n  \n    &lt;\/div&gt;\n\n  &lt;\/footer&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre><p>Now, open your old static website <strong>index.html<\/strong> file, we&rsquo;re going to split that into the newly created WordPress files. (The examples below are our markup).<\/p><p><strong>header.php<\/strong><\/p><p>Everything from the beginning of your old HTML code up to the main content area goes into this file. The main content area usually expressed with <strong>&lt;main&gt;<\/strong> or <strong>&lt;div class=&rdquo;main&rdquo;&gt;<\/strong>.<\/p><p>Additionally, right before the <strong>&lt;\/head&gt;<\/strong> element, copy and paste this code &lt;?php wp_head();?&gt;. This ensures WordPress plugins work properly. When you finish, save the file.<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;!--[if lt IE 7]&gt;&lt;html lang=\"en-US\" class=\"ie6\"&gt;&lt;![endif]--&gt;\n&lt;!--[if IE 7]&gt;&lt;html lang=\"en-US\" class=\"ie7\"&gt;&lt;![endif]--&gt;\n&lt;!--[if IE 8]&gt;&lt;html lang=\"en-US\" class=\"ie8\"&gt;&lt;![endif]--&gt;\n&lt;!--[if IE 9]&gt;&lt;html lang=\"en-US\" class=\"ie9\"&gt;&lt;![endif]--&gt;\n&lt;!--[if gt IE 9]&gt;&lt;html lang=\"en-US\"&gt;&lt;![endif]--&gt;\n&lt;!--[if !IE]&gt;&lt;html lang=\"en-US\"&gt;&lt;![endif]--&gt;\n&lt;head&gt;\n&lt;meta charset=\"UTF-8\" \/&gt;\n&lt;meta name=\"viewport\" content=\"width=device-width\" \/&gt;\n&lt;title&gt;WordPress Writer and Instructor | RACHEL McCOLLIN&lt;\/title&gt;\n\n&lt;link rel=\"stylesheet\" type=\"text\/css\" media=\"all\" href=\"style.css\" \/&gt;\n&lt;link href=\"https:\/\/fonts.googleapis.com\/css?family=Assistant|Oswald\" rel=\"stylesheet\"&gt;\n&lt;?php wp_head();?&gt;\n&lt;\/head&gt;\n\n&lt;body&gt;\n  \n  &lt;div class=\"header-bg\"&gt;\n  \n    &lt;header role=\"banner\"&gt;\n  \n      &lt;hgroup class=\"site-name three-quarters left\"&gt;\n        \n        &lt;!-- site name and description - site name is inside a div element on all pages execpt the front page and\/or main blog page, where it is in a h1 element --&gt;\n        &lt;h1 id=\"site-title\" class=\"one-half-left\"&gt;\n          &lt;a href=\"https:\/\/rachelmccollin.com\/\" title=\"RACHEL McCOLLIN\" rel=\"home\"&gt;RACHEL McCOLLIN&lt;\/a&gt;\n        &lt;\/h1&gt;\n        \n        &lt;h2 id=\"site-description\"&gt;Fiction and Technical Writer&lt;\/h2&gt;\n      \n      &lt;\/hgroup&gt;\n  \n      &lt;div class=\"right quarter\"&gt;\n                \n          &lt;a class=\"toggle-nav\" href=\"#\"&gt;&#9776;&lt;\/a&gt;\n          \n      &lt;\/div&gt; &lt;!-- .right quarter --&gt;\n    \n    &lt;\/header&gt;&lt;!-- header --&gt;\n    \n  &lt;\/div&gt;&lt;!-- header-bg--&gt;\n  \n      \n  &lt;!-- full width navigation menu --&gt;\n  &lt;nav class=\"menu main\"&gt;\n      \n    &lt;div class=\"skip-link screen-reader-text\"&gt;&lt;a href=\"#content\" title=\"Skip to content\"&gt;Skip to content&lt;\/a&gt;&lt;\/div&gt;\n            \n    &lt;div class=\"main-nav\"&gt;\n      &lt;ul class=\"menu\"&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/\"&gt;Home&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/about-me\/\"&gt;About Me&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/books\/\"&gt;Books&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/bookclub\/\"&gt;Book Club&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/blog\/\"&gt;Blog&lt;\/a&gt;&lt;\/li&gt;\n        &lt;li class=\"menu-item\"&gt;&lt;a href=\"https:\/\/rachelmccollin.com\/contact\/\"&gt;Contact&lt;\/a&gt;&lt;\/li&gt;\n      &lt;\/ul&gt;\n    &lt;\/div&gt;    \n    \n  &lt;\/nav&gt;&lt;!-- .main --&gt;<\/pre><p><strong>sidebar.php<\/strong><\/p><p>Everything belonging to the section <strong>&lt;aside &hellip; &lt;\/aside&gt;<\/strong> in your old HTML code, goes into this file. When you finish, save the file.<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;aside class=\"sidebar one-third right\"&gt;\n\n      &lt;aside class=\"widget-area\"&gt;\n        \n        &lt;div class=\"widget-container\"&gt;\n          \n          &lt;h3 class=\"widget-title\"&gt;Buy My Book&lt;\/h3&gt;\n          \n          &lt;img width=\"242\" height=\"300\" src=\"https:\/\/premium.wpmudev.org\/wp-content\/themes\/wpmudev-2015-1\/assets\/img\/projects\/snapshot-hero@2x.png?v=1\" alt=\"WordPress: Pushing the Limits by Rachel McCollin\" style=\"max-width: 100%; height: auto;\" \/&gt;\n          \n          &lt;p&gt;&lt;em&gt;WordPress: Pushing the Limits&lt;\/em&gt; will help you become a professional WordPress developer.&lt;\/p&gt;\n  \n        &lt;\/div&gt;\n      \n      &lt;\/aside&gt;\n\n    &lt;\/aside&gt;<\/pre><p><strong>footer.php<\/strong><\/p><p>Now, everything up to the end of the file should be the footer information, which goes into this file.<\/p><p>Just before the closing bracket <strong>&lt;\/body&gt;<\/strong>, add this code &lt;?php wp_footer();?&gt; for the same reason as in <strong>header.php<\/strong>. When you finish, save it.<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;\/div&gt;&lt;!-- .main --&gt;\n\n\n  &lt;footer&gt;\n  \n    &lt;div class=\"fatfooter\"&gt;\n  \n      &lt;p&gt;Add footer content here with &lt;a href=\"#\"&gt;widget areas&lt;\/a&gt; - the tutorials will show you how.&lt;\/p&gt;\n  \n    &lt;\/div&gt;\n\n  &lt;\/footer&gt;\n  &lt;?php wp_footer();?&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre><p>Now you&rsquo;re done with the old <strong>index.html<\/strong> file. You can close it along with other files in your theme folder except for <strong>header.php<\/strong> and <strong>index.php<\/strong>. They still have some work to do.<\/p><h4 class=\"wp-block-heading\" id=\"h-4-change-the-style-to-wordpress-format\">4. Change the style to WordPress format<\/h4><p>In the header, all you need to do is change the style sheet from HTML to WordPress format. Look for an existing link in the <strong>&lt;head&gt;<\/strong> section. In my case, it&rsquo;s something like this:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;link rel=\"stylesheet\" type=\"text\/css\" media=\"all\" href=\"style.css\" \/&gt;<\/pre><p>Replace it with this line:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;link rel=\"stylesheet\" href=\"&lt;?php echo get_template_directory_uri(); ?&gt;\/style.css\" type=\"text\/css\" media=\"all\" \/&gt;<\/pre><p>Now, you can save and close the <strong>header.php<\/strong> file.<\/p><p>Let&rsquo;s turn to the <strong>index.php<\/strong> file. It should be blank at the moment, so copy and paste these lines of code:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php get_header(); ?&gt;\n\n&lt;?php get_sidebar(); ?&gt;\n&lt;?php get_footer(); ?&gt;<\/pre><p>This code will call for the rest of your WordPress files. You should notice the space between the header and the sidebar. It&rsquo;s where you&rsquo;ll add <a href=\"https:\/\/codex.wordpress.org\/The_Loop\" target=\"_blank\" rel=\"noopener noreferrer\">The Loop<\/a>.<\/p><p>The Loop will process each post for display, and format it according to how the content matches the criteria within The Loop tags. It&rsquo;s an important aspect to add dynamic content to your WordPress site.<\/p><p>To do so, paste the following code right after <strong>&lt;?php get_header(); ?&gt;<\/strong>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;?php while ( have_posts() ) : the_post(); ?&gt;\n  &lt;article class=\"&lt;?php post_class(); ?&gt;\" id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\n    &lt;h2 class=\"entry-title\"&gt;&lt;?php the_title(); ?&gt;&lt;\/h2&gt;\n    &lt;?php if ( !is_page() ):?&gt;\n      &lt;section class=\"entry-meta\"&gt;\n      &lt;p&gt;Posted on &lt;?php the_date();?&gt; by &lt;?php the_author();?&gt;&lt;\/p&gt;\n      &lt;\/section&gt;\n    &lt;?php endif; ?&gt;\n    &lt;section class=\"entry-content\"&gt;\n      &lt;?php the_content(); ?&gt;\n    &lt;\/section&gt;\n    &lt;section class=\"entry-meta\"&gt;&lt;?php if ( count( get_the_category() ) ) : ?&gt;\n      &lt;span class=\"category-links\"&gt;\n        Posted under: &lt;?php echo get_the_category_list( ', ' ); ?&gt;\n      &lt;\/span&gt;\n    &lt;?php endif; ?&gt;&lt;\/section&gt;\n  &lt;\/article&gt;\n&lt;?php endwhile; ?&gt;<\/pre><p>After you finish, save your <strong>index.php<\/strong> file and close it. You successfully created a WordPress theme. Now, you can add it to your WordPress site.<\/p><h4 class=\"wp-block-heading\" id=\"h-5-upload-your-theme-to-wordpress\">5. Upload your theme to WordPress<\/h4><p>After you finish creating the basic theme, you can upload it to WordPress. All files inside your theme folder must be in the same place. To do that, you can zip them.<\/p><p>Go to your WordPress <a href=\"\/in\/tutorials\/wordpress\/how-to-login-to-wordpress-dashboard\" target=\"_blank\" rel=\"noopener noreferrer\">Admin Dashboard<\/a>. Head over to<strong> Appearances -&gt; Themes<\/strong>. Click<strong> Add New -&gt; Upload Themes<\/strong>.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/upload-the-theme.jpg\"><img decoding=\"async\" width=\"900\" height=\"244\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/upload-the-theme.jpg\" alt=\"Upload the theme to WP\" class=\"wp-image-15392\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/upload-the-theme.jpg 900w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/upload-the-theme-150x41.jpg 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/upload-the-theme-300x81.jpg 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/upload-the-theme-768x208.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/a><\/figure><\/div><p>In the menu, locate your theme&rsquo;s zip file, upload, and click <strong>Install Now<\/strong>. After that, don&rsquo;t forget to activate the theme.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/theme-uploaded-to-wordpress.jpg\"><img decoding=\"async\" width=\"900\" height=\"541\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/theme-uploaded-to-wordpress.jpg\" alt=\"Theme uploaded to WordPress\" class=\"wp-image-15393\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/theme-uploaded-to-wordpress.jpg 900w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/theme-uploaded-to-wordpress-150x90.jpg 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/theme-uploaded-to-wordpress-300x180.jpg 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/theme-uploaded-to-wordpress-768x462.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/a><\/figure><\/div><p>Now your front end should look like the old site. You should be aware that while the basic design looks the same, there are more things you should do to make the integration better.<\/p><p>For example, you can&rsquo;t use WordPress features like the widget area. You also need to adjust CSS markup to make it a part of WordPress&rsquo; original design.<\/p><h3 class=\"wp-block-heading\" id=\"h-forgoing-design-and-keeping-only-the-content\">Forgoing design and keeping only the content<\/h3><p>If you&rsquo;re okay with leaving behind the old HTML website design and want to use a new theme instead, this is your option. This method will also make importing content much easier.<\/p><p>All you have to do is to <a href=\"\/in\/tutorials\/wordpress\/how-to-install-wordpress-themes\" target=\"_blank\" rel=\"noreferrer noopener\">install the theme<\/a> you prefer and activate it, then follow the steps below.<br><\/p><p><div><p class=\"important\"><strong>Important!<\/strong> Always <a href=\"\/in\/tutorials\/backup-wordpress\">backup your WordPress site<\/a> before making any change.<\/p><\/div>\n\n\n\n<\/p><h4 class=\"wp-block-heading\" id=\"h-1-install-import-plugin-2\">1. Install Import Plugin 2<\/h4><p>You need to install the <a href=\"https:\/\/wordpress.org\/plugins\/import-html-pages\/\" target=\"_blank\" rel=\"noopener noreferrer\">Import Plugin 2<\/a>. Go to <strong>Plugins -&gt; Add New<\/strong> and search it by name. You&rsquo;ll find it a little bit further down as it&rsquo;s quite an old plugin but still does a great job. Click <strong>install<\/strong> and <strong>activate<\/strong> it.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/html-import-plugin.jpg\"><img decoding=\"async\" width=\"900\" height=\"483\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/html-import-plugin.jpg\" alt=\"HTML Import plugin\" class=\"wp-image-15398\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/html-import-plugin.jpg 900w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/html-import-plugin-150x81.jpg 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/html-import-plugin-300x161.jpg 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/html-import-plugin-768x412.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/a><\/figure><\/div><h4 class=\"wp-block-heading\" id=\"h-2-preparing-the-import\">2. Preparing the import<\/h4><p>Now, go to WordPress <strong>Settings -&gt; HTML Import<\/strong>. You can import several pages at once or one at a time.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/html-import-setting.jpg\"><img decoding=\"async\" width=\"900\" height=\"593\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/html-import-setting.jpg\" alt=\"HTML import settings\" class=\"wp-image-15399\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/html-import-setting.jpg 900w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/html-import-setting-150x99.jpg 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/html-import-setting-300x198.jpg 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/html-import-setting-768x506.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/a><\/figure><\/div><p>You&rsquo;ll notice that the plugin points to a specific path like <strong>html-files-to-import<\/strong>. It means that you need to upload the HTML file to the same server as your WordPress installation. In case you need more details, you can refer to the <a href=\"http:\/\/stephanieleary.com\/code\/wordpress\/html-import\/html-import-2-user-guide\/\" target=\"_blank\" rel=\"noopener noreferrer\">official user guide<\/a>.<\/p><p>In this tutorial, we&rsquo;re going to import the content. To do that, choose the HTML tag at the top and select its configuration in the following three fields.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/content-import-setting.jpg\"><img decoding=\"async\" width=\"900\" height=\"479\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/content-import-setting.jpg\" alt=\"Content import setting\" class=\"wp-image-15400\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/content-import-setting.jpg 900w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/content-import-setting-150x80.jpg 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/content-import-setting-300x160.jpg 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/content-import-setting-768x409.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/a><\/figure><\/div><p>Once you&rsquo;re done, click <strong>save settings<\/strong>.<\/p><h4 class=\"wp-block-heading\" id=\"h-3-start-importing-your-content\">3. Start importing your content<\/h4><p>The <strong>Import Files<\/strong> button will be available once you save the settings. If you missed it, you can also access it from <strong>Tools -&gt; Import<\/strong> and click <strong>Run Importer<\/strong> under the HTML options.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/start-import-content.jpg\"><img decoding=\"async\" width=\"900\" height=\"264\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/start-import-content.jpg\" alt=\"Start import content\" class=\"wp-image-15401\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/start-import-content.jpg 900w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/start-import-content-150x44.jpg 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/start-import-content-300x88.jpg 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/start-import-content-768x225.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/a><\/figure><\/div><p>Choose if you want to import a directory of files or a single file, then click <strong>Submit<\/strong>. Once done, all of your existing content will be available on your new WordPress site.<\/p><h3 class=\"wp-block-heading\" id=\"h-using-a-child-theme-adapted-from-an-existing-theme\">Using a child theme adapted from an existing theme<\/h3><p>If you want to retain some of your old website&rsquo;s design but feel the first method is a bit overwhelming, then using a child theme can be a simple alternative.<\/p><p>Child themes allow you to take advantage of thousands of existing themes (which are called parent themes) on WordPress and build your new site on top of them.<\/p><p>You can also make changes to the appearance of your site without disturbing the parent theme&rsquo;s core. You won&rsquo;t lose any modifications made when updating your theme.<\/p><p>We&rsquo;ve written a more advanced article on <a href=\"\/in\/tutorials\/how-to-create-wordpress-child-theme\" target=\"_blank\" rel=\"noopener noreferrer\">how to create<\/a>&nbsp;a WordPress child theme. In this tutorial, we&rsquo;ll use <a href=\"https:\/\/wordpress.org\/plugins\/childify-me\/\" target=\"_blank\" rel=\"noopener noreferrer\">Childify Me<\/a> to simplify the process for beginners.<br><\/p><p><div><p class=\"important\"><strong>Important!<\/strong> Always backup your WordPress site before making any change.<\/p><\/div>\n\n\n\n<\/p><h4 class=\"wp-block-heading\" id=\"h-1-pick-a-suitable-theme\">1. Pick a suitable theme<\/h4><p>You need to find a suitable theme as a base for you to build on. It will be great if you can find a theme that&rsquo;s close to your old website design, so you don&rsquo;t have to change too many things later.<\/p><p>Browse the <a href=\"https:\/\/wordpress.org\/themes\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress theme directory<\/a> to find a suitable candidate. In this tutorial, we&rsquo;ll use the <a href=\"https:\/\/wordpress.org\/themes\/twentyseventeen\/\" target=\"_blank\" rel=\"noopener noreferrer\">Twenty Seventeen<\/a> theme as our starting point.<\/p><h4 class=\"wp-block-heading\" id=\"h-2-install-childify-me\">2. Install Childify Me<\/h4><p>Go to <strong>Plugins -&gt; Add New<\/strong> and search it by name. <strong>Install<\/strong> and <strong>activate<\/strong> it.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/install-childfy-me.jpg\"><img decoding=\"async\" width=\"900\" height=\"381\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/install-childfy-me.jpg\" alt=\"Install Childfy Me\" class=\"wp-image-15403\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/install-childfy-me.jpg 900w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/install-childfy-me-150x64.jpg 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/install-childfy-me-300x127.jpg 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/install-childfy-me-768x325.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/a><\/figure><\/div><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>The Childify Me plugin creates <strong>style.css<\/strong> and <strong>function.php<\/strong> files. If you want to add custom functions in a <strong>functions.php<\/strong> file, new folders\/files, you can upload them by using an FTP client. If you use Hostinger, our <a href=\"https:\/\/us-files.hostinger.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">File Manager<\/a> will help manage your files right from the control panel.<\/p>\n                <\/div>\n\n\n\n<\/p><h4 class=\"wp-block-heading\" id=\"h-3-customize-the-parent-theme\">3. Customize the parent theme<\/h4><p>Now go to <strong>Appearance -&gt; Themes<\/strong>. Make sure that the parent theme is activated. Click <strong>Customize<\/strong>, and navigate to the customization panel of your active theme.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/customize-the-active-theme.jpg\"><img decoding=\"async\" width=\"804\" height=\"654\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/customize-the-active-theme.jpg\" alt=\"Customize the active theme\" class=\"wp-image-15405\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/customize-the-active-theme.jpg 804w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/customize-the-active-theme-150x122.jpg 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/customize-the-active-theme-300x244.jpg 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/customize-the-active-theme-768x625.jpg 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/customize-the-active-theme-260x210.jpg 260w\" sizes=\"(max-width: 804px) 100vw, 804px\" \/><\/a><\/figure><\/div><h4 class=\"wp-block-heading\" id=\"h-4-childify-the-parent-theme\">4. Childify the parent theme<\/h4><p>Click the <strong>Childify Me<\/strong> button, and give your child theme a name. We suggest you name it similar to the parent theme. Click <strong>create<\/strong>. Once you&rsquo;re done, click <strong>activate and preview<\/strong>.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/childify-the-parent-theme.jpg\"><img decoding=\"async\" width=\"527\" height=\"1024\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/02\/childify-the-parent-theme-527x1024.jpg\" alt=\"Childify the parent theme\" class=\"wp-image-15406\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/childify-the-parent-theme-527x1024.jpg 527w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/childify-the-parent-theme-77x150.jpg 77w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/childify-the-parent-theme-154x300.jpg 154w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2019\/02\/childify-the-parent-theme.jpg 600w\" sizes=\"(max-width: 527px) 100vw, 527px\" \/><\/a><\/figure><\/div><h4 class=\"wp-block-heading\" id=\"h-5-start-importing-your-content\">5. Start importing your content<\/h4><p>Now that your new WordPress site looks like the old static HTML version, all that&rsquo;s left is to import the content. Here, you can use the previous method.<\/p><p>You&rsquo;ve successfully moved your static HTML website to WordPress. Congratulations!<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Find out other ways to migrate to WordPress<\/h4>\n                    <p><a href=\"\/in\/tutorials\/wix-to-wordpress\/\">Wix to WordPress<\/a><br>\n<a href=\"\/in\/tutorials\/how-to-migrate-from-squarespace-to-wordpress\">Squarespace to WordPress<\/a><br>\n<a href=\"\/in\/tutorials\/how-to-migrate-from-blogger-to-wordpress\">Blogger to WordPress<\/a><br>\n<a href=\"\/in\/tutorials\/how-to-migrate-from-joomla-to-wordpress\">Joomla to WordPress<\/a><br>\n<a href=\"\/in\/tutorials\/how-to-move-wordpress-from-a-subfolder-to-the-root-directory\">Move WordPress from Subfolder to Root<\/a><\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>We&rsquo;ve covered what needs to be done before converting a static HTML site to WordPress and the different methods of completing the process.<\/p><p>A quick recap &ndash; you can create a WordPress theme from scratch. It&rsquo;s a difficult method but a great option if you know how to code and have some spare time to invest.<\/p><p>Alternatively, you can also use plugins to make the conversion a lot easier, and import all of your content to its new home.<\/p><p>We hope that this article helps ease the process. See you in the next one!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, you&rsquo;ve been looking at recent statistics, saying that WordPress currently powers 33% of websites on the internet. As a website owner, you might consider converting your static HTML website to WordPress. While it&rsquo;s still okay to have an HTML-based website as HTML5 is quite powerful, especially for a showcase site. But for everything else, [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/in\/tutorials\/how-to-convert-html-to-wordpress\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":100,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"","rank_math_description":"","rank_math_focus_keyword":"","footnotes":""},"categories":[22635,22633],"tags":[],"class_list":["post-15380","post","type-post","status-publish","format-standard","hentry","category-website-management","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-convert-html-to-wordpress","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/converter-site-html-para-wordpress","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-convertir-html-vers-wordpress","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-convert-html-ke-wordpress","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-convert-html-to-wordpress","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-convert-html-to-wordpress","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-convert-html-to-wordpress","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/converter-site-html-para-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-convert-html-to-wordpress","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-convert-html-to-wordpress","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-convert-html-to-wordpress","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-convert-html-to-wordpress","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/15380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/users\/100"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/comments?post=15380"}],"version-history":[{"count":38,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/15380\/revisions"}],"predecessor-version":[{"id":126855,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/15380\/revisions\/126855"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/media?parent=15380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/categories?post=15380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/tags?post=15380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}