开发者

Is there any good tutorials to convert HTML+ CSS to wordpress? [closed]

开发者 https://www.devze.com 2023-01-03 09:01 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not curr开发者_Python百科ently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not curr开发者_Python百科ently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

Is there any good tutorials to convert HTML+ CSS to Wordpress? not PSD 2 HTML? I mean if HTML CSS is available we just need to convert a XHTML CSS template to installable Wordpress 3.0 Theme? I'm not talking about PSD 2 HTML.

For example this is free CSS template http://www.freecsstemplates.org/preview/regeneracy/ I just want to download it and convert this css template into Wordpress 3.0 installable theme.

My question is just opposite to this question Convert Wordpress theme to plain XHTML+CSS


First of all you need to understand how wordpress templating system works. The best way to do this is to go through wordpress codex and understand the layout of themes in wordpress.

Even I started converting other CSS templates in to wordpress themes like this. I took out all the basic elements like 'header', 'footer', 'sidebars' and place them in appropriate places in wordpress theme. You can take an existing classic wordpress theme (default) and change it by replacing the elements. Once you start doing this, you will understand how themes work in wordpress.


I don't think there's an automated tool for that.

Wordpress themes are not just Html + Css: you have to call the appropriate Php Wordpress APIs in order to display your posts, categories, comments, etc.

Unfortunately, doing this from scratch is not trivial if you don't have any previous Php or Wordpress experience (it's not impossible either).

A possible alternative is to download an existing Wordpress theme and create a child theme from it, which basically means you can use it as a template and override some of its settings, for instance the Css file. Unfortunately, it is very unlikely that the Css classes used there would match those of your design, so you would still have to do a lot of tayloring.


I found this tutorial. This tutorial is not exactly about converting HTML+CSS to wordpress theme but this gives you a basic idea to create wordpress theme and how it works. After you know how wordpress theme works you can start adding wordpress' template tags and make it compatible with wordpress.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号