• Resolved capecodvalet

    (@capecodvalet)


    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://www.ads-software.com/plugins/blogger-importer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Workshopshed

    (@workshopshed)

    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/

    Thread Starter capecodvalet

    (@capecodvalet)

    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.