Base solution for your next web application
Open Closed

Use another theme as the default theme #7222


User avatar
0
abarref created

Hi,

I would like to use Theme6 as the default theme when a Tenant gets created. What's the proper way of achieving that?

Thanks in advance


4 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    Login as host admin and go to Administration > Visual Settings from the main menu. Select Theme6 and press Save as system default button.

  • User Avatar
    0
    abarref created

    Thanks @alper. That works. Is there a way to achieve the same but when the database gets initialized? Because I'm recreating the db a lot at the moment.

  • User Avatar
    0
    alper created
    Support Team

    as long as I remember it's a setting and when you push Save as system default button, it inserts a new record into AbpSettings table. You can automatically insert the same setting to AbpSettings table when you recreate your DB. I hope it works.

  • User Avatar
    0
    abarref created

    @alper thanks for the suggestion. I took a look at the source code and found that it is also possible to set it in the appsettings.json as follows:

    Regards