Title: migrating HTML into WP issue
Last modified: August 18, 2016

---

# migrating HTML into WP issue

 *  Resolved [mzimmers](https://wordpress.org/support/users/mzimmers/)
 * (@mzimmers)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/migrating-html-into-wp-issue/)
 * 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:
 * [http://www.scopedin.com/wordpress/?page_id=22](http://www.scopedin.com/wordpress/?page_id=22)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/migrating-html-into-wp-issue/#post-653344)
 * _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](https://wordpress.org/support/users/mzimmers/)
 * (@mzimmers)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/migrating-html-into-wp-issue/#post-653350)
 * 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.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/migrating-html-into-wp-issue/#post-653354)
 * 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](https://wordpress.org/support/users/mzimmers/)
 * (@mzimmers)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/migrating-html-into-wp-issue/#post-653361)
 * 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.

## Tags

 * [break](https://wordpress.org/support/topic-tag/break/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [line](https://wordpress.org/support/topic-tag/line/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [mzimmers](https://wordpress.org/support/users/mzimmers/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/migrating-html-into-wp-issue/#post-653361)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
