How can I hide the register link on the login page in Dawn?

Hi guys,

Is it possible to hide only the register link on login page, but keep the ‘lost password’ link?

I tried to use this code, but of course it hides all links:

.login a {
    display: none;
}

I want to hide this, because I want to manually add customers to my store, because only registered customers can shop (B2B). Therefor I don’t want everybody to just register to get access to the store,

Thanks!

Hi @IMYOURGIRL

Could you share your login page URL?

Hi @Dan-From-Ryviu

This is the development store

Pass protection = dba

Thanks for looking with me :slightly_smiling_face:

Go to your Online store > Themes > Edit code > open main-login.liquid, add this code below after {%- style -%} element

.customer a[href="/account/register"] { display: none !important; }

Thank you @Dan-From-Ryviu ! I’ve added this in my custom CSS which I prefer because of updating the theme regularly ;). But it works there aswel, so thank you!

You are very welcome. @IMYOURGIRL