NewGamePlus
Member
I've been trying to set up a system where the site font is replaced from a custom field, but $visitor seems to be null inside EXTRA.css. What am I doing wrong?
I've tested using the dumper: {xen:helper dump, $visitor} produces "<pre>NULL
</pre>".
The idea is to apply the font globally using this css:
* {
font-family: '{$visitor.customFields.font}', sans-serif !important;
}
I know it's dirty but we have like 8 themes and the font is defined everywhere multiple times, so I went with this hack.
site: new-game-plus.com
I've tested using the dumper: {xen:helper dump, $visitor} produces "<pre>NULL
</pre>".
The idea is to apply the font globally using this css:
* {
font-family: '{$visitor.customFields.font}', sans-serif !important;
}
I know it's dirty but we have like 8 themes and the font is defined everywhere multiple times, so I went with this hack.
site: new-game-plus.com