If you plan to use Google Fonts, you need to authorize HumHub to download Google Fonts by adding the https://fonts.gstatic.com
URL in the CSP Settings of the web.php
configuration file.
Example of configuration for the protected/config/web.php
file:
return [
'modules' => [
'web' => [
'security' => [
"csp" => [
"font-src" => [
"self" => true,
"allow" => [
"https://fonts.gstatic.com",
],
],
],
],
],
],
];
More information about the CSP configuration can be found in the HumHub documentation.
If you want to build a chid-theme over the Clean theme, see Documentation here and Wiki here.
You can start with this empty template, which is a child theme of the Clean
theme.
Use available CSS variables in protected/modules/clean-theme/resources/css/humhub.clean-theme.dynamic.css
.
Unzip it in the /themes
root folder (not in protected
).