How to Import a Microsoft Word .docx document into WordPress – If you have a blog or website built with WordPress but when you want to publish your writing, you prefer to type your writing in Microsoft Word first and when it’s finished you move or import it to WordPress. Importing documents from Microsoft word .docx to WordPress is usually done by copying and pasting directly in the visual editor and that can usually mess up the formatting you have created in the docx document.
In this article, I will show you how to import a.docx document into WordPress without breaking the format you have set in the docx document file.
Why and Why do you need to import .docx files to WordPress?
Some users prefer to write their articles in Microsoft Word, which comes with a built-in spell check, thesaurus, templates, styles and formats. WordPress’s default visual editor doesn’t offer all of these features.
Another reason is when your site accepts guest blogging. If you don’t want to give guest authors access to your WordPress admin area, then they often send their guest posts in either HTML or .docx document format.
Finally, you may already have some content stored in a .docx document. Copying and pasting from .docx can be difficult, especially if you have to copy content from several documents at once.
Below I will explain how you can properly import .docx documents in WordPress without breaking the format.
Importing .docx Documents in WordPress
After activation of the plugin, you need to create a new post or edit an existing one. On the post editor screen, you will find the Mammoth .docx converter metabox below the post editor.
Just click on the Select docx file button to select the .docx file from your computer.
As soon as you select the docx file, the plugin will display three viewing options for the document. In the Visual tab, you will see how the document will look in WordPress.
You will notice that it will ignore the styles applied to your .docx document such as text color, background color, padding, margins, etc. Instead, it will let your theme’s stylesheet control how things display.
You can also view the HTML generated by the converter by clicking on the Raw HTML button. You can click the message button to see if there were any warnings or errors during the conversion.
If you are satisfied with how the document looks in the visual tab, then you can click on the ‘Insert into editor’ button. The plugin will insert converted HTML into your WordPress post editor.
The Mammoth .docx converter plugin converts .docx files to HTML format compatible with WordPress. Currently, the plugin supports the following features:
- Headings: Heading 1, Heading 2, are converted into h1, h2, etc.
- Tables are imported without formating like border and cell colors
- Plain HTML formating like bold, italic, superscript, and subscript
- Images embedded in document are imported into WordPress
- Textboxes are converted into plain paragraphs
The plugin doesn’t make changes to your original .docx document, it doesn’t even save them on your WordPress site.
I hope this article helped you import docx documents in WordPress. Hopefully this is useful 🙂