Support » Fixing WordPress » Cleaning Microsoft Word Styling from and entire site

  • I have acquired a site that was once in Joomla, and before that in something else. The styling thoughtout the site is not uniform, and there is alot of styling displaying from word. Its a mess.

    Is there an easy way to clean through this? There are hundreds of posts, so I dont want to go post by post if I dont have to.

    Thanks for your suggestions

Viewing 4 replies - 1 through 4 (of 4 total)
  • Any ideas?

    I don’t know what you mean by ‘Word’ styling. If it’s markup you want to clear i don’t think it would be difficult to write a script to strip all tag elements from posts.

    Someone has copied text from word (I think) and so there are weird <span> styles throughout.

    Without seeing the site I can’t really tell you what is going on with the styles but I can tell you that copying and pasting from word would retain minimal styling. Span tags are a common form of styling individual lines, so it may or may not be intentional. Like I said it’s hard for me to advise you without seeing the site.

    I could give you a simple filter to put in your functions.php that would strip all tags and inline styles, but this would also apply to any future styling you did to the text. The alternative would be what I mentioned before: running a script to go through every post in the database and removing any tags.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cleaning Microsoft Word Styling from and entire site’ is closed to new replies.