Different logos for light/black theme?

Hello ,
How can i add different logos for booth theme ?
I mean , for black theme a white logo (i have it already)
But for the light theme , a black logo ?

Black theme :

Light theme:

Also , is there any option to add a button for night/day mode in index , to change the theme ?

Thanks.

Try changing the theme here - note that there’s a partial white background included in the logo. You could do the same with an off-black background.

edit: Screenshot

2 « J'aime »

Ok , i will try with the photoshop (poor skills :smiley: )
What about this :

Also , is there any option to add a button for night/day mode in index , to change the theme ?

If you check the “Theme can be selected by users” checkbox in Admin > Customize, it will show up as a link in the Hamburger menu.

1 « J'aime »

Yes i know .
But i want to add a float button on index to do that .
Its a bad idea ? Just ask . Thanks

That could likely be done via a customization, but it would involve JavaScript and some CSS to style the button. Not sure how hard it would be to do, but I imagine it shouldn’t be terribly difficult as the themes should be exposed via the API.

1 « J'aime »

I covered the technique here btw:

8 « J'aime »

Am getting reports on our instance that @sam techniques (css trick) no longer works, and instead leads to double logo:

Is this a regression ? Any recommendation to mitigate this ?

Thanks!

The best method now is to use this theme component:

https://meta.discourse.org/t/alternative-logo-for-dark-themes/88502?u=david

I will update the post you linked so it doesn’t confuse people in future.

5 « J'aime »

Salut, ce plugin est-il toujours disponible ?

Y a-t-il actuellement une solution pour cela ? Le lien n’est plus disponible @david.

Vous pouvez désormais téléverser des versions « mode sombre » de votre logo dans les paramètres du site. Accédez à l’onglet « Image de marque », puis faites défiler jusqu’à « Logo sombre » et « Petit logo sombre » :

Plus d’informations ici :

2 « J'aime »

Un message a été divisé en un nouveau sujet : Sélectionner les versions claires/sombres des logos de catégorie

Ce sujet a été automatiquement fermé 30 jours après la dernière réponse. Les nouvelles réponses ne sont plus autorisées.