WordPress.org

Ready to get started?Download WordPress

Forums

Cleaning Microsoft Word Styling from and entire site (5 posts)

  1. ellissajayne
    Member
    Posted 1 year ago #

    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

  2. ellissajayne
    Member
    Posted 1 year ago #

    Any ideas?

  3. cynnie88
    Member
    Posted 1 year ago #

    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.

  4. ellissajayne
    Member
    Posted 1 year ago #

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

  5. cynnie88
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic