⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Changing fonts from PHP



jgalak1
  • profile picture
  • Member

Posted 24 June 2020 - 18:06 PM

I've been using GroceryCRUD for a while now, and have had a request from my users to give them control over font selection.  I'm using the datatables theme, and I can see that it's set in the CSS file there, but what they want is per-user configuration.  I know almost nothing about CSS - that's always been one aspect of web programming that's a closed book to me :) .  The user management isn't a problem, and I can easily store the per-user preference, I'm just not sure how to actually set the font.

 

So, is there an easy way to change fonts dynamically from within the PHP code?  If anyone can suggest an easy solution, I'd be thrilled.