I am trying to update the font in a rails app – specifically the text in a brand class in the top navbar. I was successful in changing the font using google web fonts already, but now when I try to update the font again, it seems to be “stuck” on the last font I used. I precompiled assets before deploying to heroku, which is what I think may be causing the problem. Now the changes are not updating locally or in production.
I have done a few things to troubleshoot but none seem to be working:
- Restarted the rails server
- Emptied the cache folder in the tmp folder
- Deleted public assets
- Tried precompiling assets again – the font change does not work locally or on heroku
- Tried targeting a more specific css selector (.navbar .brand versus .brand – it worked earlier for .brand so don’t think that is the issue)
- Cleared browsing history
Any ideas on what may be causing this?
Stupid mistake – had a navbar class styled in my css with font-style: monospace. After clearing that, everything worked – hopefully the troubleshooting steps help others!