• I’ve been tasked with the job of converting html page to WordPresss pages.

    To start, I copy N pasted the html into the text tab of the WP page editor. I deleted most of the head section except for the name mete tag and some scripts. also the link tags for the css. obviously I’ll need to create new folders for the original css and change the path in the link tag…

    My big question is this… Will this work?
    The page does display it just has some issues such as images that it can’t find etc. etc. Also not sure the JS scripts are working.

    Can WP see the HTML <HEAD> content </HEAD> section???

    does it recognize it???

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    >> My big question is this… Will this work? <<

    No.

    By the time the page content is rendered, the head portion of the site has already been generated. You should consider creating a proper theme to display your content and doing things the “WordPress way.”

    Get a copy of https://underscores.me, which gives you the framework to build a theme and take a look at https://developer.www.ads-software.com/themes/

    Thread Starter ronc0011

    (@ronc0011)

    Well, I think the customer is trying to do this on the cheap.

    Honestly I would never have thought to try and migrate an html site to WP.

    I’m thinking he would be better off just recreating the site from scratch.

    But I’m going to try my best to accommodate him.

    Thank you all the same.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I’ve done it, but it involved creating a theme that looks like the original site, then copy/pasting (with some adaption) the content areas only. The selling point was that once it was done, he could then manage all the content himself and save the money he was paying to someone who knew how to use DreamWeaver.

    If there aren’t that many pages, just copy the content HTML by hand to new WordPress pages. You’ll have to change links if your site structure changes, like for images. But images don’t have to move. You can set your image folder to be non-standard. You can also import the images using a plugin like Import Legacy Media or Add From Server.

    If there are a lot of pages, try to find a tool like Feedity that will generate a feed from your site, or use a plugin like Import from HTML. These are rough, but better than all manual.

    Either way, you shouldn’t copy anything but the main content of the page. Not the head section, not the scripts, not the menu or footer. All of this is handled by the theme, whichever one it is. Any scripts you have should be moved to plugins, so they will be controllable from the WP admin.

    Once you get the content, you can make it look like whatever you want, so try a new theme or two. Or use something like https://www.themematcher.com/ to get an exact match.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Convert html page to a WordPress page’ is closed to new replies.