Link to home
Start Free TrialLog in
Avatar of badwolfff
badwolfffFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How do I use jquery to change every instance of "font-family: 'Arapey',sans-serif;" to "font-family: 'Arapey',serif;" in runtime?

Hi all,

could someone please tell me how I could use jquery to change every instance of "font-family: 'Arapey',sans-serif;" to "font-family: 'Arapey,serif';" in runtime on my page by force (maybe also with an ! important at the end)?

For some annoying reason in my wordpress site when I choose google font arapey it appends "sans-serif" at the back of it, which is completely wrong as it is a "serif" font and I want it like that.

thanks in advance
Avatar of Gary
Gary
Flag of Ireland image

Are these inline styles?
If not you would have to investigate the css of every element and change the inline style to the font.
Not recommended.

Might be easier to give us a link to the site to see what the problem is
Avatar of badwolfff

ASKER

Yes they are inline styles
thanks for your message
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial