Title: remove inline style?
Last modified: August 21, 2016

---

# remove inline style?

 *  Resolved [capecodvalet](https://wordpress.org/support/users/capecodvalet/)
 * (@capecodvalet)
 * [12 years ago](https://wordpress.org/support/topic/remove-inline-style/)
 * I just imported a Blogger blog for someone and all of their posts have inline
   styles that override the WordPress theme’s fonts. I guess I’m looking for either
   an option in the importer to remove inline styles or a plugin that will bulk 
   update all of the WordPress posts.
 * If no one has a suggestion (I know I can add “!important” to all my fonts in 
   the theme, but I really want the posts to be cleaned up), I may just write a 
   quick plugin myself.
 * Thanks!
 * – Fred.
 * [https://wordpress.org/plugins/blogger-importer/](https://wordpress.org/plugins/blogger-importer/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Workshopshed](https://wordpress.org/support/users/workshopshed/)
 * (@workshopshed)
 * [12 years ago](https://wordpress.org/support/topic/remove-inline-style/#post-4933851)
 * There are no settings but the code that handles the cleaning is in blogger-importer-
   sanitize.php
 * It should strip out `<style>` and `<font>` tags but I see we specifically allow
   the style attributes. You could try adding that into the line
 * `var $strip_attributes`
 * and then you will need to delete (empty trash) and re-import all the posts.
 * You could alternatively try a search and replace option. That would work well
   if all of the things you want to remove are identical.
 * [https://interconnectit.com/products/search-and-replace-for-wordpress-databases/](https://interconnectit.com/products/search-and-replace-for-wordpress-databases/)
 *  Thread Starter [capecodvalet](https://wordpress.org/support/users/capecodvalet/)
 * (@capecodvalet)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/remove-inline-style/#post-4934032)
 * Looks like I can probably use search & replace to do the job. If not I’ll try
   hand editing the importer code and redo the import.
 * Thanks for the help!
 * – Fred.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘remove inline style?’ is closed to new replies.

 * ![](https://ps.w.org/blogger-importer/assets/icon.svg?rev=2828582)
 * [Blogger Importer](https://wordpress.org/plugins/blogger-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blogger-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blogger-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/blogger-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blogger-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blogger-importer/reviews/)

## Tags

 * [convert](https://wordpress.org/support/topic-tag/convert/)
 * [inline style](https://wordpress.org/support/topic-tag/inline-style/)

 * 2 replies
 * 2 participants
 * Last reply from: [capecodvalet](https://wordpress.org/support/users/capecodvalet/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/remove-inline-style/#post-4934032)
 * Status: resolved