Jquery code turning email link into default style...?


I installed some javascript code that stops paragraphs from sometimes having a single word on the last line (a typographic widow). It works fine, however now my email link changes to blue and a default font whenever I publish my site. Does anyone know why and how to fix it?

Editor/designer site is here:

Published site with blue link is here:

This is the jquery code that I placed in the footer:

var string = $(this).html();
string = string.replace(/ ([^ ]*)$/,ā€™Ā $1ā€™);

Not related. You have a specificity issue. The browser user agent stylesheet is taking precedence and you have not specified a style for links to counter that or a class applied to links.

1 Like

Aha thank you, I amended the original link style and that worked. Cheers!