How can i add image in login and register box


Where in here would you like to add an image?

Green section

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.

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

Yep,

I was thinking of ::after or background-image with CSS. Didn’t know there were plugin outlets there. I think it’s overkill to write a full TC just to put an image there?

1 Like

I’d say it cleaner and more versatile to make a theme component using the plugin outlet, plus you’ll learn useful things if you want to customize further your installation. :technologist:

Using a pseudo element from existing HTML to add your image will work and it’s a valid way to achieve this. :ok_hand:

That said, it depends on what result you want exactly.

For example, if the goal is simply to have a background image at the bottom or top of the login buttons block with no additional requirements, then CSS could be perfectly fine.

1 Like