Experience says that many people prefer to use Microsoft Word to create content before publishing it live on WordPress. Perhaps you have a multi-authored blog and people are contributing their articles on your site or don’t want to give anyone access to the backend of WordPress. So, people send you articles via emails in different file formats and one of them is .docx file format.
Regardless of your case, you don’t have to resort to copying and pasting text from Word to the WordPress editor, you can convert .docx files in the WordPress post.
This method is not only much easier, but it also helps keep all of the formatting in the .DOCX.
First of all, install and activate Mammoth .docx converter WordPress plugin which is mainly designed to convert .docx documents into plain HTML. Mammoth converter actually converts any paragraph tag with
h1 elements, rather than attempting to exactly copy the styling of the heading. This allows you to paste from Word documents without the usual mess.
Upon activation, you need to create a new post or edit an existing one. On the post edit screen, you will find the Mammoth .docx converter metabox below the post editor.
Simply click on the choose file button to select a .docx file from your computer.
If you can’t see the meta box, make sure that it’s selected by taking a look at the “Screen Options” for adding a post.
As soon as you select the .docx file, the plugin will show you three views for the documents.
There may be a large number of mismatches between the structure used by .docx and the structure of HTML so it is obvious that the conversion may unlikely to be perfect for more complicated documents.
- Tables. The formatting of the table itself, such as borders, is currently ignored, but the formatting of the text is treated the same as in the rest of the document.
- Footnotes and end-notes.
- Bold, italics, superscript and subscript.
- Text boxes. The contents of the text box are treated as a separate paragraph that appears after the paragraph containing the text box.
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.
Hope everything is clear. Good Luck.