Hello,
I am working on a site and I need to add custom css classes. My problem is that I am not able to add global css by clicking on the “Add global.css” button in the editor. The button does not appear to be disabled, but when pressing, nothing happends, and I get no feedback.
I am writing code via my IDE in local and have attempted to add a global.css file, even with a new commit on main, no luck. How can I add this file ? Thank you for any help.
If you’re unable to add a global CSS file through the Wix Editor, the key is to utilize Wix’s Velo development environment, as it doesn’t natively support traditional CSS file uploads. To inject custom styles globally, use the Velo API to apply CSS through JavaScript in the backend or directly within the site settings. This approach allows you to insert styles dynamically without relying on the “Add global.css” button. Additionally, you can upload CSS files to the Site Files section and reference them in the header. If the button issue persists, try refreshing or clearing your browser cache, as it might be a temporary glitch in the editor.