Avatar of badwolfff
badwolfff
Flag 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
jQueryJavaScriptHTML

Avatar of undefined
Last Comment
Gary

8/22/2022 - Mon
Gary

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
badwolfff

ASKER
Yes they are inline styles
thanks for your message
ASKER CERTIFIED SOLUTION
Gary

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23