• Hi,
    I have a lot of HTML pages (which I created for a html site previously but never uploaded) with a huge amount of text interspersed (mixed) with enormous number of images. Now I want these html pages converted to wordpress and incorporate them in my WordPress site.
    Is there any shortcut or simple and easy way to convert all these html pages into wordpress or wordpress-ready condition with all the text and images remaining in their correct places? Normaly, I think I can copy+paste the text, but linking / embedding the innumerable big and small images in between various paragraphs or chunks of text individually would be really a herculean task – in fact, impossible for me at this point.
    What can I do now? Can anybody offer any solution???
    Thanks.

    • This topic was modified 3 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • A lots will depend on the structure of how the images are stored and how much of the html you want to keep.

    There are several different options.

    You can take a minimal approach where you keep the html files in place and write a custom template that extracts from the DOM the body content and displays that.
    This would mean that that page is displayed inside the WP header / footers, but of course you won’t be able to use WP editor on content.

    If you want full conversion you will need to ‘parse’ the html and get that into the database as ‘content’ and load the images into the appropriate ‘media folders ( in uploads ) and adjust the links.

    You can do this by coding a specific solution.

    However if you are able to manipulate the html to create a structured file ( e.g. csv ) containing the html relevant to the content ( inside body ) and some other basic info like page title there are import plugins that could help e.g. https://www.ads-software.com/plugins/wp-all-import/ ( other plugins are available )

    Thread Starter moreechika

    (@moreechika)

    Hi Alan,
    Thank you for your reply. Much appreciated. I am a complete beginner though and your solutions may not be suitable for me yet. Besides, I have way more than a thousand html pages and images put together or maybe more to convert – with time-constraints. So, I am looking for something quick, easy and automated as far as possible. I think I have found something, but I am not sure if it will work the way I hope it would. It’s an abandoned / depreciated plugin called “HTML Import 2”: https://www.ads-software.com/plugins/import-html-pages/ . Please let me know if you have any thoughts on this plugin. Thanks again!

    • This reply was modified 3 years, 7 months ago by moreechika.
    • This reply was modified 3 years, 7 months ago by moreechika.

    Well it might be worth a go on a test system

    I read the support threads ( always a god thing to do when considering plugins ) https://www.ads-software.com/support/plugin/import-html-pages/ and two bigger issues seems to stand out
    1. Not all images seem to get migrated
    2. does not work on php 7 ( but there is a fork on github https://github.com/seanvfs/HTML-Import-2 )

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Switching from HTML to WordPress’ is closed to new replies.