Do you prefer writing your articles and blog posts on Microsoft Word instead of using WordPress? Want to import a .docx document straightaway and hassle free, instead of copying and pasting which usually breaks the formatting and messes up the whole document?
Well, look no further. In this article, I will show you how you can import .docx documents in WordPress with ease.
Why Write in Word Documents?
Most people who do blog and content writing tend to use Microsoft Word. There are a few reasons for this.
- To easily use various types of formatting, tools, text effects, templates, etc.
- Use the built-in spell check and thesaurus to organize their writing.
- Save and organize them as individual files on their hard drive. This helps in terms of future reference and distribution if necessary.
- Word documents come in handy in the scenario of guest blogging.
- If you don’t want to give guest authors access to the admin area then they usually would have to send their posts in word documents (.docx files).
- Maybe you already have some content saved in the form of word documents. It can be quite a difficult task to copy and paste from all those word documents.
On the contrary, the default visual editor provided in WordPress does not offer all these features. Considering all these situations, let’s take a look at how to properly import .docx document in WordPress without losing much of the formatting.
Import .docx Documents in WordPress
As the first step, you will need to install and activate a plugin called the Mammoth .docx Converter.
After the plugin has been activated, you will need to create a new post or edit an existing one.
On the post edit screen, just below the post editor, you will find the Mammoth .docx converter meta box. You can use this to upload the .docx files.
Just click on the choose file button to select the .docx file of your choice from your computer.
Upon selecting the .docx file, the plugin will give you three types of views for the document that you have uploaded. The Visual tab will show you how the document will appear in WordPress.
You will immediately notice that the converter will ignore any styles that have been applied to the uploaded document. These include but not limited to text color, background color, padding, margins, border etc. Instead, it will allow your theme stylesheet to control the display of those styles that have been applied.
By clicking on the Raw HTML button you can view the uploaded document in HTML format. The HTML is automatically generated by the converter.
Clicking on the Messages button will bring up any warnings or error messages that would have happened during the conversion.
If the document in the Visual Tab looks satisfactory, proceed to click on the “Insert into editor” button.
The plugin will then insert the converted .docx document into the WordPress post editor. You can continue to work on the post or save it and publish or update it as needed.
As of now, the plugin supports the following features.
- Heading styles, like Heading 1, Heading 2, are converted into h1,h2 tags.
- Lists are supported.
- Tables are imported – but formatting like borders and cell colors are left out.
- Plain HTML formatting options like Bold, Italic, Superscript, and Subscript etc.., are supported
- Images that are embedded within the word document can be imported into WordPress.
- All links in the document will stay intact.
- Text boxes will be converted into plain paragraphs.
The plugin, however, does not make any changes or alterations to your original .docx word document. The document itself is not stored on your WordPress site.
Similarly to importing .docx documents in WordPress, you can also import PDF files, spreadsheets and other types of documents.
Hope that helps and feel free to post any thoughts, questions, or feedback regarding the tutorial on how to import .docx documents in WordPress.