I have setup a discourse that with the following options enabled in Settings->Login
- invite only
- login required
- must approve users
So the interface before login is like this:
My question is how to add a footer in this interface?
Thanks.
A user, numbqq, is seeking to add a footer to the login interface of their Discourse setup. Don suggests using footer theme components, but numbqq finds that these only work after login. To display the footer before login, simon recommends adding a script to a theme component. However, numbqq instead removes the showFooter conditions from the component to achieve the desired result.
Hi,
There are some footer theme components what you can use to add footer section.
Hello @Don
Yes, Easy responsive footer works but the users can see the footer only after them login. I need to see the footer before login, like the picture above.
It’s been a while since I tested this, but you could try adding the following code to a theme component to get the footer to display on the login page:
<script type="text/discourse-plugin" version="0.8.40">
const LoginRoute = require("discourse/routes/login").default;
LoginRoute.reopen({
showFooter: true
});
</script>
I don’t know how to add such script to the theme, so I simply remove the showFooter conditions in the component to make it display all the time.