Canapin
(Coin-coin le Canapin)
December 23, 2024, 1:11pm
4
There’s a after-login-buttons
plugin outlet at the bottom of this section that can be used for adding content. I suppose it can be moved to the top with CSS, or an outlet above can be asked .
You can create a new theme component that makes use of it.
So, you want to create Discourse themes? Not sure where to start? Or maybe you have created Discourse themes before, but want to learn how to do even more cool things. Well, you’ve come to the right place
Developer’s guide to Discourse Themes
Subjects include a general overview of Discourse themes, creating and sharing Discourse themes, theme development examples, searching for and finding information / examples in the Discourse repository, and best practices.
Prerequisites:
…
Discourse includes hundreds of Plugin Outlets which can be used to inject new content or replace existing contend in the Discourse UI. ‘Outlet arguments’ are made available so that content can be customized based on the context.
Choosing an outlet
To find the name of a plugin outlet, search Discourse core for “<PluginOutlet”, or use the plugin outlet locations theme component. (e.g. topic-above-posts).
Wrapper outlets
Some outlets in core look like <PluginOutlet @name="foo" />. These allow …
You can also probably add an image only with CSS in a less clean way.
Could you post a picture of what you’d like your login modal to look like?
2 Likes