# 🛠technical-support
Naaz
Naaz·19 replies

HI Team, We''re facing an issue on our end and the AI-widget is still rendering Inter font on entering the website.

From debugging the issue, it appears the font is getting updated due to script widget on site-level font.

The whole context is shared here on the Screen recording tagged below: Sharing the short loom video below to showcase the issue in depth. https://www.loom.com/share/ce5995fe7c77459292232a9ec5b2f6dc

To resolve this issue, we need support from your team of AI widget platform so you can dive deeper and update from your end related to this issue. Thanks

Peeyush | YourGPT
Peeyush | YourGPT24/02/2026 06:33

Hi @Naaz , it seems you’re having an issue with a font-family mismatch. You want your project’s font family to be applied to the search widget, is that correct?

Naaz
Naaz24/02/2026 06:37

@Peeyush Yes

Peeyush | YourGPT
Peeyush | YourGPT24/02/2026 06:39

Okay, I’ll get in touch with my team and get back to you as soon as possible.

Naaz
Naaz24/02/2026 06:39

Thanks @Peeyush Waiting on it.

Peeyush | YourGPT
Peeyush | YourGPT24/02/2026 07:45

Could you share the script please for search widget which you were trying to inject?

Naaz
Naaz24/02/2026 08:41

For Inplace you have to give id="ygc-search-widget-root" to the element you want to render your Search Widget in. The widget will be rendered inside the element with this ID.

@Peeyush

Peeyush | YourGPT
Peeyush | YourGPT24/02/2026 09:19
<script>
    window.YGC_SEARCH_WIDGET = {
      id: "c8662275-386a-420c-8cdd-c4ad6175b2c2",
      type: "inplace",
    };
    (function () {
      var style = document.createElement("style");
      style.textContent = `
        #ygc-search-widget-root#ygc-search-widget-root * {
          font-family: inherit;
        }
      `;
      document.head.appendChild(style);
      var script = document.createElement("script");
      script.src = "https://search-widget.yourgpt.ai/script.js";
      script.id = "ygc-search-widget-script";
      document.head.appendChild(script);
    })();
  </script>

I've added few fixes in the script could you please test it, give a hard refresh please, sometimes the old one's are cached aswell.

standard1
Naaz
Naaz24/02/2026 11:24

@Peeyush This has not helped, the Inter font is still coming. What to do now?

Peeyush | YourGPT
Peeyush | YourGPT24/02/2026 11:31
<script>
window.YGC_SEARCH_WIDGET = {
      id: "c8662275-386a-420c-8cdd-c4ad6175b2c2",
      type: "inplace",
    };
    (function () {
      var style = document.createElement("style");
      style.textContent = `
        #ygc-search-widget-root#ygc-search-widget-root * {
          font-family: "Lato", sans-serif !important;;
        }
      `;
      document.head.appendChild(style);
      var script = document.createElement("script");
      script.src = "https://search-widget.yourgpt.ai/script.js";
      script.id = "ygc-search-widget-script";
      document.head.appendChild(script);
    })();
</script>

Try this instead ☝️ "Lato", sans-serif is the font you are using I suppose, whichever font family you are using, you can replace it with the current font family in the script and then try

Naaz
Naaz25/02/2026 07:17

@Peeyush Still the same issue is occuring.

Peeyush | YourGPT
Peeyush | YourGPT25/02/2026 07:54

I will consider this issue with my team, and will get back to you soon.

standard1
Naaz
Naaz26/02/2026 06:29

@Peeyush Any updates?

Sahil | YourGPT
Sahil | YourGPT26/02/2026 09:43

hello @Naaz
What font family would you like for the widget? I can see you have multiple font families used on your website.

Naaz
Naaz26/02/2026 13:23

@Sahil based upon html tags it needs to be Montserrat and lato

Naaz
Naaz27/02/2026 08:49

@Sahil Any updates?

Sahil | YourGPT
Sahil | YourGPT27/02/2026 09:09

The font on your widget is already in Lato, as you mentioned above.

Naaz
Naaz27/02/2026 11:47

After inspecting the issue, I noticed that the Inter font family is being applied from the ID ygc-search-widget-root, which is currently interfering with the website’s default fonts. Would it be possible to update it to use the website’s font families : Lato and Montserrat ; instead? This should resolve the font inconsistency issue across the site.

Sahil | YourGPT
Sahil | YourGPT27/02/2026 15:50

Please check now it has been removed.

standard1
Naaz
Naaz03/03/2026 05:30

Thank you for your support @Sahil This is resolved , you can mark this closed.

standard1