The discussion revolves around the request to disable email or provide a contact URL on the About page in Discourse. arlair wants to hide their email address for spam reasons and instead provide a URL to their existing WordPress contact page.
codinghorror suggests editing the contact email address in Admin settings to blank, but this would prevent Discourse from sending critical notifications. arlair wants to keep the admin email for important things, just not display it.
codinghorror mentions that it’s possible to remove the email via CSS override. [arlair](/t/-/24175/5 and 6) inquires about alternative subscription mechanisms for Discourse update notifications, but codinghorror confirms that there isn’t one.
[arlair](/t/-/24175/7 and 8) finds alternative solutions, including a GitHub starred repositories notification service and CloudFlare’s email obfuscation option. However, rikming warns that the CloudFlare method might not work.
DeanMarkTaylor provides a custom CSS/HTML code to add a contact URL to the About page. arlair removes the contact email and suggests that the system’s security notification method is not ideal.
Finally, codinghorror announces that there is now an option to use a contact URL instead of an email, thanks to techapj.
Hi, I just set up Discourse yesterday and noticed it displays my email address on the About page. I don’t want this for spam reasons. I would prefer to provide a URL for my existing WordPress contact page I am integrating with. Or at least be able to disable this section containing the email. I think this would it more flexible out of the box.
So for now though, I couldn’t find a way to remove it from the About page via admin. Is this possible via some mechanism like changing a template?
Yes, just edit the contact email address in Admin, Settings, Required to blank.
This will make it impossible for Discourse to send you critical and upgrade notifications via email though. So as long as you are cool upgrading manually with zero notifications when there are security issues, etc.
You can probably remove it via CSS override. None of our non-core pages are really visible to spiders without special support anyway – try viewing that page with JavaScript disabled to see what I mean.
I’m not saying it’s the best way… but a simple way of using a URL on the about page would be to paste something like this into your Admin > Customize >CSS/HTML > </head>
I have removed the contact email for now. Having the system tell you it has potential security issues sounds like a bit of a security hole to me The hacker could have already compromised the system and disabled this, so I think it shouldn’t be the primary form of security notification, more a convenience.
Being able to disable the meta generator data that displays your Discourse version would be nice too. I’m not sure what benefits it provides, but it does leak information useful for hacking.
The best idea I have come up with adding the contact URL is by inserting HTML with DOM manipulation. That way you can leave the rest of the template as is. I don’t know if I will run into issues with that, because it seems emberjs can sometimes modify the code using a message bus. I am trying to figure out how to get jQuery working as mentioned here: https://meta.discourse.org/t/jquery-in-admin-custom-html/24253
Base it off what @DeanMarkTaylor put above. Place it in the “top of the pages” customization section. Customizations are live-updated over the message bus; upgrades just tell the app to refresh on the next click.
Good news @arlair ! There is now an option to use a contact URL here instead of the email, just enter it in your site settings. Thanks to @techapj for getting that in with some other About page improvements.