Signup Banner

Has anyone who is using this component changed the styling or positioning of it on their sites?

I would love to hear or see what you’ve done :pray:

I have a situation when I have the banner showing but also the Login button in the header navbar :grimacing:

Any way that I can hide that using css in the theme, if the banner class is showing? I tried something like this but it didn’t help :frowning:

.discourse-signup-banner:not([style*="display: none"]) .auth-buttons {
    display: none !important;
}


Edit

I was able to achieve this by doing this instead :heart:

body:has(.discourse-signup-banner) .auth-buttons {
    display: none !important;
}
1 Like