• Resolved mzimmers

    (@mzimmers)


    Hi, all –

    I have a bunch of HTML files that I’d like to migrate into my WP database. The first one I tried gave me an undesired result: wherever a line wrapped around in the original file, it seemed to get an invisible “<p>” tag. As a result, I’m getting line breaks all over the place where I don’t want them.

    I was just doing a cut and paste from my original file. Is there a preferred method of bringing code in that might obviate this problem? And…is there a way of dealing with this problem automatically, or do I need to just bite the bullet and fix it by hand?

    Thanks.

    Oh: an example of what’s happenening can be seen at:

    https://www.scopedin.com/wordpress/?page_id=22

Viewing 4 replies - 1 through 4 (of 4 total)
  • I was just doing a cut and paste from my original file.

    Into what? Directly to the DB? Or into the wysiwyg editor? Or into the plain html editor?

    Next Q: where are you copying from? The source code of the html file or the output… or something else?

    Thread Starter mzimmers

    (@mzimmers)

    1. I was using the Write Pages facility and pasting the code into the Page Content box. I wasn’t aware there was a WYSIWYG editor.

    2. I was copying from my .html file, edited by DW CS3.

    Thanks.

    1. Good that you don’t know about wysiwyg… it should be hidden from everybody ??

    2. Maybe it keeps the “formatting” from the source code, i.e. line breaks. When you paste something into WP’s Write text input area, if there is one line break in it – WP will insert a br; if there are two line break – WP will insert a p (paragraph).

    When you are writing posts/Pages – it is convenient, however, when transferring from other sources you need to make sure that the breaks (wrap) are not transfered.

    Thread Starter mzimmers

    (@mzimmers)

    2. Hmm…well, that’s not the answer I was hoping for, but…such is life. It doesn’t look like DW has an option to disable the paragraphs, so I guess I’ll be doing this by hand.

    Thanks for the information, though…I’ll mark this resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘migrating HTML into WP issue’ is closed to new replies.