• skippy2dippy

    (@skippy2dippy)


    I am trying to make a one page website. There is a wordpress theme that I like. but I don’t want to use wordpress in this instance because it’s just one page and not worth the trouble. Can I do the following: 1) install the theme 2) view source 3) copy everything 4) paste the code that I just copied in notepad++ 5) save as something.html 6) upload something.html to host
    would this result in a functional website? will my set up have any issues? do you foresee any problems?
    by the way I dont know if this matters but the website has contact form 7.

Viewing 11 replies - 1 through 11 (of 11 total)
  • I don’t think what you describe will work, but there are ways. You can try using the plugin WP2Static (https://wordpress.org/plugins/static-html-output-plugin/). You can find other methods by googling “wordpress to static html”. The results are unlikely to be perfect – I don’t think the contact form will work, for example. If you allow comments you’ll have to use a third party tool like Disquis. But – it should provide a good starting point.

    phillcoxon

    (@phillcoxon)

    Hi @skippy2dippy,

    This is extremely unlikely to work. While you’ll copy all of the HTML for the page, the supporting CSS code that styles the page will mostly be stored in other files.

    Other parts of the page output may also be generated dynamically (sidebar, footer content etc) each time the page loads. While you may be able to copy a page with the content 7 form content on it visitors will not be able to use the form because the backend submission/handlin process will not be available in a HTML copy of the page.

    So the simple answer is no – it’s not going to work.

    Thread Starter skippy2dippy

    (@skippy2dippy)

    hi guys

    thank you so much for responding so quickly.
    Kenny Moore, this will be a purely static website. no comments. it’s just a one page landing page

    phillcoxon, all of the problems that you mentioned would occur if the html file were uploaded to a different domain than the domain where wordpress theme was installed. but my intention was to upload the html file to the same domain where the wordpress theme was installed.
    so domanin.com would be a wordpress based website and domain.com/something.html would be the html file that i uploaded and I would advertise domain.com/something.html as my website

    edit: another thought that i just had: I could delete index.php in root where wp was installed and upload the index.html that i created

    now you might be asking yourself “if you went through the trouble of installing wordpress, why not just keep it as your website?” If in the future something needs to be changed in the website, I want to edit the website using notepad++ instead of dealing with the hassle of wordpress.

    what problems would occur if I do this?

    Please feel free to try it and see, but I’m pretty sure it won’t work if you copy html from the source file. You *might* have decent results if you use WP to generate a cached page, then copied the HTML from the cached page – that’s kindof how WP2Static and other methods work (I think – I am no expert on this). But … unless you just like tinkering for tinkering’s sake – why reinvent the wheel? I would try the plugin or google for a tried and proven method.

    Thread Starter skippy2dippy

    (@skippy2dippy)

    kenny moore,
    but I need a reason why it wouldn’t work. just saying “I’m pretty sure it wouldn’t work” is not very scientific.

    Michael

    (@alchymyth)

    so domain.com would be a wordpress based website and domain.com/something.html would be the html file that i uploaded and I would advertise domain.com/something.html as my website

    what is the point of that?
    you have WordPress running anyway on your site, so you can just make one static page and have it to advertise your site.

    there is no saving on any resources to have that one page just as html.

    generally, it is no issue to copy the generated html from a WordPress page, and save it together with all relevant CSS to make a static html page.

    ‘contact form 7’ as a WordPress plugin needs the WordPress environment and the database, and will of course not work on that static html page.

    Thread Starter skippy2dippy

    (@skippy2dippy)

    michael,
    thanks. I already covered above why I would want to do this because i knew it would sound ridiculous to some people. I hope I don’t offend anyone here being that we ARE in a wordpress forum but I hate wordpress and I just want to edit my website in notepad++ whenever a change is needed and avoid the hassle of wordpress.
    i just came up with a solution for the contact form 7 issue, I would just change the form action to mail.php and upload a mail.php file in the same folder as index.html

    phillcoxon

    (@phillcoxon)

    Hi @skippy2dippy,

    I suggest the best option would be to copy the text content from the page and reformat it in your own HTML editor.

    As mentioned above there is no easy way to transfer the layout and CSS styling from a WordPress site into a single HTML page. It might take an experienced web developer 10+ hours to recreate a similar page in HTML.

    So really the simple answers are :

    1) There’s no easy way to do it.
    2) You’ll need extensive HTML/CSS experience or an experienced developer to assist you with this.

    “but I need a reason why it wouldn’t work. just saying “I’m pretty sure it wouldn’t work” is not very scientific.”

    You are absolutely right. The scientific way would be to try it, as I suggested.

    Open the site up in a browser like Firefox. Go to file save as and it will save an HTML version of the page. You can do that for any page you want to convert.

    One way is to get your wordpress website converted to HTML online through http://wordpress.ictvision.net/
    How does it work ?
    It is so simple . Just open the link , Put the URL of your wordpress site and click Submit and it will be converted and available to download .

    Make sure to disable CDN from your website first .

    Cheers

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘convert wordpress to html’ is closed to new replies.