Support » Plugin: Blogger Importer » [Plugin: Blogger Importer] changing fonts on imported posts

Viewing 1 replies (of 1 total)
  • Plugin Author Workshopshed

    (@workshopshed)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Blogger Importer] changing fonts on imported posts’ is closed to new replies.