CSS not working properly for Dynamic Font

I’m using the provided code to dynamically change the font based on a dropdown selection. However, it works inconsistently - sometimes it functions correctly, and other times it doesn’t. I’m stuck and could really use your help. Could you point out any potential mistakes in my code or suggest alternative solutions?

Are you loading the font family/file? In the CSS you provided it seems like you are only referencing the font name but not loading the font family.

This topic was automatically closed after 70 days. New replies are no longer allowed.