Blogger Importer
changing fonts on imported posts (2 posts)

  1. madamanda
    Posted 3 years 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!


  2. Workshopshed
    Plugin Author

    Posted 3 years 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:


    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.



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Blogger Importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic