Search code examples
jquerycufon

Change font for £ after page loaded


I have a situation where the font in a H3 element is being replace by Cufon with a font that does not have a pound L (£).

As a quick fix I want to replace any £ in H3 element with a different font AFTER cufon has done it's thing.

I think jQuery can do this. I guess it will have to replace the £ with a span tag which calls a different font?


Solution

  • Previous answer changes font for whole element, this does just the one character.

    $('h3').each(function() {$(this).html($(this).html().replace('&pound;','<span font="your font">&pound;</span>'));});