mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.7k stars 498 forks source link

How does one set the theme default for everyone #70

Closed timothevs closed 3 years ago

timothevs commented 3 years ago

I can switch the theme to Dark when I am registered, and signed in. But I would like to switch the theme to dark for everyone by default, i.e. guests/non logged in users, etc. I looked in the settings.py and there is this

DEFAULT_THEME = "black"  # this is not taken under consideration currently

Any idea if this can be done currently, or how long before this is implemented?

Thanks!

mgogoulos commented 3 years ago

Hi, edit file templates/config/installation/site.html and change mode in the first few lines to "dark" . Then restart mediacms

root@server /home/mediacms.io/mediacms # systemctl restart mediacms

and it will take effect (unless you're using the Docker installation, in this case I'm not sure whether the containers need restart or not after making the change to the file!)

Cheers

timothevs commented 3 years ago

Beautiful! Thank you for a great system. I was able to do this successfully.

gam-ragnar commented 3 years ago

Please note members can still changed theme as an option in the profile submenu.

AmoghSaxena commented 1 year ago

Please note members can still changed theme as an option in the profile submenu.

@gam-ragnar What if I don't want members to change theme? Is there any option to disable it ?