Hi,
Can anybody help me to add active theme id as <html> or <body> CSS class?
I need to write some styles and need different attributes for some themes.
We don’t use the name as an ID, just a number. You can find a theme’s ID by looking at the URL when you’re customizing a theme in the admin panel… for example https://forum.example.come/admin/customize/themes/140
If you can get by with the ID and not the name, this would be a quick way to do it (added to your theme/component’s head file):