WordPress.org

Ready to get started?Download WordPress

Forums

Blogger Importer
changing fonts on imported posts (2 posts)

  1. madamanda
    Member
    Posted 1 year ago #

    Hi, I'm a novice at this and i'm trying to match the fonts of my imported posts with the rest of my new blog. Please let me know if that is possible, and if so, how! Many thanks!

    http://wordpress.org/extend/plugins/blogger-importer/

  2. Workshopshed
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Amanda,
    the importer should remove any font tags from the blogger data so that your theme can apply it's own fonts.
    However it won't strip them if you've used inline styles e.g.

    <p style="font:15px arial,sans-serif;">

    Assuming that is your problem you can make the importer strip those too by editing the code slightly.

    In the file:

    blogger-importer-sanitize.php

    You will see a line

    var $strip_attributes = array('bgsound', 'class', 'expr', 'id', 'imageanchor', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc', 'trbidi');

    Change that to be:

    var $strip_attributes = array('bgsound', 'class', 'expr', 'id', 'imageanchor', 'onclick', 'onerror', 'onfinish', 'onmouseover', 'onmouseout', 'onfocus', 'onblur', 'lowsrc', 'dynsrc', 'trbidi', 'style');

    You will need to delete the imported posts and then empty the trash. Then re-import them.

    Cheers,

    Andy

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic