Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i bought a new template from themeforest and it has a blog template named as blog (the main blog template), blog2 (alternative main blog template) and post which shows the inside of a post. i just checked some online tutorials but it says how to convert a simple html site to wordpress.

but i want to change the the layout, widgets and posts as in my html blog template. can some one explain me how can i convert this html blog to a wordpress template?

share|improve this question
    
Please always use upper-, lowercase letters, punctuation marks, etc. At least this is no chat. Thanks. –  kaiser Mar 2 '13 at 21:48
add comment

1 Answer

That is a much bigger topic than can be addressed here.

Please take a look at the WordPress Codex entry on Theme Development

Generally speaking, you break the HTML into a header, footer, and content area. The header goes into header.php, the footer goes into footer.php and the content area goes into index.php or another, more specific template file (like home.php, single.php, page.php, etc). You theme use theme functions and some basic while loops to output content from the database and onto the page. There's a lot more to it than just that, though (like styles.css, functions.php, etc).

Again, you really need to start by reading the codex.

Sidenote: You can also use the TwentyTwelve theme as reference. TwentyTwelve is included with all new WordPress downloads.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.