{"id":63,"date":"2017-10-09T07:23:32","date_gmt":"2017-10-09T07:23:32","guid":{"rendered":"https:\/\/www.mohammedlakkadshaw.com\/blog\/?p=63"},"modified":"2017-10-09T07:23:32","modified_gmt":"2017-10-09T07:23:32","slug":"setup-wordpress-blog-static-homepage-ultimate-guide-2017","status":"publish","type":"post","link":"https:\/\/mohammedlakkadshaw.com\/blog\/setup-wordpress-blog-static-homepage-ultimate-guide-2017.html","title":{"rendered":"How to Setup WordPress blog with static homepage (Updated for 2017)"},"content":{"rendered":"<p>In the blog post, I will guide you through the process of setting up a static homepage for your WordPress blog when using the default TwentySeventeen theme.<\/p>\n<p>The process of setting up a static homepage for your blog is straightforward. follow the steps below to make it happen:<\/p>\n<h2>Step 1:\u00a0<strong>Upload your static homepage<\/strong><\/h2>\n<p>The first step will be to upload your static homepage into your site, to do this you&#8217;ll have to FTP or SFTP into your blog, you can find the information on how FTP into your blog from your hosting provider and you can use a program like FileZilla or Cyberduck to FTP into your blog.<\/p>\n<p>After you connect to your blog via FTP\/SFTP go to the themes folder of your WordPress installation, usually it is located at\u00a0<strong><em>htdocs\/wp-content\/themes\/&lt;theme_name&gt;\u00a0<\/em><\/strong>as we are editing the default &#8220;twentyseventeen&#8221; theme in our case the theme_name will be twentyseventeen\u00a0<strong><em>htdocs\/wp-content\/themes\/twentyseventeen\u00a0<\/em><\/strong><\/p>\n<p>Then in this folder, there will be a file named front-page.php, rename that file to front-page-old.php, if we don&#8217;t rename this file then WordPress will server this page as the homepage,\u00a0 so we have to change the name of the file from front-page.php to something else.<\/p>\n<p>After you have renamed the file, create new file name page_home.php in that folder, and paste the following contents into that file:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\n\n\/\/ Template name: Static Front Page\n\n?&gt;<\/pre>\n<p>After the ?&gt; tag paste the html content of your homepage in this file and save the file.<\/p>\n<p>Now go to the\u00a0<strong>htdocs<\/strong> folder and upload all the other static HTML pages you want to upload and CSS files associated with your homepage.<\/p>\n<h2>Step 2:\u00a0<strong>Updating Settings in WordPress<\/strong><\/h2>\n<p>Login to your WordPress Admin panel, Go to Pages-&gt;Add New, and create a new page with title Homepage and from the Page Attributes section select the Template as &#8220;Static Front Page&#8221; as shown in the\u00a0 image below, and save the page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-64 size-large\" src=\"https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen_Shot_2017-10-09_at_12_21_51_PM-1-1024x536.png\" alt=\"\" width=\"525\" height=\"275\" srcset=\"https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen_Shot_2017-10-09_at_12_21_51_PM-1-1024x536.png 1024w, https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen_Shot_2017-10-09_at_12_21_51_PM-1-300x157.png 300w, https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen_Shot_2017-10-09_at_12_21_51_PM-1-768x402.png 768w, https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen_Shot_2017-10-09_at_12_21_51_PM-1-1536x804.png 1536w, https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen_Shot_2017-10-09_at_12_21_51_PM-1-2048x1072.png 2048w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>Then we will also need a page to show our blog posts, Go to Pages-Add New and create another page, with title Blog, and edit the permalink of the page to \/blog.<\/p>\n<p>Then go Settings-&gt;Reading and in the section where it says &#8220;Front page displays&#8221; select &#8220;A static page&#8221; and from the drop-down select &#8220;Homepage&#8221; as the front page and &#8220;Blog&#8221; as the Post page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-65\" src=\"https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-09-at-12.25.37-PM-1-1024x731.png\" alt=\"\" width=\"525\" height=\"375\" srcset=\"https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-09-at-12.25.37-PM-1-1024x731.png 1024w, https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-09-at-12.25.37-PM-1-300x214.png 300w, https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-09-at-12.25.37-PM-1-768x548.png 768w, https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-09-at-12.25.37-PM-1-1536x1097.png 1536w, https:\/\/mohammedlakkadshaw.com\/blog\/wp-content\/uploads\/2017\/10\/Screen-Shot-2017-10-09-at-12.25.37-PM-1.png 1986w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Step 3:\u00a0<strong>That&#8217;s it!<\/strong><\/h2>\n<p>Following the above simple steps, you can setup the static homepage, let me know if you have any questions in the comments.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the blog post, I will guide you through the process of setting up a static homepage for your WordPress blog when using the default TwentySeventeen theme. The process of setting up a static homepage for your blog is straightforward. follow the steps below to make it happen: Step 1:\u00a0Upload your static homepage The first [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":70,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[9],"class_list":["post-63","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":0,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/media\/70"}],"wp:attachment":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}