# Issue embedding Hugging Face model on WordPress site

> Source: <https://discuss.huggingface.co/t/issue-embedding-hugging-face-model-on-wordpress-site/167156#post_6>
> Published: 2026-08-05 07:28:10+00:00

I’ve been experimenting with Transformers and ran into a small issue when trying to fine-tune a model for text classification. Everything works fine locally, but when I deploy it on my wordpress-based site “[pocket champs mod](https://apkdazy.com/pocket-champs-mod-apk/)“ built with Kadence theme some scripts are being blocked in certain browsers which breaks the model’s interactive demo.

There may be multiple causes…

I faced a very similar issue while working on a client’s WordPress site “[ropeherroapk.com](http://ropeherroapk.com)”. The main problem turned out to be script handling and security restrictions from the theme and a couple of plugins. After testing plugin conflicts and adjusting the embed settings, it started working fine

This is a common challenge when bringing AI models into WordPress because different layers like themes, plugins, security settings, and browsers can affect how scripts load. I would check the browser console, CSP settings, and script loading methods first. Enqueuing scripts properly through a custom plugin or WordPress functions usually helps avoid conflicts. At [WPGrit](https://www.wpgrit.com/services/), we explore practical WordPress solutions, performance improvements, and modern web integrations, so issues like AI model embedding are a great example of why clean development practices matter. Hope you find the source of the conflict and get the model working smoothly.
