Code for changing search font doesn't work

Shoot this isn’t working for me :frowning: - I need Questrial font and then Arial and a sans serif as backup and my search is still showing serifed fonts.

2 Likes

Hi there, @Lisa_Stein :waving_hand:

This code works only when you add one font to the widget. If you’d like to use multiple fonts as backup, please try to use this CSS code:

* {
  font-family: Questrial, Arial, Helvetica, sans-serif !important;
}

Let me know if it helped :wink:

2 Likes

It looks like it worked on the elfsight side but not on my site:

2 Likes

Ah, sorry about that! Please let me double-check it with the devs.
I’ll get back to you tomorrow :slightly_smiling_face:

1 Like

Hi there, @Lisa_Stein :waving_hand:

Here is the adjusted code we’ve added to your widget

body > div[class*="Popup__Container-sc"] * {
  font-family: Questrial, Arial, Helvetica, sans-serif !important;
}


Please check your website and let me know if it’s fine now :slightly_smiling_face:

1 Like

thank you!

2 Likes

You’re always welcome :wink:

1 Like