views:

2389

answers:

5

So there is a lot of posts on the internet about how to convert your XHTML+CSS theme to Wordpress, but I have a Wordpress theme and want to convert it (or un-convert it) back to just XHTML+CSS.

Has anyone done this before? Anyone know of any resources (tutorials etc.) that I can use to help me do this?

Thanks

+8  A: 

Wordpress renders html. If you want a static version of your wordpress site you could use Wget.

wget -l2 -r -p -k -E http://www.example.com/
cherouvim
+6  A: 

let's open the source code with your fave editor & replace WP functions with some test texts. if there's an "include" or "require" statement replace them with the destination file's contents. On the other hand you can run it on a server and just save the page as html, you'll have the static theme.

Sepehr Lajevardi
A: 
shennyg
+3  A: 

Visit the Wordpress web page in question, right click on the page and select view source. This will give you the XHTML. You can then find the CSS by going to the files linked in the header

Adam Pope
A: 

I tried this:

wget -l2 -r -p -k -E http://www.example.com/

It works great as far as it goes, but it does not pull over images in the CSS File, so you'll need to ftp over or upload the theme files.

Also make sure you're wordpress site is using "Pretty Permalinks" so you don't end up with wacky urls like (http://www.example.com/index.html%3Fpage_id=2.html).

This might be a pretty good security measure as well. Try hacking a static site.

gbennett