I would like to add a Custom Icon to the Categories. Not sure how or where to go? Any help would be greatly appreciated!
Thanks, I'll try it out later today
@DennisSun Widget system is in NodeBB, starting v0.4.1 (or maybe v0.4.2)...
@DennisSun Any errors on console?
this example works fine for me:
@frissdiegurke no error showed in log.
here is what I added:
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
The analytics code form baidu.com
document.write replaces the whole site use sth like
this seems to be what the script is supposed to do (or
http:// if you don't use TLS).
@frissdiegurke when using
document.write you can avoid replacing the whole site, but it cannot be loaded asynchronously aka injected (as it needs to execute immediately on DOM build), which is most likely the case on most NodeBB pages
@DennisSun if you want to have a dynamic the protocol, or maybe that string at the end, use something like