Step 3: Separate Existing HTML

WordPress usually uses PHP to pull database information. As a result, you need to break your HTML into multiple pieces so that the CMS can bind them together in a proper manner.

This may look complicated but it is just to copy parts of the original HTML document into several different PHP files.

Now, open your index.html file.

Copy the code from the WordPress files that were developed and paste it into the following areas listed below:

  1. Header.php – Anything from the beginning of your HTML code up to the main content area falls under this category. You’ll have to copy and paste <?php wp_head();?> right before this designated section </head> 
  2. Sidebar.php – This is where you’ll paste all of the code from the portion marked as <aside>
  3. Footer.php – This section runs from the bottom of the sidebar and goes up to the end of the file. <?php wp_footer();?>  should be called before using </body> to close the bracket. 

After completing that, close the “index.html” file and save your other data to the theme folder.

Close all of the files and just keep header.php and index.php open. 

10 replies on “WORDPRESS”

This is very fascinating, You’re an excessively skilled blogger. I have joined your feed and sit up for seeking extra of your excellent post. Additionally, I’ve shared your website in my social networks!

Hmm is anyone else having problems with the pictures on this blog loading? I’m trying to figure out if its a problem on my end or if it’s the blog. Any feedback would be greatly appreciated.

Thanks for every other informative blog. The place else may just I get that kind of info written in such an ideal means? I’ve a venture that I am simply now working on, and I have been on the glance out for such information.

Thank you for sharing excellent informations. Your website is very cool. I am impressed by the details that you’ve on this blog. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for more articles. You, my friend, ROCK! I found simply the info I already searched all over the place and just couldn’t come across. What a great website.

Comments are closed.