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.