WordPress.org

Ready to get started?Download WordPress

Forums

Convert WordPress theme to HTML and CSS (5 posts)

  1. puffl
    Member
    Posted 4 years ago #

    Hi,

    How can I go about converting a WordPress theme into HTML and CSS to make a static website. There are loads of tutorials about how to convert HTML and CSS into a WordPress theme, but how do you go the other way??

    Thanks!

  2. s_ha_dum
    Member
    Posted 4 years ago #

    Get something like Httrack or Webget and grab the site, or the parts you want.

    You can also just take the theme files, replace the PHP function calls with static text, and basically copy and paste the various files into complete html files. For example, header.php and footer.php would need to be pasted into every static file (unless you can use server side includes). That is the advantage of crawling the site. The crawler will build these many pages for you.

    Why are you trying to make a static page? Those things are hell to maintain. Is it possible to keep minimal PHP just to include headers and such?

  3. abdweb7
    Member
    Posted 3 years ago #

    I am looking to do this myself for an ex-client who is transferring his hosting elsewhere. I have given him a copy of the database and have offered a static copy of the site. Unfortunately, I am having problems with the static part.

  4. Joseph
    Member
    Posted 3 years ago #

    Can't you just view the page in a browser, copy the source and download the style sheets?

  5. abdweb7
    Member
    Posted 3 years ago #

    Sadly no, there are over 100 pages and there is some javascript used, I have tried many caching plugins but not quite right. I have just found Really Static and am trying that.

Topic Closed

This topic has been closed to new replies.

About this Topic