Own theme as standard theme

Own theme as standard theme

by Rajakumar Jillella -
Number of replies: 3

Hi,


Defaultly "clean" theme will be activate while installing.

I have my own theme, and

how can i activate my own theme as standard theme while installing?

Where to change the code?



Thanks in Advance

Average of ratings: -
In reply to Rajakumar Jillella

Re: Own theme as standard theme

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

What you are aiming for is...

$CFG->theme = 'yourtheme';

...in the config. To build that into the install without changing core code you need to set up a new file called local/defaults.php

That should contain..

<?php
$defaults['moodle']['theme'] = 'yourtheme';

(see local/readme.txt)

All this without actually trying it of course wink

In reply to Howard Miller

Re: Own theme as standard theme

by Rajakumar Jillella -

Hi Howard,


I want to activate my own theme instead of default theme "clean" while installing process.

Before installation, we don't have "config.php" file. We have "config-dist.php" instead of "config.php".


Note : Installation process successfully done with my own theme.

But, Default theme applied automatically after last step of installation process.


Unable to find where the code to be changed.


Thank in Advance.

Attachment Dashboard 2016-02-17 18-05-42.png
In reply to Rajakumar Jillella

Re: Own theme as standard theme

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Here....


To build that into the install without changing core code you need to set up a new file called local/defaults.php

That should contain..

<?php
$defaults['moodle']['theme'] = 'yourtheme';

(see local/readme.txt)


Average of ratings: Useful (1)