删除<pre> tag in wordpress post

时间:2018-02-26 17:33:25

标签: wordpress

I pasted a microsoft word post into my wordpress post and after posting the post has a grey background and a border around it. Why did it occur and how to remove this so that this does not happen every time I paste into my wordpress post.

enter image description here

1 个答案:

答案 0 :(得分:0)

Word puts a bunch of markup into your text. If you look at the plain text version, you'll see it's a mess. Use something like https://wordpress.org/plugins/mammoth-docx-converter/ to upload your Word docs to WP. It's not perfect, but gets you cleaner markup.