{"id":256,"date":"2012-08-30T16:42:32","date_gmt":"2012-08-30T14:42:32","guid":{"rendered":"https:\/\/wprealm.com\/?p=256"},"modified":"2019-01-05T16:39:29","modified_gmt":"2019-01-05T15:39:29","slug":"making-the-transition-from-html-to-wordpress-where-do-you-begin","status":"publish","type":"post","link":"http:\/\/wprealm.local\/making-the-transition-from-html-to-wordpress-where-do-you-begin\/","title":{"rendered":"Making the Transition from HTML to WordPress. Where do you Begin?"},"content":{"rendered":"\n
A few weeks ago at our local WordPress Meetup<\/a>, we were having a round table discussion and someone asked<\/p>\n\n\n\n “How do I start? I currently have an HTML site and would like to convert it to WordPress, but I don’t know where to begin.”<\/p><\/blockquote>\n\n\n\n That question took me a few years back when I was first dipped my toe into WordPress theming.<\/p>\n\n\n\n I had been designing websites for years, had just learned CSS and ditched my tables, I had a blog, but I was looking at my other pages and thought how do I integrate this other content with my WordPress site?<\/p>\n\n\n\n When learning web design, you first learn that CSS allows you to separate presentation from content. WordPress takes that concept even further by separating the HTML from the content and storing all content in the database.<\/p>\n\n\n\n Once you’ve grasped that concept, you also need to know the difference between the various WordPress content types.<\/p>\n\n\n\n When you plan your WordPress site, the first thing you’ll want to do is simply upload your content. Create your pages, decide if you want a blog or not and make sure you’ve got everything in place.<\/p>\n\n\n\n\n\n\n\n Once you’ve inserted your content and created your pages and posts, you can then move on to the fun stuff and start designing and breaking stuff. Yes that’s right breaking it.<\/p>\n\n\n\n You remember that story about the clock maker who gave his son a watch? What did his son do? Take it apart of course… that’s how you learn. We’ve all taken stuff apart to see how it works, the same is true for learning WordPress.<\/p>\n\n\n\n The first thing you should do is select a theme and make a child theme<\/a>. Any theme will do, but I would recommend sticking to a popular theme from the WordPress repository<\/a>. I would also try to pick a theme that has fewer files. Nothing is more frustrating that looking at a theme that consists of 1000 files.<\/p>\n\n\n\n Once you’ve selected your theme, take a closer look at individual files and try to understand what does what. You’ll notice that the folks at WordPress have made things easy and the filenames are quite logical.<\/p>\n\n\n\n Once you’re comfortable with the template, copy the ones you want to play with, add them to your child theme and grab your hammer. Just comment PHP code out or take it out altogether. Look at the site and see what happened. If you’re site suddenly goes blank, then just hit the undo key. The good thing about working with a child theme is that, if you get into trouble, the parent theme is still intact, so you can just go and grab the original copy and start over.<\/p>\n\n\n\n As a web designer, I shouldn’t have to remind you that you’ll need to set up a play area. You probably want to have your text editor and work on your local machine or set up a dummy sit on your hosting provider.<\/p>\n\n\n\n Once you’ve moved things around, you might get stuck. WordPress has put a few tools in place for you to use. You will notice in your Take the time to learn how to use Firebug or the Chrome developer tools. Both are very handy tools that will help you make edits and small changes to your theme. Have a look at Siobhan’s excellent tutorial on how to use Firebug<\/a> or check out Devin’s video about Chrome’s developer tools<\/a>.<\/p>\n\n\n\n CSS is both fantastic and frustrating. Sometimes getting it to do what you want is so tedious. The first thing I do when debugging CSS is add background colors to the area I’m working. These boxes of colors are great visual indicators and give you immediate clues as to what’s going on.<\/p>\n\n\n\n Finally if you ever get stuck, don’t forget the WordPress forum. We’ve all been there and most likely made the same mistake you are making now. If you post your question on the forum, we might be able to help, just make sure you read Andrea’s tips first<\/a>. Following her advice will increase your chance of success exponentially.<\/p>\n","protected":false},"excerpt":{"rendered":" A few weeks ago at our local WordPress Meetup, we were having a round table discussion and someone asked “How do I start? I currently have an HTML site and would like to convert it to WordPress, but I don’t know where to begin.” That question took me a few years back when I was […]<\/p>\n","protected":false},"author":12,"featured_media":297,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[4],"tags":[47,133],"people":[],"company":[],"events":[],"acf":[],"yoast_head":"\nThinking of Content Differently<\/h2>\n\n\n\n
Understanding Themes and Templates<\/h2>\n\n\n\n
header.php<\/code> has all the HTML that generates the header,<\/li>
index.php<\/code> contains the main content of your site and pulls the latest blog posts<\/li>
sidebar.php<\/code> generates the sidebar content<\/li>
footer.php<\/code> creates the content found in the footer area<\/li><\/ul>\n\n\n\n
Tips and Tricks<\/h2>\n\n\n\n
header.php<\/code> that the <body> tag has a function in it called
body_class()<\/code><\/a>. This function generates a string of information including the name of the template used. If you’ve ever wondered why a certain change isn’t sticking and you’re not sure what template is being called, just look at the HTML source and look for the template name in the body tag.<\/p>\n\n\n\n