We help IT Professionals succeed at work.

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

badwolfff
badwolfff asked
on
482 Views
Last Modified: 2014-08-02
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
Comment
Watch Question

CERTIFIED EXPERT
Expert of the Year 2014
Top Expert 2014

Commented:
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

Author

Commented:
Yes they are inline styles
thanks for your message
CERTIFIED EXPERT
Expert of the Year 2014
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.